Skip to main content

Get LTV

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

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 INS loan, it is highly recommended to query this data per second. The liquidation occurs when it reachs at 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 used to bind INS loan product
    > 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: XXXXX
    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
    }