This commit is contained in:
k
2026-04-21 19:33:24 +08:00
parent 9a72566753
commit 3268080401
26 changed files with 1816 additions and 318 deletions
+4
View File
@@ -41,6 +41,10 @@ async def _process_message(raw: str):
}
price_store.update(asset, candle)
# TP/SL check on every tick (cheap no-op when no trades are being watched)
from app.services.tp_sl_monitor import on_price_tick
on_price_tick(asset, candle["close"])
# Broadcast live price tick
await manager.broadcast({
"type": "price",