okx_place_order
Execute spot and swap orders on OKX with leverage, stop-loss, and take-profit. Preview orders via confirm=true before final execution.
Instructions
Place a market order on OKX. SWAP: sets leverage + optional SL/TP. SPOT: simple buy/sell. Use confirm=true to preview before executing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy = long/buy, sell = short/sell | |
| size | Yes | Order size (contracts for SWAP, quantity for SPOT) | |
| confirm | No | true = preview only, false = execute immediately | |
| instType | No | SWAP | |
| leverage | No | Leverage for SWAP (1-125x) | |
| stopLoss | No | Stop loss trigger price | |
| instrument | Yes | Trading pair, e.g. BTC-USDT | |
| takeProfit | No | Take profit trigger price |