Get LTV
HTTP Request
GET /v5/ins-loan/ltv
Request Parameters
None
Response Parameters
Parameter | Type | Comments |
---|---|---|
ltvInfo | array | Object |
> ltv | string | Risk rate |
> parentUid | string | User id |
> subAccountUids | array | Bound user id |
> unpaidAmount | string | Total debt(USDT) |
> unpaidInfo | array | Debt details |
>> token | string | coin |
>> unpaidQty | string | Unpaid principle |
>> unpaidInterest | string | Unpaid interest |
> balance | string | Total asset. (margin coins converted to USDT). Please read here to understand the calculation |
> spotBalanceInfo | array | Spot asset details |
>> token | string | Spot margin coin |
>> price | string | Spot margin coin price |
>> qty | string | Spot margin coin quantity |
> contractInfo | array | Contract asset details |
>> token | string | Contract margin coin |
>> price | string | Contract margin coin index price |
>> qty | string | Contract 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
}