Get Insurance
Query for Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.
info
Since the insurance pool data is updated every 24 hours, it is possible that you get ADL trade but the insruance pool still has sufficient funds.
HTTP Request
GET /v5/market/insurance
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | false | string | coin, uppercase only. Default: return all insurance coins |
Response Parameters
Parameter | Type | Comments |
---|---|---|
updatedTime | string | Data updated time (ms) |
list | array | Object |
> coin | string | Coin |
> symbols | string | "BTCUSDT,ETHUSDT,SOLUSDT" "" |
> balance | string | Balance |
> value | string | USD value |
Request Example
- HTTP
- Python
- GO
- Java
- Node.js
GET /v5/market/insurance?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
from pybit.unified_trading import HTTP
session = HTTP(testnet=True)
print(session.get_insurance(
coin="ETH",
))
import (
"context"
"fmt"
bybit "github.com/wuhewuhe/bybit.go.api"
)
client := bybit.NewBybitHttpClient("", "", bybit.WithBaseURL(bybit.TESTNET))
params := map[string]interface{}{"category": "linear", "symbol": "BTCUSDT"}
client.NewUtaBybitServiceWithParams(params).GetMarketInsurance(context.Background())
import com.bybit.api.client.domain.market.request.MarketDataRequest;
import com.bybit.api.client.service.BybitApiClientFactory;
var client = BybitApiClientFactory.newInstance().newAsyncMarketDataRestClient();
var insuranceRequest = MarketDataRequest.builder().coin("BTC").build();
var insuranceData = client.getInsurance(insuranceRequest);
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getInsurance({
coin: 'ETH',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"updatedTime": "1714003200000",
"list": [
{
"coin": "USDT",
"symbols": "MERLUSDT,10000000AIDOGEUSDT,ZEUSUSDT",
"balance": "902178.57602476",
"value": "901898.0963091522"
},
{
"coin": "USDT",
"symbols": "SOLUSDT,OMNIUSDT,ALGOUSDT",
"balance": "14454.51626125",
"value": "14449.515598975464"
},
{
"coin": "USDT",
"symbols": "XLMUSDT,WUSDT",
"balance": "23.45018235",
"value": "22.992864174376344"
},
{
"coin": "USDT",
"symbols": "AGIUSDT,WIFUSDT",
"balance": "10002",
"value": "9998.896846613574"
},
{
"coin": "USDT",
"symbols": "",
"balance": "10148045273.618073",
"value": "10144896808.587431"
}
]
},
"retExtInfo": {},
"time": 1714028451228
}