okx_place_order
Place buy or sell orders on OKX with custom trade modes and order types including market, limit, post-only, FOK, and IOC.
Instructions
[L:WRITE] CAT:[交易] | → 请先调用 agent_catalog
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": {
"instId": "<instId>",
"tdMode": "<tdMode>",
"side": "<side>",
"ordType": "<ordType>",
"sz": "<sz>"
},
"name": "okx_place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| px | No | 委托价格(限价单必填) | |
| sz | Yes | 委托数量 | |
| side | Yes | 买卖方向 | |
| instId | Yes | 产品ID,如 BTC-USDT | |
| tdMode | Yes | 交易模式:cash=现货,isolated=逐仓,cross=全仓 | |
| ordType | Yes | 订单类型 |