Base path:
https://api.polystats.ai/api/* · X-API-KEY auth on every endpoint. Browse the full schema and try-it console under the Prediction · groups (Markets, Events, Traders, Analytics, Search) in the API reference.What you get
- Markets & events — list, filter, and sort live and resolved markets; events group related markets (e.g. every candidate in an election).
- Prices & history — current order-book prices and Yes-price time series.
- Traders — a leaderboard plus deep per-trader analytics: positions, trade history, daily PnL history, category stats, and a composite score.
- Platform analytics — overview stats and composite market signals (whale + smart-money) with a buy/sell recommendation.
- Search — search across events, markets, and traders.
Conventions
Every endpoint shares one response envelope, so you can write one client and reuse it across all the operations.- Success:
{ "success": true, ...payload, "timestamp": "<ISO 8601>" }. List endpoints add ametaobject for pagination (total,limit,offset,hasMore). - Error:
{ "success": false, "error": { "message": "...", "status": <code> } }. - Prices are probabilities in
0..1. Money is USD. Dates are ISO 8601 strings. - Identifiers: use the domain keys —
slug(markets/events),conditionId(markets),walletAddress(traders),tagId(tags). Mongo internals (_id,__v) are stripped.
Authentication
Pass your CoinStats key in theX-API-KEY header on every request. Generate keys at openapi.coinstats.app. See Authentication for OAuth Bearer usage.
Credits
Pricing is low and scales with how heavy each call is — every endpoint costs 1–3 credits:Explore the endpoints
Markets & Events
List, filter, and price markets and events.
Traders & Analytics
Leaderboards, per-trader PnL, and platform signals.
API Reference
Full request/response schema and try-it console for every endpoint.
Search
Search events, markets, and traders.