feat(V2): migrazione hyperliquid completa

- exchanges/hyperliquid/{client,leverage_cap,tools}.py
- routers/hyperliquid.py con 16 endpoint /mcp-hyperliquid/tools/*
- builder hyperliquid in exchanges/__init__.py
- test migrati: test_client, test_leverage_cap (skip V1: server_acl, environment_info)
- test builder hyperliquid (testnet vs mainnet base_url)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
AdrianoDev
2026-04-30 18:35:46 +02:00
parent 5e42ce9c69
commit 8dbaf3a0e4
10 changed files with 1438 additions and 0 deletions
+9
View File
@@ -27,4 +27,13 @@ async def build_client(
api_secret=settings.bybit.api_secret.get_secret_value(),
testnet=(env == "testnet"),
)
if exchange == "hyperliquid":
from cerbero_mcp.exchanges.hyperliquid.client import HyperliquidClient
return HyperliquidClient(
wallet_address=settings.hyperliquid.wallet_address,
private_key=settings.hyperliquid.private_key.get_secret_value(),
testnet=(env == "testnet"),
api_wallet_address=settings.hyperliquid.api_wallet_address,
)
raise ValueError(f"unsupported exchange: {exchange}")