Sweep finale del task #14: tutti e 4 i client exchange ora usano httpx
puro (deribit già lo era; bybit/alpaca/hyperliquid riscritti nei commit
precedenti). Rimosso anche l'override mypy per i moduli SDK che non
servono più.
Quality gate finale:
- 292 test passano (tutti)
- mypy: 0 issues
- ruff: clean
- Nessun import SDK in src/
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Riscritto interamente HyperliquidClient su httpx puro + eth-account per la
firma EIP-712 L1 (chainId 1337, phantom agent source 'a'/'b' per
mainnet/testnet). Bit-parity verificata contro hyperliquid.utils.signing
in test_signing_parity_with_canonical_sdk.
16 metodi pubblici, 26 test passanti. Aggiunte deps: eth-account, msgpack,
eth-utils. hyperliquid-python-sdk ancora presente nel pyproject; rimossa
nel sweep finale.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- 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>