set_leverage
Configure leverage for a specific HyperLiquid asset and select cross or isolated margin to adjust perpetual trading risk.
Instructions
Set leverage for a specific asset on HyperLiquid. Supports cross and isolated margin modes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol | |
| apiKey | Yes | GDEX API key for AES encryption | |
| isCross | No | True for cross margin, false for isolated | |
| leverage | Yes | Leverage multiplier (1-50) | |
| walletAddress | Yes | Control wallet address | |
| sessionPrivateKey | Yes | Session private key from sign-in |