marketdata
Stream BarChart - Starting on Date
Changed onStreams barchart data starting from startDate, each bar filling quantity of unit.
get/v2/stream/barchart/{symbol}/{interval}/{unit}/{startDate}
Request
- Base URLhttps://api.tradestation.com
- URLhttps://api.tradestation.com/v2/stream/barchart/{symbol}/{interval}/{unit}/{startDate}
- Auth
- OAuth 2Authorization code: https://api.tradestation.com/v2/security/authorizeToken URL: https://api.tradestation.com/v2/security/authorize scopes: marketdata
- or OAuth 2Client credentialsToken URL: https://api.tradestation.com/v2/security/authorize scopes: marketdata
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.
startDatestring required
The starting date to begin streaming bars from. 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.
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.
Response
Barchart Response
Changes
- warning
deleted the
queryrequest parameteraccess_token
- warning
- info
endpoint added
- info