documentation
endpoints
Historical Rates

Historical Rates Endpoint


Api will return Historical rates for the specified date.


Endpoint
GET rates/historical

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.


date string REQUIRED
date for which the rates are requested. 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.


date string
date for which the rates are requested. Format: YYYY-MM-DD


Response JSON
    {
      "success": true,
      "date": "2019-01-04",
      "rates": {
          "XAU": {
              "open": 1295.17,
              "high": 1298.49,
              "low": 1276.6,
              "close": 1284.81
          },
          "WTIOIL": {
              "open": 46.9,
              "high": 49.22,
              "low": 46.65,
              "close": 47.96
          }
      }
    }