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).
Request
- Base URL: https://www.stackerscan.com
- URL: https://www.stackerscan.com/api/metal-price-charts
- Auth: none required
Query parameters
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.
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.
Size of the trailing window, in days. Strictly an integer: a value such as 90abc is rejected rather than truncated.
line returns closing prices; ohlc returns open/high/low/close rows.
Response
The requested series, plus market-session metadata.
Changes
No recorded changes to this operation across all 1 revision of this API.