https://api.apifreaks.com/v1.0/commodity/time-series
$ pip install requests
Click Test it to start the request and see the response here!
Field | Type | Requirement | Description |
---|---|---|---|
success | Boolean | Mandatory | API request success indicator. "true" for successful requests. |
startDate | String | Mandatory | The start date of the time series data in YYYY-MM-DD format. |
endDate | String | Mandatory | The end date of the time series data in YYYY-MM-DD format. |
rates | Map | Mandatory | Date-indexed map where each key is a date string and the value is a map of commodity data. |
rates.[DATE] | Map | Mandatory | Map of commodity symbols for a specific date. Each key is a symbol like "XAU" or "WTIOIL". |
rates.[DATE].[SYMBOL] | Map | Mandatory | Map containing the price information for a specific commodity on a given date. |
rates.[DATE].[SYMBOL].open | Number | Mandatory | Opening price of the commodity on the given date. |
rates.[DATE].[SYMBOL].high | Number | Mandatory | Highest price of the commodity on the given date. |
rates.[DATE].[SYMBOL].low | Number | Mandatory | Lowest price of the commodity on the given date. |
rates.[DATE].[SYMBOL].close | Number | Mandatory | Closing price of the commodity on the given date. |