Loading
Loading
Retrieve OHLC (open, high, low, close) price data for any supported commodity on a specific date. Data is available from January 1990 onwards for 130+ commodities.
Pass one or more comma-separated commodity symbols and a date in YYYY-MM-DD format. The response contains the opening, high, low, and closing price for each symbol on that date.
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis is version v1.0 of the API.
Both symbols and date are required.
formatoptionalStringdefault: jsonResponse format: 'json'.
symbolsrequiredStringComma-separated list of commodity symbols. Visit the supported symbols list for all valid values.
daterequiredStringDate for which the rates are required. Format: YYYY-MM-DD. Data available from 1990 onwards.
A successful request returns a 200 OK with OHLC data for each requested symbol on the given date.
successtrue for successful requests.
dateDate for which the commodity prices were fetched. Format: YYYY-MM-DD.
Object where each key is a commodity symbol and the value contains OHLC price data.
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Invalid Date Format (YYYY-MM-DD).
Invalid Date: The provided date does not exist.
The symbol is not supported, please visit the documentation for a list of supported symbols
no rates found for the specified date