v1

latestOpenAPI 3.0.02026-07-26327775.9 KB
Market data

Get the historical bars

Get the historical bars for an instrument. Any request that would result in a response with more than 20,000 bars will be rejected. <br>Each property of the response object is a table column. Bar time for daily bars is 00:00 UTC. Bar time for monthly bars is 00:00 UTC and is the first trading day of the month. If there is no data in the requested time period but there is data in the previous time period the status code will be set to no_data and the nb property to UNIX timestamp of the next available bar behind the range. If there is no data in the requested and previous time periods the status code will be set to no_data.

get/trade/history

Query parameters

routeIdinteger required

Route identifier.

frominteger required

Unix timestamp in milliseconds (UTC) of the leftmost required bar, including from.

resolution'1M' | '1W' | '1D' | '4H' | '1H' | '30m' | '15m' | '5m' | '1m' required

Symbol resolution. Possible resolutions are monthly (1M), weekly (1W), daily (1D), hourly (4H, 1H) in minutes (30m, 15m, 5m, 1m)

tointeger required

Unix timestamp in milliseconds (UTC) of the rightmost required bar, inclusive. If in the future, the rightmost returned bar will be the latest available in the system.

tradableInstrumentIdinteger required

Identifier of the instrument that is used for trading purposes.

Headers

accNuminteger required

Account number

Response

OK

sstring required

Status will always be ok.

Example response

{
  "s": "ok"
}