Skip to main content

Get Order Information by Order ID

Response Example

{
"success": true,
"code": 0,
"data": {
"orderId": "739106551624717312",
"symbol": "BTC_USDT",
"positionId": 1109973831,
"price": 109777.5,
"priceStr": "109777.500000000000000000",
"vol": 5,
"leverage": 2,
"side": 1,
"category": 1,
"orderType": 5,
"dealAvgPrice": 109777.5,
"dealAvgPriceStr": "109777.500000000000000000",
"dealVol": 5,
"orderMargin": 27.444375,
"takerFee": 0,
"makerFee": 0,
"profit": 0,
"feeCurrency": "USDT",
"openType": 1,
"state": 3,
"externalOid": "_m_903a9f81cc1148be99ac9ece15981374",
"errorCode": 0,
"usedMargin": 27.444375,
"createTime": 1761887134000,
"updateTime": 1761887134000,
"positionMode": 1,
"version": 2,
"showCancelReason": 0,
"showProfitRateShare": 0,
"bboTypeNum": 0,
"totalFee": 0,
"zeroSaveTotalFeeBinance": 0,
"zeroTradeTotalFeeBinance": 0
}
}
  • GET /api/v1/private/order/get/{orderId}

Required Permission: View Order Details

Request Parameters:

ParameterTypeRequiredDescription
orderIdstringtrueOrder ID

Response Parameters:

ParameterTypeDescription
orderIdlongOrder ID
symbolstringContract
positionIdlongPosition id
pricedecimalOrder price
voldecimalOrder quantity
leveragelongLeverage
sideintOrder side 1: open long,2: close short,3: open short,4: close long
categoryintOrder category:1: limit,2: liquidation custody,3: custody close,4: ADL reduction
dealAvgPricedecimalAverage deal price
dealVoldecimalDeal quantity
orderMargindecimalOrder margin
takerFeedecimalTaker fee
makerFeedecimalMaker fee
profitdecimalClose PnL
feeCurrencystringFee currency
openTypeintOpen type,1: isolated,2: cross
stateintOrder status,1: pending,2: unfilled,3: filled,4: canceled,5: invalid
externalOidstringExternal order ID
createTimedateCreated time
updateTimedateUpdated time
bboTypeNumintLimit order type - BBO type; 0: not BBO;1: best opposite 1;2: best opposite 5;3: same-side 1;4: same-side 5;
lossTrendintStop-loss price type;1: latest price;2: fair price;3: index price
profitTrendintTake-profit price type;
takeProfitPricedecimalTake-profit price
stopLossPricedecimalStop-loss price
priceProtectintPrice difference protection 1: on;0: off
positionModeintPosition mode;1: dual-side;2: one-way