REST APICategories

Get category statistics

GET
/categories/{id}/stats

Get statistics about a specific category including volume and liquidity.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

Path Parameters

id*integer

The category's ID.

Formatint64

Response Body

application/json; charset=utf-8
  1. response

Response for GET /v1/categories/:id/stats

success*boolean
data*

Category statistics data

Example Request
curl -X GET 'https://api.predict.fun/v1/categories/0/stats'
Example Response
{  "success": true,  "data": {    "totalLiquidityUsd": 0.1,    "volumeTotalUsd": 0.1,    "volume24hUsd": 0.1,    "holdersCount": 0  }}