Skip to main content

Get Stake/Redeem Order History

info

API key needs "Earn" permission

HTTP Request

GET /v5/earn/order

Request Parameters

ParameterRequiredTypeComments
categorytruestringFlexibleSaving,OnChain
Remarks: currently, only flexible savings and OnChain is supported
orderIdfalsestringOrder ID.
  • For category = OnChain, either orderId or orderLinkId is required
  • if both are passed, make sure they're matched, otherwise returning empty result
orderLinkIdfalsestringOrder link ID
Remarks: Always return the latest one if order link id is ever reused when querying by orderLinkId only
productIdfalsestringProduct ID
startTimefalseintegerThe start timestamp (ms).
  • 1. If both are not provided, the default is to return data from the last 7 days.
  • 2. If both are provided, the difference between the endTime and startTime must be less than or equal to 7 days.
endTimefalseintegerThe endTime timestamp (ms)
limitfalseintegerLimit for data size per page. Range: [1, 100]. Default: 50
cursorfalsestringCursor, use the returned nextPageCursor to query data for the next page.

Response Parameters

ParameterTypeComments
nextPageCursorstringRefer to the cursor request parameter
listarrayObject
> coinstringCoin name
> orderValuestringamount
> orderTypestringRedeem, Stake
> orderIdstringOrder ID
> orderLinkIdstringOrder link ID
> statusstringOrder status Success, Fail, Pending
> createdAtstringOrder created time, in milliseconds
> productIdstringProduct ID
> updatedAtstringOrder updated time, in milliseconds
> swapOrderValuestringSwap order value. Only for LST Onchain.
> estimateRedeemTimestringEstimate redeem time, in milliseconds. Only for Onchain
> estimateStakeTimestringEstimate stake time, in milliseconds. Only for Onchain

Request Example

GET /v5/earn/order?orderId=9640dc23-df1a-448a-ad24-e1a48028a51f&category=OnChain HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1739937044221
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"list": [
{
"coin": "USDT",
"orderValue": "1000",
"orderType": "Stake",
"orderId": "ad98d473-4e17-46da-ab30-5563f62a97fa",
"orderLinkId": "",
"status": "Success",
"createdAt": "1759983689000",
"productId": "428",
"updatedAt": "1759983689000",
"swapOrderValue": "",
"estimateRedeemTime": "",
"estimateStakeTime": ""
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1759983699446
}