Charts

Historical price series for one metal

A daily price series for a single metal over a trailing window. metal is required — the endpoint used to answer for silver when the parameter was missing or invalid, which made the two cases indistinguishable (#1122).

get/api/metal-price-charts

Request

  • Base URL: https://www.stackerscan.com
  • URL: https://www.stackerscan.com/api/metal-price-charts
  • Auth: none required

Query parameters

metal'gold' | 'silver' | 'platinum' | 'palladium' | 'copper' | 'nickel' | 'goldback' required

The series to return. goldback is derived from the gold series and the published premium multiple rather than being a traded metal. Matched case-insensitively.

basestring
Example:USD

Currency the prices are converted to, as an ISO 4217 code, BTC, or a metal code. Validated against the live catalog from /api/currencies, and unenforced in the window where that catalog cannot be read.

daysinteger

Size of the trailing window, in days. Strictly an integer: a value such as 90abc is rejected rather than truncated.

format'line' | 'ohlc'

line returns closing prices; ohlc returns open/high/low/close rows.

Response

The requested series, plus market-session metadata.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.