mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
1.8 KiB
1.8 KiB
Health Groups
{% hint style="info" %} Note: a health group is a perp and spot product whose health is calculated together (e.g. BTC and BTC-PERP). {% endhint %}
Rate limits
- 1200 requests/min or 20 requests/sec per IP address. (weight = 2)
{% hint style="info" %} See more details in API Rate limits {% endhint %}
Request
{% tabs %} {% tab title="Websocket" %} Connect
WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]
Message
{
"type": "health_groups"
}
{% endtab %}
{% tab title="REST (GET)" %} GET [GATEWAY_REST_ENDPOINT]/query?type=health_groups
{% endtab %}
{% tab title="REST (POST)" %} POST [GATEWAY_REST_ENDPOINT]/query
Message
{
"type": "health_groups"
}
{% endtab %} {% endtabs %}
Response
{
"status": "success",
"data": {
"health_groups": [
[
1,
2
]
]
},
"request_type": "query_health_groups"
}
{% hint style="info" %}
health_groups: list of all available health groups. Note:health_groups[i]is the spot / perp product pair of health groupiwherehealth_groups[i][0]is the spotproduct_idandhealth_groups[i][1]is the perpproduct_id. Additionally, it is possible for a health group to only have either a spot or perp product, in which case, the product that doesn’t exist is set to0. {% endhint %}