Service for logging live trading strategy tick events to SQLite database.
Captures all live trading signal lifecycle events (idle, opened, active, closed) and stores them in the Report database for real-time monitoring and analysis.
Features:
constructor();
loggerService: any
Logger service for debug output
tick: any
Processes live trading tick events and logs them to the database. Handles all event types: idle, opened, active, closed.
subscribe: (() => () => void) & ISingleshotClearable
Subscribes to live signal emitter to receive tick events. Protected against multiple subscriptions. Returns an unsubscribe function to stop receiving events.
unsubscribe: () => Promise<void>
Unsubscribes from live signal emitter to stop receiving tick events. Calls the unsubscribe function returned by subscribe(). If not subscribed, does nothing.