Skip to main content
Version: Next

Order History

Query historical orders that have been filled or canceled (paginated).

API Information

  • Method: POST
  • Path: /api/v1/futures/open-api/order/history

Request Parameters

ParameterTypeRequiredDescription
symbolstringNoFilter by futures trading pair
coTypeintNoFilter by contract type
pageIndexintNoPage number, default 1
pageSizeintNoRecords per page, default 10, max 100

Request Example

{
"symbol": "BTCUSDT",
"coType": 3,
"pageIndex": 1,
"pageSize": 20
}

Response Fields

FieldTypeDescription
idint64Order ID
symbolstringFutures trading pair
pricestringOrder price
avgPricestringAverage fill price
statusintOrder status: 0=init, 1=new, 2=filled, 3=part_filled, 4=canceled, 5=pending_cancel, 6=expired
orderNostringOrder number
openFlagintOpen/Close: 1=Open, 2=Close
orderTypeintOrder type: 1=Limit, 2=Market
longFlagintDirection: 1=Long (Buy), 2=Short (Sell)
volstringOrder quantity
amtTotalstringTotal order value (USD)
leveragestringLeverage
realPnlstringRealized P&L
realFeestringActual fee
ctimeint64Creation time (milliseconds)
tradedTimeint64Fill time (milliseconds)
cancelTimeint64Cancel time (milliseconds)
triggerTypeintTrigger type: 1=Normal, 2=Take profit, 3=Stop loss, 4=Liquidation
orderMarginstringMargin
marginModeintMargin mode: 1=Cross, 2=Isolated
coTypeintContract type: 1=US stocks, 2=Hong Kong stocks, 3=Cryptocurrency
totalint64Total record count
pageintCurrent page
sizeintRecords per page

Response Example

{
"code": 200,
"data": [
{
"id": 123456,
"symbol": "BTCUSDT",
"price": "68500.00",
"avgPrice": "68520.00",
"status": 2,
"orderNo": "CO2026032500001",
"openFlag": 1,
"orderType": 2,
"longFlag": 1,
"vol": "0.5",
"amtTotal": "34260.00",
"leverage": "10",
"realPnl": "200.50",
"realFee": "34.26",
"ctime": 1737446400000
}
]
}