Telemetria operacional
latência · staleness · erro
Medição de ações críticas, estado de WS positions e endpoints operacionais.
Hedge mode oficial
Bitget Futures v2
USDT-M perpetuals com hedge mode nativo. Direction-aware: long, short, neutral e hedge 50/50.
Canais WebSocket
broadcasters dedupados
price · grid_status · positions · tickers · open_orders · grid_orders · trade_fills · alerts · ai_signals.
Auth
JWT httpOnly cookie
Access 24h + refresh 7d. Rate limit 5/min no login. Origin validation exact-match no WS.
Credenciais Bitget
AES-256-GCM
Cifradas no SQLite por usuário. Nunca em log, nunca em response. Passphrase rotacionada em 2026-03.
Defesa em profundidade
Circuit breaker + AI Guard
CB com níveis de proteção (warn/danger), regime detection, adaptive SL e auto-recovery após restart.
Backend ownership
domínios claros
ai · auth · autonomous · billing · entitlements · exchange · grid · monitoring · positions · strategy_recipes.
Operacional
SQLite WAL + backup 30d
Resource limits no systemd (2G / 80% CPU). Bind 127.0.0.1, exposto só via Nginx :443 com TLS Let's Encrypt.