Market Data
Get OHLC Bars
Fetch historical OHLC candlestick data for a trading symbol
GET
Request
Trading symbol (e.g.,
EURUSD, GBPUSD, XAUUSD)Timeframe in minutes:
1- M1 (1 minute)5- M5 (5 minutes)15- M15 (15 minutes)60- H1 (1 hour)240- H4 (4 hours)1440- D1 (1 day)
Number of bars to return. Maximum:
5000Unix timestamp. Only return bars before this time (for pagination).
Response
Indicates if the request was successful
The requested symbol
The requested timeframe in minutes
Number of bars returned
Array of OHLC bar objects
Pagination information