OHLC chart data for selected period
Historical Data
OHLC chart data for selected period
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.Documentation Index
Fetch the complete documentation index at: https://xchangeapi.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Note on Precision: Some currency pairs are returned with a multiplier (e.g., 100 or 1000) to ensure high precision.
Path parameters
The desired output format. Options:
json, xml, csv.The currency pair symbol (e.g.,
EURUSD). See the list of available currencies.The time period to retrieve data for. Available options:
30m- Last 30 minutes1h- Last 1 hour6h- Last 6 hours12h- Last 12 hours1d- Last 1 day2d- Last 2 days7d- Last 7 days1M- Last 1 month3M- Last 3 months6M- Last 6 months1Y- 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.
