Skip to main content

HistoryMetadata

Interface

Information passed to onHistoryCallback for getBars.

Properties

nextTime

Optional

The time of the next available bar in history. The time value should be represented with a Unix timestamp in milliseconds.

You can pass the nextTime value to the library if there is no data in the time range that the library requests. Therefore, you notify the library about available data before the requested range and ensure that the next data request is for the right range. For more information, refer to the How nextTime works section.

Type

number


noData

Optional

Optional value indicating to the library that there is no more data on the server.

Type

boolean