fetchMarketsPaginated
Fetch prediction markets from supported exchanges using cursor-based pagination. First request caches all markets; subsequent calls use the cached snapshot until expiration.
Instructions
Fetch markets with cursor-based pagination backed by a stable in-memory snapshot. On the first call (or when no cursor is supplied), fetches all markets once and caches them. Subsequent calls with a cursor returned from a previous call slice 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'.
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. |