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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instrument": "<instrument>",
"side": "<side>",
"size": "<size>"
},
"name": "okx_place_order"
}
}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 |