execute_cross_perp
Execute cross-margin perpetual trades with your own private key, no managed custody. Set leverage, take-profit, stop-loss, and builder fees directly.
Instructions
Execute a cross-margin perpetual trade directly with a private key (no managed custody). Supports TP/SL and builder fees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol, e.g. 'BTC' | |
| price | Yes | Price in USD | |
| isLong | Yes | True for long, false for short | |
| isMarket | No | True for market, false for limit | |
| leverage | No | Leverage for cross-margin (calls updateLeverage before placing) | |
| privateKey | Yes | Wallet private key (hex) | |
| reduceOnly | No | ||
| positionSize | Yes | Position size | |
| stopLossPrice | No | Stop-loss price | |
| builderFeeRate | No | Builder fee rate in basis points | |
| stopLossTrigger | No | Stop-loss trigger price | |
| takeProfitPrice | No | Take-profit price | |
| builderFeeAddress | No | Builder fee wallet address | |
| takeProfitTrigger | No | Take-profit trigger price |