feat(dashboard): mostra i disaster-SL attivi nella sezione LIVE

Lo shadow espone i bracket disaster-SL aperti (open_orders filtrati per label DISASTER_LABEL,
centralizzata in deribit.py): asset, stop price, size. La sezione LIVE li mostra
("disaster-SL attivi (-30%): ..." o "nessuno (flat)"). Test 28/28.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal Pastro
2026-06-20 16:05:18 +00:00
parent e5e2d3ec9b
commit 3cba5bb9d0
4 changed files with 24 additions and 7 deletions
+1
View File
@@ -32,6 +32,7 @@ _CONTRACT = {
}
# Il conto reale e' USDC -> mappiamo gli asset sui perp LINEARI USDC (gli unici eseguibili qui).
INSTRUMENT = {"BTC": "BTC_USDC-PERPETUAL", "ETH": "ETH_USDC-PERPETUAL"}
DISASTER_LABEL = "tp01-disaster" # label dei bracket disaster-SL (per ritrovarli/gestirli/mostrarli)
# ----------------------------- costruzione ordini (pura, testabile, NIENTE rete) -----------------------------