Minute bars for a symbol.
GET /api/MT5/{tradePlatform}/ChartRequest/{symbol}/{fromTime}/{toTime}
Timeout: 30 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tradePlatform | path | string (uuid) | yes | Trade platform id |
| symbol | path | string | yes | The name of the symbol the data is requested for |
| fromTime | path | string (date-time) | no | Default: 0.ToUnixTime64() (01.01.1970) will be used |
| toTime | path | string (date-time) | no | Default: UInt64.MaxValue.ToUnixTime64() will be used |
| X-Request-Timeout | header | number (double) | no | How long to wait for the trade server, in seconds (1–300). Default for this operation: 30 s (history or report). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header. |
Responses
- 200 Success — MT5ChartBar[]
Example
curl "https://cloud.mywebapi.com/api/MT5/$TRADE_PLATFORM_ID/ChartRequest/$SYMBOL/$FROM_TIME/$TO_TIME" \
-H "Authorization: Bearer $TOKEN"