-
-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
invalidThis doesn't seem rightThis doesn't seem rightwontfixThis will not be worked onThis will not be worked on
Description
Currently, the Kalshi implementation for fetchMarkets (sorting) and searchMarkets (filtering) is entirely client-side. Because the Kalshi V2 API relies on cursor-based pagination and lacks global sorting/search parameters for the /events endpoint, the library is forced to:
- Sequentially fetch multiple pages of data.
- Flatten the nested event/market structure.
- Perform
.sort()or.filter()in JavaScript.
Impact:
- High latency for search queries compared to Polymarket (which supports server-side sorting via Gamma).
- High number of API requests to fetch a comprehensive list of markets.
Goal:
- Track Kalshi API documentation for any updates to search/sort capabilities.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem rightwontfixThis will not be worked onThis will not be worked on