documentation
endpoints
Fluctuation

Fluctuation Endpoint


with this endpoint you can get the commodity's fluctuation on a day-to-day basis.


Endpoint
GET rates/fluctuation

Request Object

Parameters

apiKey string REQUIRED
Your unique API key. Note This may also be passed via x-api-key header.


symbols string array REQUIRED
list of comma separated currency symbols.


startDate string REQUIRED
start date for the fluctuation. Format: YYYY-MM-DD


endDate string REQUIRED
end date for the fluctuation. Format: YYYY-MM-DD


Response Object

success boolean
true if the request was successful, false if there was an error.


message string OPTIONAL
error message if the request was unsuccessful.


statusCode string OPTIONAL
HTTP status code of the response, if the request was unsuccessful.


rates object
object containing the requested rates.


startDate string
start date for the fluctuation. Format: YYYY-MM-DD


endDate string
end date for the fluctuation. Format: YYYY-MM-DD


Response JSON
{
  "success": true,
  "startDate": "2023-12-08",
  "endDate": "2023-12-13",
  "rates": {
      "WTIOIL": {
          "startRate": 71.23,
          "endRate": 69.83,
          "change": -1.4,
          "changePercent": -1.97
      },
      "XAU": {
          "startRate": 2004.35,
          "endRate": 2032.68,
          "change": 28.33,
          "changePercent": 1.41
      }
  }
}