execute_isolated_perp
Place an isolated-margin perpetual trade with a private key, specifying leverage, direction, size, and price for long or short positions.
Instructions
Execute an isolated-margin perpetual trade directly with a private key. Requires explicit leverage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol | |
| price | Yes | Price in USD | |
| isLong | Yes | True for long, false for short | |
| isMarket | No | ||
| leverage | Yes | Leverage (required for isolated margin) | |
| privateKey | Yes | Wallet private key (hex) | |
| reduceOnly | No | ||
| positionSize | Yes | Position size | |
| stopLossPrice | No | ||
| builderFeeRate | No | ||
| stopLossTrigger | No | ||
| takeProfitPrice | No | ||
| builderFeeAddress | No | ||
| takeProfitTrigger | No |