Spot price for one metal on one date
The spot price of a single metal on a given date — the endpoint used to value a transaction at the moment it happened. date and metal are both required.
Request
- Base URL: https://www.stackerscan.com
- URL: https://www.stackerscan.com/api/transactions/spot-price
- Auth: none required
Query parameters
The valuation date as YYYY-MM-DD. Required, and must be a real calendar date. Ignored when current=true.
Which metal to price. Required. goldback is not accepted here — request metal=gold with formOfMetal=goldback instead.
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.
Weight unit prices are quoted in. Exactly these two spellings — oz, ounce, g and grams are rejected (#1122).
Free-form form-of-metal label carried on the transaction. The only value that changes the answer is goldback, which (with metal=gold) derives the Goldback price from gold spot and the published multiple.
Price at the latest available quote instead of on date. Exactly true or false.
Response
The resolved spot price in the requested currency and unit.
Changes
No recorded changes to this operation across all 1 revision of this API.