Base class for time series stats.

Type Parameters

  • I extends object

    The event type that the stats are based on.

  • O

    The time frame type of the stats ("candles"/"bars").

Hierarchy

  • TimeSeriesStats

Constructors

Properties

config: TimeSeriesStatsConfig<I, O>
timeSeriesDAL: StatsTimeSeriesStorage

Methods

  • Process the events for a given account into time frames.

    Parameters

    • account: string

      The account to process the events for.

    • now: number

      The current unix timestamp.

    • pendingDateRanges: DateRange[]

      The requested time frames to process.

    • minDate: undefined | number

      The earliest date to which to process events.

    Returns Promise<void>

Generated using TypeDoc