Loading
Loading
Retrieve daily OHLC (open, high, low, close) price data for any supported commodity over a date range of up to 365 days. Non-trading days are automatically excluded from the response.
Pass one or more commodity symbols with a startDate and endDate in YYYY-MM-DD format. The response is a date-indexed map with OHLC data for each trading day within the range.
Pass your API key as the apiKey parameter in every request.
This is version v1.0 of the API.
All three parameters are required. The maximum date range is 365 days.
symbolsrequiredArrayComma-separated list of commodity symbols. Visit the supported symbols list for all valid values.
startDaterequiredStringStart date for the time series. Format: YYYY-MM-DD.
endDaterequiredStringEnd date for the time series. Format: YYYY-MM-DD. Maximum range is 365 days.
A successful request returns a 200 OK with a date-indexed map of daily OHLC prices for each requested symbol.
successtrue for successful requests.
startDateStart date of the time series. Format: YYYY-MM-DD.
endDateEnd date of the time series. Format: YYYY-MM-DD.
ratesDate-indexed map where each key is a date and the value contains commodity OHLC data for that day.
rates.[DATE]Map of commodity symbols for the specified trading date.
rates.[DATE].[SYMBOL]OHLC price data for the specified commodity on the given date.
rates.[DATE].[SYMBOL].openOpening price on the given date.
rates.[DATE].[SYMBOL].highHighest price on the given date.
rates.[DATE].[SYMBOL].lowLowest price on the given date.
rates.[DATE].[SYMBOL].closeClosing price 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: The provided start date or end date does not exist.
start date cannot be after end date
Date range exceeds the allowed limit.
The symbol is not supported, please visit the documentation for a list of supported symbols