HistoryOptions

The options for a time series history request.

Properties

  • start: Date

    The start date. Date.MAX and Date.MIN can be used to specify the latest or earliest available data respectively.

  • end?: Date

    The end date. Must be later than Start date. Date.MAX can be used to specify the latest available data. Cannot be specified with count

  • count?: number

    The number of results returned, a negative number to search backwards. Results are returned in the order that the data is searched. Cannot be specified with end date.

  • shouldReverse?: boolean

    Whether the results should be returned in reverse chronological order (most recent first). Can only be used when specifying an end date.

  • barInterval?: HistoryInterval

    Bar interval specfying the interval covered by each bar. If not specified, daily bars will be requested.

Also in this Section