okx_create_grid_order
Create grid trading orders on OKX with customizable price range and grid count. Supports spot, contract, and moon grid types.
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>",
"algoOrdType": "<algoOrdType>",
"maxPx": "<maxPx>",
"minPx": "<minPx>",
"gridNum": "<gridNum>"
},
"name": "okx_create_grid_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxPx | Yes | 价格上限。必填 | |
| minPx | Yes | 价格下限。必填 | |
| instId | Yes | 产品ID。必填 | |
| gridNum | Yes | 网格数量。必填 | |
| direction | No | 合约网格方向。long=做多, short=做空, neutral=中性 | |
| algoOrdType | Yes | 网格类型。grid=现货网格, contract_grid=合约网格, moon_grid=天地网格 |