Skip to main content

Get Order List

tip

Query order list.
As order creation/cancellation is asynchronous, the data returned from this endpoint may delay.

HTTP Request

GET /unified/v3/private/order/list

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type. linear, option
symbolfalsestringSymbol name
baseCoinfalsestringBase coin. Ifcategory=option,then it returns BTC data when this field is not passed
orderIdfalsestringOrder id
orderLinkIdfalsestringUser customised order id
orderStatusfalsestringReturn all status orders if not passed. You could pass multiple status, separated by comma
orderFilterfalsestringOrder: active order, StopOrder: conditional order
directionfalsestringPage direction. prev, next. Default: next
limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
categorystringProduct type
nextPageCursorstringRefer to the cursor request parameter
listarrayObject
> orderIdstringOrder ID
> orderLinkIdstringUser customised order ID
> blockTradeIdstringParadigm block trade ID
> symbolstringSymbol name
> ivstringImplied volatility. linear does not have this field
> pricestringOrder price
> qtystringOrder qty
> sidestringSide. Buy,Sell
> orderStatusstringOrder status
> orderTypestringOrder type. Market,Limit
> stopOrderTypestringStop order type. option does not have this field
> rejectReasonstringThe reason of rejection
> cumExecValuestringCumulative executed order value
> cumExecFeestringCumulative executed trading fee
> cumExecQtystringCumulative executed order qty
> tpTriggerBystringThe price type to trigger take profit. option does not have this field
> slTriggerBystringStop loss price. option does not have this field
> timeInForcestringTime in force
> basePricestringBase price
> triggerBystringThe price type of trigger price. option does not have this field
> triggerPricestringTrigger price. If stopOrderType=TrailingStop, it is activate price. Otherwise, it is trigger price. option does not have this field
> leavesQtystringThe remaining qty not executed
> leavesValuestringThe remaining value not executed. option does not have this field
> reduceOnlybooleanReduce only. true means reduce position size
> closeOnTriggerbooleanClose on trigger. option does not have this field
> takeProfitstringTake profit price. option does not have this field
> stopLossstringStop loss price. option does not have this field
> orderIMstringOrder initial margin. For portfolio margin mode, it returns ""
> createdTimenumberOrder created timestamp (ms)
> updatedTimenumberOrder updated timestamp (ms)

Request Example

GET /unified/v3/private/order/list?category=linear&orderFilter=StopOrder&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672811957817
X-BAPI-RECV-WINDOW: 5000
cdn-request-id: test-002

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"nextPageCursor": "c6f055d9-7f21-4079-913d-e6523a9cfffa%3A1672216686849%2Cc6f055d9-7f21-4079-913d-e6523a9cfffa%3A1672216686849",
"category": "linear",
"list": [
{
"symbol": "ETHPERP",
"orderType": "Limit",
"orderLinkId": "linear-004",
"orderId": "c6f055d9-7f21-4079-913d-e6523a9cfffa",
"stopOrderType": "Stop",
"orderStatus": "Deactivated",
"takeProfit": "",
"cumExecValue": "0",
"blockTradeId": "",
"rejectReason": "EC_NoError",
"price": "1050",
"createdTime": 1672216686849,
"tpTriggerBy": "UNKNOWN",
"timeInForce": "GoodTillCancel",
"basePrice": "1188",
"leavesValue": "0",
"updatedTime": 1672217377166,
"side": "Sell",
"triggerPrice": "1145.00000000",
"cumExecFee": "0",
"slTriggerBy": "UNKNOWN",
"leavesQty": "0",
"closeOnTrigger": false,
"cumExecQty": "0",
"reduceOnly": false,
"qty": "0.15",
"stopLoss": "",
"triggerBy": "MarkPrice",
"orderIM": ""
}
]
},
"retExtInfo": {},
"time": 1672811958171
}