extend_history
Download older MetaTrader 5 history backward in chunks, stopping at the first empty chunk or broker limit, so cached bar or tick data can be extended incrementally.
Instructions
Download older history one chunk at a time and stop at the first empty chunk.
kind=d1 walks one UTC year backward from the oldest cached year. kind=m1 walks one UTC month backward from the month before the earliest cached M1 bar. A bar outside that month does not count. The first month with no bars inside it is the broker limit. max_steps is the number of months in one call. Call again when reached_broker_limit is false. kind=ticks walks one UTC month backward from the oldest cached tick month.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "extend_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | d1 | |
| symbol | Yes | ||
| max_steps | No |