v1

latestSwagger 2.02026-07-172635179.1 KB
marketdata

Stream BarChart - Days Back

Streams barchart data starting from a number of days back from last date, each bar filling interval of unit.

get/v2/stream/barchart/{symbol}/{interval}/{unit}

Path parameters

symbolstring required

A Symbol name.

intervalinteger required

Interval that each bar will consist of. For Daily, Weekly, and Monthly units this value must be 1.

unit'Minute' | 'Daily' | 'Weekly' | 'Monthly' required

Unit of time for each bar interval.

Query parameters

SessionTemplate'USEQPre' | 'USEQPost' | 'USEQPreAndPost' | 'USEQ24Hour' | 'Default'

United States (US) stock market session templates, that extend bars returned to include those outside of the regular trading session. Ignored for non-US equity symbols.

daysBackinteger required

The number of bars to stream, going back from time 00:00:00 of the day specified in lastDate. Cannot exceed greater than 57600 if unit is Minute.

lastDatestring

The date to use as the end point when getting days back. Date is of form MM-DD-YYYY, and optionally can specify a starting time with format MM-DD-YYYYt08:00:00 and even further UTC offset with format MM-DD-YYYYt12:00:00-0600.

Response

Barchart Response