Skip to main content

Get Order List

Query user's on-chain trade order history with status, fees, and execution details.

info
  • Supports filtering by trade type, order status, token, and time range
  • Maximum query range is 90 days; orders sorted by creation time descending
  • Order status flow: 1 (Processing) → 2 (Success) or 3 (Failed)
  • On-chain confirmation typically takes 10–60 seconds
  • Use this endpoint after Execute Purchase or Execute Redeem to confirm the final order status

HTTP Request

POST/v5/alpha/trade/order-list

Request Parameters

ParameterRequiredTypeComments
tradeTypefalseintegerFilter by trade type. 0: All (default), 1: Purchase, 2: Redeem
tokenCodefalsestringFilter by token code
orderStatusfalsearrayFilter by order status (multiple values allowed). 1: Processing, 2: Success, 3: Failed
daysfalseintegerQuery last N days. Range: [0, 90]. 0 uses system default (90 days). Default: 0
limittrueintegerResults per page. Range: [1, 100]
pageIndextrueintegerPage number (1-based)
directionfalsestringPagination direction. prev, next

Response Parameters

ParameterTypeComments
totalintegerTotal order count matching the filter
pageIndexintegerCurrent page number
ordersarrayOrder list
> orderTypeintegerOrder type. 1: Market order, 2: Limit order
> tradeTypeintegerTrade type. 1: Purchase, 2: Redeem
> orderNostringSystem order number
> orderStatusintegerOrder status. 1: Processing, 2: Success, 3: Failed
> fromTokenCodestringSource token code
> fromTokenAmountstringIntended payment amount
> fromTokenSymbolstringSource token symbol
> fromTokenDecimalsintegerSource token decimal precision
> fromTokenIconUrlDaystringSource token icon URL (light mode)
> fromTokenIconUrlNightstringSource token icon URL (dark mode)
> fromChainCodestringSource chain code
> fromChainIconUrlstringSource chain icon URL
> toTokenCodestringTarget token code
> toTokenAmountstringActual amount received (populated after completion)
> toTokenSymbolstringTarget token symbol
> toTokenDecimalsintegerTarget token decimal precision
> toTokenIconUrlDaystringTarget token icon URL (light mode)
> toTokenIconUrlNightstringTarget token icon URL (dark mode)
> toChainCodestringTarget chain code
> toChainIconUrlstringTarget chain icon URL
> gasTokenSymbolstringNative gas token symbol, e.g. ETH, SOL, BNB
> gasOnchainstringOn-chain gas fee in native token
> gasUsdstringGas fee in USD. May be null if order is still processing
> platformFeestringPlatform fee
> platformFeeUsdstringPlatform fee in USD. May be null if order is still processing
> quoteModeintegerQuote mode used
> createTimeintegerOrder creation time (Unix timestamp in seconds)
> executionTimeintegerOrder completion time (Unix timestamp in seconds)
> failureReasonCodestringFailure reason code, only present when orderStatus=3. ERR999: Unknown, ERR101: System exception, ERR102: Execution timeout, ERR103: Insufficient balance, ERR104: Broadcast failed, ERR105: On-chain execution failed, ERR106: Trade loss too large, ERR107: Liquidity range too large
> sourcestringTrade source identifier
> swapRatestringActual exchange rate
> actualFromTokenAmountstringActual amount paid

Request Example

POST /v5/alpha/trade/order-list HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1704067200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"tradeType": 0,
"days": 7,
"limit": 20,
"pageIndex": 1
}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"total": 1,
"pageIndex": 1,
"orders": [
{
"orderType": 1,
"tradeType": 1,
"orderNo": "ORD_20240101_001",
"orderStatus": 2,
"fromTokenCode": "CEX_1",
"fromTokenAmount": "100",
"fromTokenSymbol": "USDT",
"fromTokenDecimals": 6,
"fromChainCode": "ETH",
"toTokenCode": "DEX_123",
"toTokenAmount": "12450000",
"toTokenSymbol": "PEPE",
"toTokenDecimals": 18,
"toChainCode": "ETH",
"gasTokenSymbol": "ETH",
"gasOnchain": "0.0003",
"gasUsd": "0.30",
"platformFee": "0.20",
"platformFeeUsd": "0.20",
"quoteMode": 0,
"createTime": 1704067200,
"executionTime": 1704067230,
"swapRate": "124500",
"actualFromTokenAmount": "100"
}
]
},
"retExtInfo": {},
"time": 1704067300000
}