feat: add daily budget, active window, trade snapshots, and price impact monitor

- New migrations for daily_budget, active_window, and bottrade snapshot
- Add trumpstruth scraper and price_impact_monitor service
- Expand bot_engine, hyperliquid, recovery, and tp_sl_monitor logic
- Update API/schemas/models for new features

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
k
2026-04-25 16:04:49 +08:00
parent a2c68e2939
commit 4ffcb442fe
20 changed files with 1110 additions and 114 deletions
+4
View File
@@ -45,6 +45,10 @@ async def _process_message(raw: str):
from app.services.tp_sl_monitor import on_price_tick
on_price_tick(asset, candle["close"])
# Price-impact peak tracker (updates rolling max for open post windows)
from app.services.price_impact_monitor import on_price_tick as pi_tick
pi_tick(asset, candle["high"], candle["low"], candle["close"])
# Broadcast live price tick
await manager.broadcast({
"type": "price",