Skip to main content

Get LTV

Get your loan-to-value (LTV) ratio.

important
  • In cases where an institutional user makes frequent transfers, LTV calculations may become inaccurate, and this endpoint will return retCode = 100016, retMsg = "Transfers within your risk unit are too frequent. Please reduce the transfer frequency and try again."
  • If you encounter this error, it is recommended to reduce the transfer frequency first and retry
  • During periods of extreme market volatility, this interface may experience increased latency or temporary delays in data delivery
  • When a user is in a state such as liquidation, transfer, or manual repayment, LTV is not calculated. We have added a new liqStatus to represent these states. When liqStatus != 0, ltvInfo returns empty strings for ltv, unpaidAmount and balance, and unpaidInfo and balanceInfo return empty arrays.

HTTP Request

GET /v5/ins-loan/ltv-convert

Request Parameters

None

Response Parameters

ParameterTypeComments
ltvInfoarrayObject
> ltvstringRisk rate
  • ltv is calculated in real time
  • If you have an INS loan, it is highly recommended to query this data every second. Liquidation occurs when it reachs 0.9 (90%)
. When liqStatus != 0, empty string is returned.
> rststringRemaining liquidation time (UTC time in seconds). When it is not triggered, it is displayed as an empty string. When liqStatus != 0, empty string is returned.
> parentUidstringThe designated Risk Unit ID that was used to bind with the INS loan
> subAccountUidsarrayBound user ID
> unpaidAmountstringTotal debt(USDT). When liqStatus != 0, empty string is returned.
> unpaidInfoarrayDebt details. When liqStatus != 0, empty array is returned.
>> tokenstringcoin
>> unpaidQtystringUnpaid principle
>> unpaidIntereststringUseless field, please ignore this for now
> balancestringTotal asset (margin coins converted to USDT). Please read here to understand the calculation. When liqStatus != 0, empty string is returned.
> balanceInfoarrayAsset details. When liqStatus != 0, empty array is returned.
>> tokenstringMargin coin
>> pricestringMargin coin price
>> qtystringMargin coin quantity
>> convertedAmountstringMargin conversion amount
> liqStatusintegerLiquidation status.
  • 0: Normal
  • 1: Under liquidation
  • 2: Manual repayment in progress
  • 3: Transfer in progress
liqStatusintegerLiquidation status.
  • 0: Normal
  • 1: Under liquidation
  • 2: Manual repayment in progress
  • 3: Transfer in progress

Request Example

GET /v5/ins-loan/ltv-convert HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1686638165351
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"ltvInfo": [
{
"ltv": "0.75",
"rst": "",
"parentUid": "xxxxx",
"subAccountUids": [
"60568258"
],
"unpaidAmount": "30",
"unpaidInfo": [
{
"token": "USDT",
"unpaidQty": "30",
"unpaidInterest": "0"
}
],
"balance": "40",
"balanceInfo": [
{
"token": "USDT",
"price": "1",
"qty": "40",
"convertedAmount": "40"
}
]
}
]
},
"retExtInfo": {},
"time": 1686638166323
}

When `liqStatus` != 0:
{
"retCode": 0,
"retMsg": "",
"result": {
"ltvInfo": [
{
"ltv": "",
"parentUid": "100331354",
"subAccountUids": [
"100334094",
"100334098"
],
"unpaidAmount": "",
"unpaidInfo": [],
"balance": "",
"balanceInfo": [],
"rst": "",
"liqStatus": 3
}
],
"liqStatus": 3
},
"retExtInfo": {},
"time": 1766462020703
}