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'.
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": "fetchMarketsPaginated"
}
}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. |