Skip to main content

Get order List

Get order List

Retrieve all incomplete orders under the current account.Retrieve the completed order data

Request URL

GET /deepcoin/trade/orders-pending

Request Parameters

parameterrequiredtypedescriptionremark
instTypeyesstringInstrument type. SPOT SWAPExample:instType="SPOT"
Enum:"SPOT","SWAP"
instIdnostringInstrument IDExample:instId="BTC-USDT"
ordTypenostringOrder type. market: Market order,limit: Limit order,post_only: Post-only orderExample:ordType="limit"
in:market,limit,post_only
Enum:"market","limit","post_only"
statenostringState. live or partially_filledin:live,partially_filled
Enum:"live","partially_filled"
afternostringPagination of data to return records earlier than the requested ordIdExample:after="1000314896749646"
beforenostringPagination of data to return records newer than the requested ordIdExample:before="1000314896749646"
limitnointNumber of results per request. The maximum is 100; The default is 100Example:limit="100"
between:1,100
Default:100
ordIdnostringOrder IDorder-id

Response Parameters

parametertypedescriptionremark
instTypestringInstrument typeExample:"SPOT"
instIdstringInstrument IDExample:"BTC-USDT"
tgtCcystringQuantity type. base_ccy: Base currency ,quote_ccy: Quote currency, Only applicable to SPOT Market Orders
ccystringMargin currency. Only applicable to cross MARGIN orders in Single-currency margin.Example:"USDT"
ordIdstringOrder IDExample:"1001063720100637"
clOrdIdstringClient Order ID as assigned by the client
tagstringOrder tag
pxstringPriceExample:"0.01"
szstringQuantity to buy or sellExample:"0.0004"
pnlstringProfit and lossExample:"0"
ordTypestringOrder type. market: Market order,limit: Limit order,post_only: Post-only orderExample:"limit"
sidestringOrder sideExample:"buy"
posSidestringPosition side
tdModestringTrade modeExample:"cash"
accFillSzstringAccumulated fill quantity
fillPxstringLast filled price
tradeIdstringLast trade ID
fillSzstringLast filled quantity
fillTimestringLast filled time
avgPxstringAverage filled price. If none is filled, it will return 0.
statestringState. live or partially_filled
leverstringLeverage. from 0.01 to 125.Only applicable to MARGIN/FUTURES/SWAPExample:"125"
tpTriggerPxstringTake-profit trigger price.
tpTriggerPxTypestringTake-profit trigger price type.last: last price, index: index price, mark: mark price
tpOrdPxstringTake-profit order price.
slTriggerPxstringStop-loss trigger price.
slTriggerPxTypestringStop-loss trigger price type.last: last price, index: index price, mark: mark price
slOrdPxstringStop-loss order price.
feeCcystringFee currencyExample:"USDT"
feestringFeeExample:"0"
rebateCcystringRebate currency
sourcestringOrder source. 13:The generated limit order after the strategy order is triggered
rebatestringRebate amount, the reward of placing orders from the platform (rebate) given to user who has reached the specified trading level. If there is no rebate, this field is
categorystringCategory. normal
uTimestringUpdate time, Unix timestamp format in millisecondsExample:"1597026383085"
cTimestringCreation time, Unix timestamp format in millisecondsExample:"1597026383085"

Response Example

[
{
"instType": "SPOT",
"instId": "BTC-USDT",
"tgtCcy": "string",
"ccy": "USDT",
"ordId": "1001063720100637",
"clOrdId": "string",
"tag": "string",
"px": "0.01",
"sz": "0.0004",
"pnl": "0",
"ordType": "limit",
"side": "buy",
"posSide": "string",
"tdMode": "cash",
"accFillSz": "string",
"fillPx": "string",
"tradeId": "string",
"fillSz": "string",
"fillTime": "string",
"avgPx": "string",
"state": "string",
"lever": "125",
"tpTriggerPx": "string",
"tpTriggerPxType": "string",
"tpOrdPx": "string",
"slTriggerPx": "string",
"slTriggerPxType": "string",
"slOrdPx": "string",
"feeCcy": "USDT",
"fee": "0",
"rebateCcy": "string",
"source": "string",
"rebate": "string",
"category": "string",
"uTime": "1597026383085",
"cTime": "1597026383085"
}
]

这个版本包含了HTML中的所有英文内容,保持了Markdown的结构、表格格式,并包含了JSON响应示例。所有内容都被放在一个完整的代码块中。