Skip to main content
GET
OHLC chart data for selected period
Retrieve aggregated chart data for a predefined time period. Unlike the date range endpoint, this method automatically calculates the data resolution based on the selected period, simplifying the request for common timeframes.
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.
string
required
The currency pair symbol (e.g., EURUSD). See the list of available currencies.
string
required
The time period to retrieve data for. Available options:
  • 30m - Last 30 minutes
  • 1h - Last 1 hour
  • 6h - Last 6 hours
  • 12h - Last 12 hours
  • 1d - Last 1 day
  • 2d - Last 2 days
  • 7d - Last 7 days
  • 1M - Last 1 month
  • 3M - Last 3 months
  • 6M - Last 6 months
  • 1Y - Last 1 year

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.
string
Array of bid prices.
string
The currency pair symbol.
string
Array of timestamps.