done
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user