Stats
Get platform-wide statistics and market analytics
Stats
GET /api/v1/stats
Retrieve aggregated statistics across all markets and exchanges.
This endpoint costs 1 credit per request.
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer or_live_xxxxx | Yes |
Example Request
curl "https://api.tessradar.com/api/v1/stats" \
-H "Authorization: Bearer or_live_xxxxx"Example Response
{
"success": true,
"data": {
"totalMarkets": 24664,
"byStatus": {
"OPEN": 24664
},
"byExchange": {
"POLYMARKET": 21464,
"KALSHI": 3200
},
"topCategories": [
{ "category": "Sports", "count": 3909 },
{ "category": "Politics", "count": 1427 },
{ "category": "Crypto", "count": 1193 }
],
"matchedMarkets": 0,
"totalSnapshots": 24782,
"lastUpdated": "2024-01-07T23:51:22.051Z"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
totalMarkets | number | Total markets across all exchanges |
byStatus | object | Market counts by status (OPEN, RESOLVED, CLOSED) |
byExchange | object | Market counts by exchange |
topCategories | array | Top categories with market counts |
matchedMarkets | number | Markets matched across exchanges |
totalSnapshots | number | Total price snapshots stored |
lastUpdated | string | Last data update timestamp (ISO 8601) |