Creates new risk positions persistence instance.
Risk profile identifier
Exchange identifier
Reads the persisted positions array using the fixed STORAGE_KEY.
Promise resolving to positions (empty array if none persisted)
Initializes the underlying PersistBase storage.
Whether this is the first initialization
Promise that resolves when initialization is complete
Writes the positions array using the fixed STORAGE_KEY.
Position entries to persist
Promise that resolves when write is complete
Default file-based implementation of IPersistRiskInstance.
Features:
Example