Skip to content

Add historical data endpoints#16

Merged
arshka merged 1 commit into
mainfrom
add-historical-endpoints
Apr 9, 2026
Merged

Add historical data endpoints#16
arshka merged 1 commit into
mainfrom
add-historical-endpoints

Conversation

@arshka
Copy link
Copy Markdown
Owner

@arshka arshka commented Apr 9, 2026

Summary

  • Add support for Kalshi's /historical/* API endpoints (cutoff, markets, candlesticks, fills, orders, trades)
  • Sync and async implementations with cursor-based pagination and fetch_all support
  • New models: HistoricalCutoffResponse, HistoricalCandlestick, HistoricalBidAsk, HistoricalPrice
  • Accessible via client.history (cached property on both KalshiClient and AsyncKalshiClient)
  • Also adds OrderType.MARKET enum value
  • Bumps version to 1.0.3

Test plan

  • 18 unit tests covering all endpoints, filters, pagination, and error handling
  • 9 integration tests passing against live API
  • Full test suite (296 tests) passes with no regressions

Support for Kalshi's /historical/* API:
- cutoff timestamps, markets, candlesticks, fills, orders, trades
- Sync and async implementations with pagination
- Models for historical candlestick OHLC data
- Accessible via client.history
- Bump version to 1.0.3
@arshka arshka merged commit 2baf694 into main Apr 9, 2026
5 of 6 checks passed
@arshka arshka deleted the add-historical-endpoints branch April 9, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant