Skip to main content
Glama
aahl

OKX MCP Server

by aahl

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
NameRequiredDescriptionDefault
instTypeNoInstrument type: `SPOT/MARGIN/SWAP/FUTURES/OPTION`
instFamilyNoInstrument family. Applicable to `FUTURES/SWAP/OPTION`
instIdNoInstrument ID, e.g. BTC-USD-200927
stateNoState: `live`/`partially_filled`
ordTypeNoOrder 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aahl/mcp-okx'

If you have feedback or need assistance with the MCP directory API, please join our Discord server