Commodities

This endpoint can be called using:

https://api.adiinvestments.net/v1/markets/commodities

Returns the following information for five major commodities:

  • Current Price

  • Name

  • Percent Change

  • Symbol

Commodities provided are crude oil, natural gas, gold, silver, and platinum.

Responses

200 Successful
[
  {
    "currentPrice": 71.87,
    "longName": "Crude Oil",
    "percentChange": 1.24,
    "symbol": "CL=F"
  },
  {
    "currentPrice": 3.63,
    "longName": "Natural Gas",
    "percentChange": -7.62,
    "symbol": "NG=F"
  },
  {
    "currentPrice": 2639.3,
    "longName": "Gold",
    "percentChange": 1.27,
    "symbol": "GC=F"
  },
  {
    "currentPrice": 29.29,
    "longName": "Silver",
    "percentChange": 0.62,
    "symbol": "SI=F"
  },
  {
    "currentPrice": 910.4,
    "longName": "Platinum",
    "percentChange": 0.89,
    "symbol": "PL=F"
  }
]
401 Unauthorized
{"error_code":403,
"error_message":"Invalid API key."}
429 Too Many Requests
{"error_code":429,
"error_message":"Rate limit exceeded. Please try again later."}

Last updated