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.
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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
int32
required

Route identifier.

int64
required

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

string
enum
required

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

int64
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.

int64
required

Identifier of the instrument that is used for trading purposes.

Headers
int32
required

Account number

Responses

401

Unauthorized

403

Forbidden

404

Not Found

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json