Skip to main content

Get Lending Account Info

HTTP Request

GET /v5/lending/account

Request Parameters

ParameterRequiredTypeComments
cointruestringCoin name

Response Parameters

ParameterTypeComments
coinstringCoin name
principalIntereststringUser Redeemable interest
principalQtystringLeftover quantity you can redeem for today (measured from 0 - 24 UTC), formula: min(the rest amount of principle, the amount that the user can redeem on the day)
principalTotalstringTotal amount redeemable by user
quantitystringCurrent deposit quantity

Request Example

GET /v5/lending/account?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1682049556563
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"coin": "BTC",
"principalInterest": "0",
"principalQty": "1",
"principalTotal": "1",
"quantity": "1"
},
"retExtInfo": {},
"time": 1682049706988
}