Get Insurance
Query for Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.
HTTP Request
GET /v5/market/insurance
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | false | string | coin. Default: return all insurance coins |
Response Parameters
Parameter | Type | Comments |
---|---|---|
updatedTime | string | Data updated time (ms) |
list | array | Object |
> coin | string | Coin |
> balance | string | Balance |
> value | string | USD value |
Request Example
- HTTP
- Python
- 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 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": "1672012800000",
"list": [
{
"coin": "ETH",
"balance": "0.00187332",
"value": "0"
}
]
},
"retExtInfo": {},
"time": 1672053931991
}