Skip to main content

Query the current pending order

Type GET

Description: /v4/open-order


Parameters

NameTypeMandatoryDefaultDescriptionRanges
symbolstringNoN/ATrading pair, if not filled in, represents all
bizTypestringNoN/ABusiness typeSPOT, LEVER
sidestringNoN/AOrder sideBUY, SELL

Limit Flow Rules

  • 10/s/apikey

Parameters Example

curl --location --request GET 'https://sapi.xt.com/v4/open-order?symbol=XT_USDT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--header 'validate-algorithms: HmacSHA256' \
--header 'validate-recvwindow: 60000' \
--header 'validate-appkey: xxxxxxxxxx' \
--header 'validate-timestamp: xxxxxxxxxx' \
--header 'validate-signature: xxxxxxxxxx'


Response Example

Response
{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": [
{
"symbol": "BTC_USDT",
"orderId": "6216559590087220004",
"clientOrderId": "16559590087220001",
"baseCurrency": "string",
"quoteCurrency": "string",
"side": "BUY",
"type": "LIMIT",
"timeInForce": "GTC",
"price": "40000",
"origQty": "2",
"origQuoteQty": "48000",
"executedQty": "1.2",
"leavingQty": "string",
"tradeBase": "2",
"tradeQuote": "48000",
"avgPrice": "42350",
"fee": "string",
"feeCurrency": "string",
"state": "NEW",
"time": 1655958915583,
"ip": "127.0.0.1",
"updatedTime": 1655958915583
}
]
}