- Implemented functions to record trades and PnL (profit and loss) logs.
- Created database schema for trades, PnL logs, daily state, and budget anchors.
- Added functionality to aggregate PnL by market and currency.
- Included methods to check and mark daily actions to prevent duplicate processing.
- Initialized the database on module load.