Skip to main content
GET
OHLC chart data for date range
Retrieve aggregated chart data (open, high, low, close) for a specific currency pair within a custom time range. This endpoint is ideal for generating historical charts or analyzing market trends over a defined period.
Note on Precision: Some currency pairs are returned with a multiplier (e.g., 100 or 1000) to ensure high precision.

Path parameters

string
default:"json"
The desired output format. Options: json, xml, csv.
If you choose xml, you must use the POST method. GET requests for XML will fail.

Query parameters

string
required
The start of the requested period as a UNIX timestamp (seconds since epoch). Example: 1577836800 (January 1st, 2020).
string
required
The end of the requested period as a UNIX timestamp (seconds since epoch). Example: 1577836800 (January 1st, 2020).

Response

Response Structure: For a detailed explanation of the array indices (for JSON) and property definitions, please refer to the Response Structures guide.
string
Array of ask prices or aggregated ask data.
string
Array of bid prices or aggregated bid data.
string
The currency pair symbol (e.g., EURUSD).
string
Array of timestamps corresponding to the data points.