Health Groups

Gets all available health groups.

Note: a health group is a perp and spot product whose health is calculated together (e.g. BTC and BTC-PERP).

Rate limits

  • 1200 requests/min or 30 requests/sec per IP address. (weight = 2)

See more details in API Rate limits

Request

Connect

WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]

Message

{
  "type": "health_groups"
}

Response

{
  "status": "success",
  "data": {
    "health_groups": [[1, 2], [3, 4]]
  },
  "request_type": "query_health_groups",
}
  • health_groups: list of all available health groups. Note: health_groups[i] is the spot / perp product pair of health group i where health_groups[i][0] is the spot product_id and health_groups[i][1] is the perp product_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 to 0.

Last updated