GET
/
v2
/
commodities
/
{commodity_name}
/
price
/
Commodity Price History
curl --request GET \
  --url https://api.sectors.app/v2/commodities/{commodity_name}/price/ \
  --header 'Authorization: <authorization>'
{
    "commodity_name": "Coal",
    "price_history": [
        {
            "2023-01-01": "305.21"
        },
        {
            "2023-02-01": "277.05"
        }
    ]
}
{
    "commodity_name": "Coal",
    "price_history": [
        {
            "2023-01-01": "305.21"
        },
        {
            "2023-02-01": "277.05"
        }
    ]
}
Authorization
string
required
Authorization header that should be filled with your Sectors Financial API key.

Path Parameters

commodity_name
string
required
The name of the commodity to retrieve price data for (e.g., Coal).

Query Parameters

start
string
The start date for the price history in YYYY-MM-DD format.
end
string
The end date for the price history in YYYY-MM-DD format.

Response

<CommodityPrice>
object