History

Retrieves historical bars based on the specified request parameters.

post/api/History/retrieveBars

Request body

contractIdstring required
liveboolean required
startTimestring date-time required
endTimestring date-time required
unit0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 required

0 = Unspecified 1 = Second 2 = Minute 3 = Hour 4 = Day 5 = Week 6 = Month 7 = Tick

unitNumberinteger required
limitinteger required
includePartialBarboolean required

Response

The response with the retrieved bars.

successboolean required
errorCode0 | 1 | 2 | 3 | 4 required

0 = Success 1 = ContractNotFound 2 = UnitInvalid 3 = UnitNumberInvalid 4 = LimitInvalid

errorMessagestring

Changes

No recorded changes to this endpoint across all 1 revision of this API.