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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true = preview, false = execute | |
| instrument | Yes | Full instrument ID, e.g. BTC-USDT-SWAP |