Skip to main content

Get Staked Position

info

API key needs "Earn" permission

note

Fully redeemed position is also returned in the response

HTTP Request

GET /v5/earn/position

Request Parameters

ParameterRequiredTypeComments
categorytruestringFlexibleSaving
productIdfalsestringProduct ID
coinfalsestringCoin name

Response Parameters

ParameterTypeComments
listarrayObject
> coinstringCoin name
> productIdstringProduct ID
> amountstringTotal staked amount
> totalPnlstringTotal yields
> 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.

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": "USDT",
"productId": "428",
"amount": "3000",
"totalPnl": "125.6208",
"claimableYield": "0"
}
]
},
"retExtInfo": {},
"time": 1739944577575
}