PersistScheduleInstance

Implements IPersistScheduleInstance

Default file-based implementation of IPersistScheduleInstance.

Features:

  • Wraps PersistBase for atomic JSON writes
  • Uses symbol as entity ID within a per-context PersistBase
  • Crash-safe via atomic writes
constructor(symbol: string, strategyName: string, exchangeName: string);
symbol: string
strategyName: string
exchangeName: string
_storage: any

Underlying file-based storage scoped to this context

waitForInit(initial: boolean): Promise<void>;

Initializes the underlying PersistBase storage.

readScheduleData(): Promise<IScheduledSignalRow | null>;

Reads the persisted scheduled signal using symbol as the entity key.

writeScheduleData(row: IScheduledSignalRow | null): Promise<void>;

Writes the scheduled signal (or null to clear) using symbol as the entity key.