Live Commodity Prices API

GET

https://api.apifreaks.com/v1.0/commodity/rates/latest

format
Format of the Response
symbolsArrayrequired
Comma separated list of desired commodities symbols
updatesStringrequired
Exchange rates update period. Possible values are: (1) 10m - 10 minute update (2) 1m - 1 minute update
quoteString
Specifies the target currency for the exchange rate; default quote currency is the market currency of commodity

Sample Responses

404
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.
timestampNumberMandatory
Unix timestamp indicating when the response was generated.
ratesMapMandatory
Map containing rate data for all the requested commodities.
metadataMapMandatory
Map containing detailed information for all the requested commodities.
metadata.[SYMBOL]MapMandatory
Map containing detailed information for the specified commodity.
metadata.[SYMBOL].unitStringMandatory
Unit of the respective commodity.
metadata.[SYMBOL].quoteStringMandatory
Quote currency of the respective commodity.