/api/v1/categoriesReturns every category in the system. Cached aggressively — categories change rarely.
A few conventions apply to every endpoint. Read these once and the rest of the reference will feel familiar.
List endpoints return a response envelope with a data array and a meta object. Default limit is 20, maximum is 50 (100 for trades). Requests exceeding the max are capped server-side.
{ data: [...], meta: { total, page, limit, hasMore } }There are no unbounded list endpoints. Every market and event listing is scoped by a category slug so responses stay small and cacheable.
All public endpoints are rate-limited per IP. Responses include cache headers (s-maxage from 5 to 60 seconds depending on the resource) so edge caches absorb most traffic.
Errors use standard HTTP status codes with a JSON body describing the problem. Unknown or soft-deleted resources return 404.
{ "error": "Market not found" }Top-level grouping for events and markets. Use category slugs as the entry point to any list query.
/api/v1/categoriesReturns every category in the system. Cached aggressively — categories change rarely.
/api/v1/categories/:slug/eventsReturns events inside a category, newest first. Only events with at least one tradable market are included by default.
/api/v1/categories/:slug/marketsReturns markets inside a category. By default only OPEN and UPCOMING markets are returned; pass status=closed to fetch resolved markets.
An event bundles several related markets (for example, an election or a tournament).
/api/v1/events/:idReturns a single event with its nested markets. Useful when building an event detail view.
The core trading primitive. Every market resolves to YES, NO, or VOID.
/api/v1/markets/:idReturns a single market with the latest best bid / best ask and last trade price.
/api/v1/markets/:id/orderbookReturns the current aggregated order book. Heavily cached — poll on an interval rather than in a tight loop.
/api/v1/markets/:id/tradesReturns trade history for a market, newest first. Paginated.
A Bearer-token API for reading your own account and placing orders is planned for a future release.