Events API
Fetch and query prediction market events
Events API
The Events API provides methods to fetch and query events on DFlow. Events are the top-level containers for prediction markets.
Access
Methods
get_events
Fetch multiple events with optional filtering.
Parameters
| Parameter | Type | Description |
|---|---|---|
status | str | None | Filter by status: "active", "closed", "determined", "finalized" |
series_tickers | str | None | Filter by series tickers (comma-separated, max 25) |
with_nested_markets | bool | None | Include nested market data |
is_initialized | bool | None | Filter events that are initialized |
sort | str | None | Sort field: "volume", "volume_24h", "liquidity", "open_interest", "start_date" |
limit | int | None | Maximum number of events to return |
cursor | int | None | Pagination cursor (number of events to skip) |
Example
get_event
Fetch a single event by its ID.
Example
get_event_forecast_history
Get forecast percentile history for an event.
Example
get_event_candlesticks
Get OHLCV candlestick data for an event.