Implements IPersistBreakevenInstance
Default file-based implementation of IPersistBreakevenInstance.
Features:
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.
readBreakevenData(signalId: string, _when: Date): Promise<BreakevenData>;
Reads the breakeven data for the given signal using signalId as the entity key.
writeBreakevenData(data: BreakevenData, signalId: string, _when: Date): Promise<void>;
Writes the breakeven data for the given signal using signalId as the entity key.