execute_spot
Buy or sell spot assets on HyperLiquid using a private key; supports market or limit orders and account-based signing.
Instructions
Execute a spot trade directly on HyperLiquid with a private key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol | |
| size | Yes | Trade size | |
| isBuy | Yes | True for buy, false for sell | |
| price | Yes | Price | |
| isMarket | No | ||
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| privateKey | No | Wallet private key (hex) | |
| builderFeeRate | No | ||
| builderFeeAddress | No |