latestSwagger 2.02026-08-12187723.0 MB
c4a12725cdb5
reference_data
Commodities
The commodities endpoint provides a daily updated list of available commodity pairs, across precious metals, livestock, softs, grains, etc.
get/commodities
Query parameters
symbolstring
The ticker symbol of an instrument for which data is requested
categorystring
Filter by category of commodity
format'JSON' | 'CSV'
The format of the response data
delimiterstring
The separator used in the CSV response data
pageinteger
Page number of the results to fetch
outputsizeinteger
Determines the number of data points returned in the output
Response
Example response
{
"count": 100,
"data": [
{
"category": "Energy Resource",
"description": "Spot price per barrel of West Texas Intermediate crude oil.",
"name": "Crude Oil WTI Spot",
"symbol": "WTI/USD"
},
{
"category": "Industrial Metal",
"description": "Spot price per pound of copper.",
"name": "Copper Spot",
"symbol": "HG1"
},
{
"category": "Precious Metal",
"description": "Spot price per troy ounce of gold.",
"name": "Gold Spot",
"symbol": "XAU/USD"
}
],
"status": "ok"
}