REST APIMarkets

Get market statistics

GET
/markets/{id}/stats

Get statistics about a specific market including volume and liquidity.

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Path Parameters

id*integer

The market's ID.

Formatint64

Response Body

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

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

success*boolean
data*

Market statistics data

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