Skip to main content

Open Orders

HTTP Request

GET /spot/v3/private/open-orders

Request Parameters

ParameterRequiredTypeComments
symbolfalsestringName of the trading pair
orderIdfalsestringSpecify orderId to return all the orders that orderId of which are smaller than this particular one for pagination purpose
limitfalseintegerLimit for data size. [1, 500]. Default: 500
orderCategoryfalseintegerOrder category. 0:normal order by default; 1TP/SL order, Required for TP/SL order.

Response Parameters

ParameterTypeComments
accountIdstringAccount ID
symbolstringName of the trading pair
orderLinkIdstringUser-generated order ID
orderIdstringOrder ID
orderPricestringOrder price
orderQtystringOrder quantity
execQtystringExecuted quantity
cummulativeQuoteQtystringTotal order quantity. For some historical data, it might less than 0, and that means it is not applicable
avgPricestringAverage filled price
statusstringOrder status
timeInForcestringTime in force
orderTypestringOrder type
sidestringSide. BUY, SELL
stopPricestringStop price
icebergQtystringPlease ignore
createTimeintegerOrder created time in the match engine
updateTimeintegerLast time order was updated
isWorkingstringIs working. 0:valid, 1:invalid
orderCategoryintegerOrder category. 0:normal order; 1:TP/SL order. TP/SL order has this field
triggerPricestringTrigger price. TP/SL order has this field
blockTradeIdstringParadigm block trade ID
cancelTypestringCancel type. CancelBySmp
smpTypestringSMP execution type
smpGroupintegerSmp group ID. If the uid has no group, it is 0 by default
smpOrderIdstringThe counterparty's orderID which triggers this SMP execution

Request Example

curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/private/open-orders?symbol=BTCUSDT' \
--header 'X-BAPI-SIGN: e28768ea749013bbd0eb38edf78e1cac187d3018e4807859a84a37cf52feb5c0' \
--header 'X-BAPI-API-KEY: {api key}' \
--header 'X-BAPI-TIMESTAMP: 1659081676022' \
--header 'X-BAPI-RECV-WINDOW: 5000'

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"accountId": "533287",
"symbol": "BTCUSDT",
"orderLinkId": "spotx004",
"orderId": "1210858291884732160",
"orderPrice": "23500",
"orderQty": "0.02",
"execQty": "0",
"cummulativeQuoteQty": "0",
"avgPrice": "0",
"status": "NEW",
"timeInForce": "GTC",
"orderType": "LIMIT_MAKER",
"side": "SELL",
"stopPrice": "0.0",
"icebergQty": "0.0",
"createTime": 1659081556722,
"updateTime": 1659081556740,
"isWorking": "1",
"blockTradeId": "",
"cancelType": "UNKNOWN"
"smpGroup": 0,
"smpOrderId": "",
"smpType": "None"
}
]
},
"retExtInfo": {},
"time": 1659081570356
}