- mcp_common/http.py: nuovo helper async_client() con
AsyncHTTPTransport(retries=3) per gestire connection error transient
+ call_with_retry() generic async retry decorator. Sostituite 25
occorrenze httpx.AsyncClient(...) in deribit/hyperliquid/sentiment/
macro client. 5 nuovi test.
- Dockerfile healthcheck: passato da python+httpx subprocess a
stdlib urllib.request.urlopen() su tutti i 6 servizi MCP. Zero
dipendenze esterne nel runtime check, timeout esplicito 3s, image
leggermente più snella.
- pyproject.toml: aggiunto [tool.mypy] python_version=3.13 con
mypy_path multi-package + override ignore_missing_imports per i
vendor SDK (pybit, alpaca, hyperliquid, pythonjsonlogger). mypy 1.20
in dev deps; ruff pinned 0.5.x. mcp_common passa mypy clean; 44
errori tipo pre-esistenti nei servizi affiorati ma non bloccanti —
fix da pianificare separatamente.
- 455 test verdi.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deribit: private/create_combo + place_order sul combo instrument → una
sola crociata di spread invece di N (slippage atteso ridotto su
strutture liquide). ACL core + leverage cap su tutti i leg.
Bybit: place_batch_order su category=option (atomic multi-leg, 1
round-trip API). Reject su category != option (perp/linear non
supportano batch nativo). orderLinkId auto-generato per leg.
Tutti i test: deribit 48/48, bybit 123/123.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>