Skip to main content

Get Current Orders

Description

Get unfilled futures orders. If no request parameters are specified, you will get all open orders sorted on the creation time in chronological order.

HTTP Request

GET /v3/trade/order/opens

Request Parameters

ParameterRequiredTypeDescription
sideNoStringTrade Side, Enumerate: BUY and SELL
symbolNoStringA trading pair, consisting of two currencies: base currency and quote currency
ordIdNoStringThe order ID of the order to be queried
clOrdIdNoStringClient Order ID as assigned by the client
fromNoLongIt is ordId. ID for the query starts at 0 by default.
limitNoIntegerPagination size defaults to 10, with a maximum limit of 100.
directNoStringEnumerate: PREV, NEXT, The default is NEXT

Response Parameters

ParameterTypeDescription
symbolStringA trading pair, consisting of two currencies: base currency and quote currency
sideStringEnumerate: BUY and SELL
typeStringOrder type; enumerate MARKET, LIMIT, and LIMIT_MAKER
ordIdStringOrder ID
clOrdIdStringClient Order ID as assigned by the client
mgnModeStringMargin Mode, Enumerate: ISOLATED, CROSS
pxStringPrice
szStringOrder size, specifically in Cont
stateStringOrder Status: Enumerate NEW, PARTIALLY_FILLED, FILLED, PARTIALLY_CANCELED, CANCELED, and REJECTED
sourceStringOrder Source: Enumerate WEB, APP, API, SMART, WEB_MARGIN, APP_IOS, APP_ANDROID, APP_IOS_MARGIN, APP_ANDROID_MARGIN, API_MARGIN, SMART_MARGIN, WS, WS_MARGIN, GRID, GRID_MARGIN, SYSTEM, COPY_TRADING, TRIGGER, LIQUIDATION, ADL, TRIAL, MARGIN_FL, MARGIN_FL_OFFLINE
reduceOnlyBooleanReduce only
timeInForceStringEnumerate FOK, IOC, and GTC. It is an optional field with GTC by default.
avgPxStringAverage execution price
execQtyStringCumulative execution amount
execAmtStringCumulative execution value
feeCcyStringName of the currency used for trading fees
feeAmtStringCumulative amount of trading fee
deductCcyStringName of the currency used to deduct trading fees
deductAmtStringCumulative amount of trading fee deducted
stpModeStringEnumerate
- EXPIRE_TAKER
- EXPIRE_MAKER
- EXPIRE_BOTH
Default is NONE
cTimeStringOrder creation time with a UTC timestamp (MS)
uTimeStringOrder update time with a UTC timestamp (MS)

Request Example

{
"symbol": "BTC_USDT_PERP",
"limit": "100"
}

Response Example

{
"code": 200,
"data": [
{
"avgPx": "0",
"cTime": "1719974138337",
"clOrdId": "11c033ce-8d86-49e2-9503-f21c61de51ee",
"deductAmt": "0",
"deductCcy": "0",
"execAmt": "0",
"execQty": "0",
"feeAmt": "0",
"feeCcy": "",
"lever": "20",
"mgnMode": "CROSS",
"ordId": "331382472938094592",
"px": "60000",
"reduceOnly": false,
"side": "SELL",
"slPx": "0",
"slTrgPx": "",
"slTrgPxType": "",
"source": "API",
"state": "NEW",
"stpMode": "EXPIRE_TAKER",
"symbol": "BTC_USDT_PERP",
"sz": "2",
"timeInForce": "GTC",
"tpPx": "",
"tpTrgPx": "",
"tpTrgPxType": "",
"type": "LIMIT",
"uTime": "1719974161941"
},
{
"avgPx": "0",
"cTime": "1719974138335",
"clOrdId": "99048dd0-ba62-48a1-88e3-e567640b0414",
"deductAmt": "0",
"deductCcy": "0",
"execAmt": "0",
"execQty": "0",
"feeAmt": "0",
"feeCcy": "",
"lever": "20",
"mgnMode": "CROSS",
"ordId": "331382472929705985",
"px": "60000",
"reduceOnly": false,
"side": "SELL",
"slPx": "0",
"slTrgPx": "",
"slTrgPxType": "",
"source": "API",
"state": "NEW",
"stpMode": "EXPIRE_TAKER",
"symbol": "BTC_USDT_PERP",
"sz": "2",
"timeInForce": "GTC",
"tpPx": "",
"tpTrgPx": "",
"tpTrgPxType": "",
"type": "LIMIT",
"uTime": "1719974161941"
},
{
"avgPx": "0",
"cTime": "1719974138333",
"clOrdId": "d1dac66e-6728-4f45-b0e7-c24da8456e1e",
"deductAmt": "0",
"deductCcy": "0",
"execAmt": "0",
"execQty": "0",
"feeAmt": "0",
"feeCcy": "",
"lever": "20",
"mgnMode": "CROSS",
"ordId": "331382472921317376",
"px": "60000",
"reduceOnly": false,
"side": "BUY",
"slPx": "0",
"slTrgPx": "",
"slTrgPxType": "",
"source": "API",
"state": "NEW",
"stpMode": "EXPIRE_TAKER",
"symbol": "BTC_USDT_PERP",
"sz": "2",
"timeInForce": "GTC",
"tpPx": "",
"tpTrgPx": "",
"tpTrgPxType": "",
"type": "LIMIT",
"uTime": "1719974161941"
},
{
"avgPx": "0",
"cTime": "1719974138330",
"clOrdId": "55d7b1e0-fbce-4f86-abfa-d1b0e6d5b053",
"deductAmt": "0",
"deductCcy": "0",
"execAmt": "0",
"execQty": "0",
"feeAmt": "0",
"feeCcy": "",
"lever": "20",
"mgnMode": "CROSS",
"ordId": "331382472908734464",
"px": "60000",
"reduceOnly": false,
"side": "BUY",
"slPx": "0",
"slTrgPx": "",
"slTrgPxType": "",
"source": "API",
"state": "NEW",
"stpMode": "EXPIRE_TAKER",
"symbol": "BTC_USDT_PERP",
"sz": "2",
"timeInForce": "GTC",
"tpPx": "",
"tpTrgPx": "",
"tpTrgPxType": "",
"type": "LIMIT",
"uTime": "1719974161941"
}
],
"msg": ""
}