close_position
Closes all positions for a specified trading pair on Hyperliquid and returns order details.
Instructions
Close all positions for the specified trading pair on Hyperliquid.
Args: symbol: Trading pair, e.g., "BTC/USDC:USDC"
Returns: Dict with close order details or error
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |