okx_close_position
Place a reduce-only market order to close an open position on OKX. Optionally preview the order before execution.
Instructions
Close an open position by placing a reduce-only market order in the opposite direction
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>"
},
"name": "okx_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true = preview, false = execute | |
| instrument | Yes | Full instrument ID, e.g. BTC-USDT-SWAP |