Skip to main content

Get LTV

HTTP Request

GET /v5/ins-loan/ltv

Request Parameters

None

Response Parameters

ParameterTypeComments
ltvInfoarrayObject
> ltvstringRisk rate
> parentUidstringUser id
> subAccountUidsarrayBound user id
> unpaidAmountstringTotal debt(USDT)
> unpaidInfoarrayDebt details
>> tokenstringcoin
>> unpaidQtystringUnpaid principle
>> unpaidIntereststringUnpaid interest
> balancestringTotal asset. (margin coins converted to USDT). Please read here to understand the calculation
> spotBalanceInfoarraySpot asset details
>> tokenstringSpot margin coin
>> pricestringSpot margin coin price
>> qtystringSpot margin coin quantity
> contractInfoarrayContract asset details
>> tokenstringContract margin coin
>> pricestringContract margin coin index price
>> qtystringContract margin coin quantity (available balance of Contract account, and it is not involved with LTV calculation)

Request Example

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

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"ltvInfo": [
{
"ltv": "0.1147",
"parentUid": "999805",
"subAccountUids": [
"999805"
],
"unpaidAmount": "",
"unpaidInfo": [
{
"token": "USDT",
"unpaidQty": "6351.49614274",
"unpaidInterest": "264.0137162"
}
],
"balance": "57626.875915433333333332400000000",
"spotBalanceInfo": [
{
"token": "BTC",
"price": "16375.621333333333333332",
"qty": "0.2"
},
....
{
"token": "XRP",
"price": "0.409517",
"qty": "10000"
}
],
"contractInfo": [
{
"token": "USDT",
"price": "1",
"qty": "0"
}
]
}
]
},
"retExtInfo": {},
"time": 1669367335608
}