Commodity Time Series API

GET

https://api.apifreaks.com/v1.0/commodity/time-series

format
Format of the Response
symbolsArrayrequired
Comma separated list of desired commodities symbols
startDateStringrequired
Start Date for the timeseries. Format: YYYY-MM-DD
endDateStringrequired
End Date for the timeseries. Format: YYYY-MM-DD

Sample Responses

400
400
400
400
400
400
404
LANGUAGE
Python
PHP
Java
Node
Ruby
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
successBooleanMandatory
API request success indicator. "true" for successful requests.
startDateStringMandatory
The start date of the time series data in YYYY-MM-DD format.
endDateStringMandatory
The end date of the time series data in YYYY-MM-DD format.
ratesMapMandatory
Date-indexed map where each key is a date string and the value is a map of commodity data.
rates.[DATE]MapMandatory
Map of commodity symbols for a specific date. Each key is a symbol like "XAU" or "WTIOIL".
rates.[DATE].[SYMBOL]MapMandatory
Map containing the price information for a specific commodity on a given date.
rates.[DATE].[SYMBOL].openNumberMandatory
Opening price of the commodity on the given date.
rates.[DATE].[SYMBOL].highNumberMandatory
Highest price of the commodity on the given date.
rates.[DATE].[SYMBOL].lowNumberMandatory
Lowest price of the commodity on the given date.
rates.[DATE].[SYMBOL].closeNumberMandatory
Closing price of the commodity on the given date.