Skip to main content

Get Staked Position

info

API key needs "Earn" permission

note

For Flexible Saving, fully redeemed position is also returned in the response For Onchain, only active position will be returned in the response

HTTP Request

GET /v5/earn/position

Request Parameters

ParameterRequiredTypeComments
categorytruestringFlexibleSaving,OnChain
productIdfalsestringProduct ID
coinfalsestringCoin name

Response Parameters

ParameterTypeComments
listarrayObject
> coinstringCoin name
> productIdstringProduct ID
> amountstringTotal staked amount
> totalPnlstringReturn the profit of the current position. Only has value in Onchain non-LST mode
> claimableYieldstringYield accrues on an hourly basis and is distributed at 00:30 UTC daily. If you unstake your assets before yield distribution, any undistributed yield will be credited to your account along with your principal. Onchain products do not return values
> idstringPosition Id. Only for Onchain
> statusstringProcessing,Active. Only for Onchain
> orderIdstringOrder Id. Only for Onchain
> estimateRedeemTimestringEstimate redeem time, in milliseconds. Only for Onchain
> estimateStakeTimestringEstimate stake time, in milliseconds. Only for Onchain
> estimateInterestCalculationTimestringEstimated Interest accrual time, in milliseconds. Only for Onchain
> settlementTimestringSettlement time, in milliseconds. Only has value for Onchain Fixed product

Request Example

GET /v5/earn/position?category=FlexibleSaving&coin=USDT HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1739944576277
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"list": [
{
"coin": "BTC",
"productId": "8",
"amount": "0.1",
"totalPnl": "0.000027397260273973",
"claimableYield": "0",
"id": "326",
"status": "Active",
"orderId": "1a5a8945-e042-4dd5-a93f-c0f0577377ad",
"estimateRedeemTime": "",
"estimateStakeTime": "",
"estimateInterestCalculationTime": "1744243200000",
"settlementTime": "1744675200000"
}
]
},
"retExtInfo": {},
"time": 1739944577575
}