Persist daily P&L beyond 28-day Tradovate window

Adds a daily_pnl SQLite table that accumulates trade history indefinitely.
On each hourly fetch, fresh API data is upserted (not replaced) so entries
older than Tradovate's 28-day limit are preserved. Cache is loaded at startup
and used as fallback when both report requests fail.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-03-21 03:40:37 -05:00
co-authored by Claude Sonnet 4.6
parent 131c9bca9f
commit 6b299f5359
3 changed files with 3882 additions and 11 deletions
+3815
View File
File diff suppressed because it is too large Load Diff