Interface IPersistScheduleInstance

Per-context scheduled signal persistence instance interface. Scoped to a specific (symbol, strategyName, exchangeName) triple.

Custom adapters should implement this interface to override the default file-based scheduled signal persistence behavior.

interface IPersistScheduleInstance {
    readScheduleData(): Promise<IScheduledSignalRow>;
    waitForInit(initial: boolean): Promise<void>;
    writeScheduleData(row: IScheduledSignalRow): Promise<void>;
}

Implemented by

Methods

  • Initialize storage for this scheduled signal context.

    Parameters

    • initial: boolean

      Whether this is the first initialization

    Returns Promise<void>

    Promise that resolves when initialization is complete

  • Write scheduled signal for this context (null to clear).

    Parameters

    Returns Promise<void>

    Promise that resolves when write is complete