Loading
Loading
Calculate price change and percentage movement for any commodity over a custom date range. Returns the opening price, closing price, absolute change, and percentage change for each symbol.
Pass one or more commodity symbols with a startDate and endDate in YYYY-MM-DD format. The response contains the start and end prices plus the absolute and percentage change for each symbol.
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 startDate must not be after endDate.
symbolsrequiredArrayComma-separated list of commodity symbols. Visit the supported symbols list for all valid values.
startDaterequiredStringStart date for the fluctuation range. Format: YYYY-MM-DD.
endDaterequiredStringEnd date for the fluctuation range. Format: YYYY-MM-DD.
A successful request returns a 200 OK with fluctuation data for each requested symbol over the specified date range.
successtrue for successful requests.
startDateStart date of the fluctuation interval. Format: YYYY-MM-DD.
endDateEnd date of the fluctuation interval. Format: YYYY-MM-DD.
ratesMap where each key is a commodity symbol and the value contains fluctuation metrics.
rates.[SYMBOL]Fluctuation data for the specified commodity.
rates.[SYMBOL].startRatePrice of the commodity on the start date.
rates.[SYMBOL].endRatePrice of the commodity on the end date.
rates.[SYMBOL].changeAbsolute price difference between end and start dates. May be negative.
rates.[SYMBOL].changePercentPercentage price change from start to end date. May be negative.
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).
Start date cannot be after end date
No data found for the given date range