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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user