Creates new breakeven persistence instance.
Trading pair symbol
Strategy identifier
Exchange identifier
ReadonlyexchangeReadonlystrategyReadonlysymbolReads the breakeven data for the given signal using signalId as the entity key.
Signal identifier
Promise resolving to breakeven data record (empty object if not found)
Initializes the underlying PersistBase storage.
Whether this is the first initialization
Promise that resolves when initialization is complete
Writes the breakeven data for the given signal using signalId as the entity key.
Breakeven data record to persist
Signal identifier
Promise that resolves when write is complete
Default file-based implementation of IPersistBreakevenInstance.
Features:
Example