Phase 1: SQLite persistence layer

- Add modernc.org/sqlite (pure Go, no CGO)
- db/ package: trades, orders, config_log tables + CRUD
- Trade persistence: every closed trade saved to SQLite
- Restart recovery: open positions restored from DB
- Automatic migration on startup
This commit is contained in:
jackyu66git
2026-05-03 17:28:08 +08:00
parent 189fc0d9b6
commit b09314f317
7 changed files with 457 additions and 5 deletions
BIN
View File
Binary file not shown.