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.
Pass your API key as the apiKey parameter in every request.
This is version v1.0 of the API.
Both symbols and date are required.
symbolsrequiredArrayComma-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.
ratesMap where each key is a commodity symbol and the value contains OHLC price data.
rates.[SYMBOL]OHLC price data for the specified commodity.
rates.[SYMBOL].dateDate for which prices were fetched. Format: YYYY-MM-DD.
rates.[SYMBOL].openOpening price of the commodity on the given date.
rates.[SYMBOL].highHighest price recorded on the given date.
rates.[SYMBOL].lowLowest price recorded on the given date.
rates.[SYMBOL].closeClosing price of the commodity on the given date.
The API uses standard HTTP status codes to indicate the success or failure of requests. For common status codes like 429 (Too Many Requests), refer to the general API documentation.
please pass correct parameters
Invalid Date Format (YYYY-MM-DD).
The symbol is not supported, please visit the documentation for a list of supported symbols