Skip to main content
GET

Request

string
required
Trading symbol (e.g., EURUSD, GBPUSD, XAUUSD)
integer
required
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)
integer
default:"500"
Number of bars to return. Maximum: 5000
integer
Unix timestamp. Only return bars before this time (for pagination).

Response

boolean
Indicates if the request was successful
string
The requested symbol
integer
The requested timeframe in minutes
integer
Number of bars returned
array
Array of OHLC bar objects
object
Pagination information

Pagination Example

To fetch more historical data:
The time field is the real Unix timestamp from the market data source. Always use this value when submitting signals to ensure correct positioning on the chart.