Error
Symbols
Get OHLCV candles
Returns historical OHLCV candles via mt5.copy_rates_from_pos(). Candle time is broker server time — the bot normalises to UTC using the detected offset from /time. spread is in raw points (e.g. 1400 pts × 14.00 for BTCUSD on RoboForex).
GET
Error
Authorizations
Set API_TOKEN in .env to match the token configured on the server.
Path Parameters
Symbol name
Example:
"BTCUSD"
Query Parameters
MT5 timeframe: M1 M5 M15 M30 H1 H4 D1 W1 MN1
Example:
"M15"
Number of candles to return (most recent first)
Example:
500
Response
OHLCV candles
Example:
95050
Example:
95200
Example:
94900
Example:
95000
Example:
0
Spread in raw points. For BTCUSD on RoboForex: 1459 pts × $0.01 = $14.59 round-turn.
Example:
1459
Example:
1234
Candle open time as Unix epoch (broker server time).
Example:
1777879200