Events API
Discover and query prediction market events
Events API
The Events API allows you to discover, search, and retrieve prediction market events. Events are containers for related markets.
Access
Methods
getEvent
Get a single event by its ID.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
eventId | string | Yes | The unique identifier of the event (event ticker) |
withNestedMarkets | boolean | No | If true, includes all markets within the event |
Returns: Event
getEvents
List events with optional filters.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
status | MarketStatus | No | Filter by status: 'active', 'closed', 'determined', 'finalized' |
seriesTickers | string | No | Filter by series tickers (comma-separated, max 25) |
isInitialized | boolean | No | Filter events that are initialized (have a market ledger) |
sort | SortField | No | Sort field: 'volume', 'volume_24h', 'liquidity', 'open_interest', 'start_date' |
withNestedMarkets | boolean | No | Include nested markets in response |
limit | number | No | Maximum number of events to return |
cursor | number | No | Pagination cursor (number of events to skip) |
Returns: EventsResponse
getEventForecastHistory
Get forecast percentile history for an event.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
seriesTicker | string | Yes | The series ticker (e.g., 'KXBTC') |
eventId | string | Yes | The event identifier within the series |
params.percentiles | string | Yes | Comma-separated percentile values (0-10000, max 10) |
params.startTs | number | Yes | Start timestamp (Unix seconds) |
params.endTs | number | Yes | End timestamp (Unix seconds) |
params.periodInterval | number | Yes | Period interval in minutes (0, 1, 60, or 1440) |
getEventForecastByMint
Get forecast history by mint address.
getEventCandlesticks
Get OHLCV candlestick data for an event.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | The event ticker |
params.startTs | number | Yes | Start timestamp (Unix seconds) |
params.endTs | number | Yes | End timestamp (Unix seconds) |
params.periodInterval | number | Yes | Candle period in minutes (1, 60, or 1440) |
Event Object
Examples
List All Active Events
Get Events with Sorting and Filtering
Paginate Through Events
Get Event with Markets
Events contain high-level information while Markets contain specific trading details like prices and mints.