Commodity Fluctuation API

GET

https://api.apifreaks.com/v1.0/commodity/fluctuation

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

Sample Responses

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 fluctuation interval in YYYY-MM-DD format.
endDateStringMandatory
The end date of the fluctuation interval in YYYY-MM-DD format.
ratesMapMandatory
Map where each key is a commodity symbol (e.g., "WTIOIL", "BRENTOIL") and the value contains fluctuation metrics.
rates.[SYMBOL]MapMandatory
Map containing fluctuation data for a specific commodity symbol.
rates.[SYMBOL].startRateNumberMandatory
The price of the commodity on the start date of the interval.
rates.[SYMBOL].endRateNumberMandatory
The price of the commodity on the end date of the interval.
rates.[SYMBOL].changeNumberMandatory
The absolute price difference between the end and start date. May be positive or negative.
rates.[SYMBOL].changePercentNumberMandatory
The percentage change in price from start to end date. May be positive or negative.