Timeseries Endpoint
with this endpoint you can get the historical rates for a time period.
GET rates/time-series
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
The maximum difference between the start and end date is 30 days.
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
{
"success": true,
"startDate": "2023-12-08",
"endDate": "2023-12-13",
"rates": {
"2023-12-08": {
"XAU": {
"open": 2027.93,
"high": 2033.89,
"low": 1994.49,
"close": 2004.35
},
"WTIOIL": {
"open": 69.34,
"high": 71.63,
"low": 69.5,
"close": 71.23
}
},
"2023-12-10": {
"XAU": {
"open": 2005.5,
"high": 2007.44,
"low": 2004.43,
"close": 2006.93
},
"WTIOIL": {
"open": 71.25,
"high": 71.66,
"low": 70.92,
"close": 71.47
}
},
"2023-12-11": {
"XAU": {
"open": 2006.92,
"high": 2007.62,
"low": 1975.76,
"close": 1982.79
},
"WTIOIL": {
"open": 71.4,
"high": 71.92,
"low": 71.36,
"close": 71.92
}
},
"2023-12-12": {
"XAU": {
"open": 1982.79,
"high": 1996.48,
"low": 1977.09,
"close": 1982.44
},
"WTIOIL": {
"open": 68.72,
"high": 68.88,
"low": 68.26,
"close": 68.43
}
},
"2023-12-13": {
"XAU": {
"open": 1982.44,
"high": 2033.06,
"low": 1972.91,
"close": 2032.68
},
"WTIOIL": {
"open": 69.91,
"high": 70.17,
"low": 69.67,
"close": 69.83
}
}
}
}