Skip to main content

Get LP Order List

Query the user's LP order history (stake and redeem operations) with optional filters.

info
  • Use this endpoint after executing Execute LP Stake or Execute LP Redeem to confirm order status
  • Orders are sorted by creation time descending
  • Maximum query range: 365 days
  • For current position details, use Get LP Position List instead
  • Rate Limit: 3 req/s (per user), 2000 req/s (global)

HTTP Request

POST/v5/alpha/lp/order-list

Request Parameters

ParameterRequiredTypeComments
orderTypefalseintegerFilter by order type. 0: All (default), 1: Stake, 2: Redeem
tokenCodefalsestringFilter by token code
orderStatusfalsearrayFilter by order status (multiple values allowed). 1: Processing, 2: Success, 3: Failed
daysfalseintegerQuery last N days. Default: 90, Max: 365
limitfalseintegerResults per page. Default: 20, Max: 100
pageIndexfalseintegerPage number (1-based). Default: 1
poolAddressfalsestringFilter by pool contract address

Response Parameters

ParameterTypeComments
totalintegerTotal order count matching the filter
pageIndexintegerCurrent page number
ordersarrayOrder list
> orderTypeintegerOrder type. 1: Stake, 2: Redeem
> orderNostringSystem order number
> orderStatusintegerOrder status. 1: Processing, 2: Success, 3: Failed
> poolAddressstringPool contract address
> poolNamestringPool name
> positionIdintegerAssociated position ID
> tokenCodestringPayment token code
> tokenSymbolstringPayment token symbol
> tokenIconUrlDaystringToken icon URL (light mode)
> tokenIconUrlNightstringToken icon URL (dark mode)
> amountstringOrder amount
> chainCodestringBlockchain identifier
> chainIconUrlstringBlockchain icon URL
> gasTokenSymbolstringGas token symbol
> gasOnchainstringOn-chain gas fee
> gasUsdstringGas fee in USD
> platformFeestringPlatform fee
> platformFeeUsdstringPlatform fee in USD
> createTimeintegerOrder creation time (Unix seconds)
> executionTimeintegerOrder completion time (Unix seconds)
> failureReasonstringFailure reason; only present when orderStatus = 3
> dercRatiostringReduction ratio; only applicable for redeem orders

Request Example

POST /v5/alpha/lp/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

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

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"total": 1,
"pageIndex": 1,
"orders": [
{
"orderType": 1,
"orderNo": "LP_ORD_20240101_001",
"orderStatus": 2,
"poolAddress": "0x1234567890abcdef",
"poolName": "ETH-USDC Pool",
"positionId": 12345,
"tokenCode": "CEX_1",
"tokenSymbol": "USDT",
"tokenIconUrlDay": "",
"tokenIconUrlNight": "",
"amount": "1000",
"chainCode": "",
"chainIconUrl": "",
"gasTokenSymbol": "",
"gasOnchain": "",
"gasUsd": null,
"platformFee": "",
"platformFeeUsd": null,
"createTime": 1704067200,
"executionTime": 1704067230,
"failureReason": "",
"dercRatio": ""
}
]
},
"retExtInfo": {},
"time": 1704067300000
}