fetchEventsPaginated
Retrieve paginated event listings from prediction markets using a cursor for efficient multi-page access. Returns compact summaries by default.
Instructions
Paginated variant of {@link fetchEvents}. On the first call (no cursor), all events are fetched from the exchange and cached in an in-memory snapshot. A cursor is returned along with the first page. Subsequent calls with that cursor serve additional pages directly from the cached snapshot -- no additional API calls are made. The snapshot is invalidated after snapshotTTL ms (configured via ExchangeOptions in the constructor). A request using a cursor from an expired snapshot throws 'Cursor has expired'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"exchange": "<exchange>"
},
"name": "fetchEventsPaginated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | Yes | The prediction market exchange to target. | |
| limit | No | ||
| cursor | No | ||
| filter | No | ||
| verbose | No | Return full uncompacted response. Default false returns a compact, agent-friendly summary. |