hedge_plan
Plan a Hyperliquid short that hedges a Solana token position: runs the pre-trade scans pair_data, wallet_balance (if you pass a wallet), token_security and funding_rate_arbitrage, then sizes the short on the token's own perp (or SOL with a beta estimate if it has none) and shows funding, liquidation price and distance, margin and fees. Read-only: places no order. One fixed charge covers the scans at list price ($0.005 + $0.001 + $0.001 + $0.01; the wallet scan's share is included even when you pass an amount) plus $0.003 for the plan. If a scan fails or no viable plan can be made you get an error and pay nothing. Hyperliquid excludes US persons. Costs $0.02 USDC per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Token units held (pass this or walletAddress) | |
| leverage | No | Leverage for the short, whole number (default 2; capped at the perp's maximum) | |
| hedgeRatio | No | Share of the position to hedge, 0.01–1 (default 1) | |
| mintAddress | Yes | Solana token mint to hedge, or 'SOL' | |
| betaOverride | No | Your beta estimate (0.1–5); default 1 | |
| walletAddress | No | Solana wallet to read the balance from (pass this or amount) |