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

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%)
  • > rststringRemaining liquidation time (UTC time in seconds). When it is not triggered, it is displayed as an empty string.
    > parentUidstringThe designated Risk Unit ID that was used to bind with the INS loan
    > subAccountUidsarrayBound user ID
    > unpaidAmountstringTotal debt(USDT)
    > unpaidInfoarrayDebt details
    >> tokenstringcoin
    >> unpaidQtystringUnpaid principle
    >> unpaidIntereststringUseless field, please ignore this for now
    > balancestringTotal asset (margin coins converted to USDT). Please read here to understand the calculation
    > balanceInfoarrayAsset details
    >> tokenstringMargin coin
    >> pricestringMargin coin price
    >> qtystringMargin coin quantity
    >> convertedAmountstringMargin conversion amount

    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
    }