get_order_list
Retrieve incomplete orders from your OKX cryptocurrency exchange account to monitor pending trades and manage positions.
Instructions
Retrieve all incomplete orders under the current OKX account. For a detailed schema of the output object, please read the resource at: schema://trade/order
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instType | No | Instrument type: `SPOT/MARGIN/SWAP/FUTURES/OPTION` | |
| instFamily | No | Instrument family. Applicable to `FUTURES/SWAP/OPTION` | |
| instId | No | Instrument ID, e.g. BTC-USD-200927 | |
| state | No | State: `live`/`partially_filled` | |
| ordType | No | Order type. `market`: Market order `limit`: Limit order `post_only`: Post-only order `fok`: Fill-or-kill order `ioc`: Immediate-or-cancel order `optimal_limit_ioc`: Market order with immediate-or-cancel order `mmp`: Market Maker Protection (only applicable to Option in Portfolio Margin mode) `mmp_and_post_only`: Market Maker Protection and Post-only order(only applicable to Option in Portfolio Margin mode) `op_fok`: Simple options (fok) |