Skip to main content

Get Stock Order Detail

Query the full status, parameters and fill details of a single stock order by order number or client idempotency key. Used for MM reconciliation, status polling and failure diagnosis.

info

This endpoint is only available for Market Maker.

HTTP Request

GET/v5/rwa/stocks/order/detail

Request Parameters

ParameterRequiredTypeComments
orderNofalsestringSystem order number. Either orderNo or requestId is required
requestIdfalsestringClient idempotency key. Either orderNo or requestId is required

Response Parameters

ParameterTypeComments
orderNostringSystem order number
requestIdstringClient idempotency key (if provided at placement)
symbolstringStock symbol
quoteTokenstringQuote asset
sidestringOrder side
typestringOrder type
qtystringOrder quantity (shares). May be null when the order was placed with notional
notionalstringOrder notional amount (USDC). Non-empty only when side=BUY and type=MARKET
limitPricestringLimit price. null for non-limit orders
stopPricestringTrigger price. null for non-stop orders
timeInForcestringTime in force
tradingSessionstringTrading session
tokenizebooleanWhether to auto tokenize
orderStatusstringCurrent order status
filledQtystringCumulative filled quantity (shares)
filledNotionalstringCumulative filled amount (USDC)
avgPricestringAverage fill price (USD). "0" when not filled
failReasonstringFailure reason. Value comes from the orderStatus enum
orderTimeintegerClient order timestamp in milliseconds
updatedAtintegerLast update timestamp in milliseconds

Request Example

GET /v5/rwa/stocks/order/detail?orderNo=SB227696733955111526412 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1787657753833
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX

Response Example

{
"retCode": 0,
"retMsg": "ok",
"result": {
"orderNo": "SB227696733955111526412",
"requestId": "mm-ord-20260819-0007",
"symbol": "TSLA-US",
"quoteToken": "USDC",
"side": "BUY",
"type": "LIMIT",
"qty": "2",
"notional": "",
"limitPrice": "350",
"stopPrice": "",
"timeInForce": "DAY",
"tradingSession": "RTH",
"tokenize": false,
"orderStatus": "cancelled",
"filledQty": "0",
"filledNotional": "0",
"avgPrice": "0",
"failReason": "",
"orderTime": 1786171659000,
"updatedAt": 1786419757000
},
"retExtInfo": {},
"time": 1787657753833
}