Skip to main content

Interface: HistoryMetadata

Charting Library.HistoryMetadata

Information passed to onHistoryCallback for getBars.

Properties

nextTime

Optional nextTime: number

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.


noData

Optional noData: boolean

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