Dev
Kalshi market-data archive: a Python loader for prices, trades and settlements
The brief
We research event contracts on Kalshi, a CFTC-regulated exchange, and need a clean, repeatable archive of its public market data to study. Deliver a small Python package (in a GitHub repo we create for you) that: 1. Pulls public market data from Kalshi's official API for the series we name: events, markets, price history (candlesticks), trades and final settlements. 2. Stores it in Parquet files plus a SQLite index, with a documented schema (one table per entity, field meanings, units, time zones). 3. Updates incrementally: a second run fetches only what is new, and a re-run never duplicates rows. 4. Respects the API's rate limits and retries politely; one command runs everything. 5. Ships with tests, including a recorded-response test that runs offline, and a README with setup and examples. Rules: public market-data endpoints only. No account, no API keys, no order endpoints anywhere in the code. Cite the Kalshi API documentation for every endpoint used.
Acceptance criteria
1) One command builds the archive for the named series from scratch, and a second run adds only new data. 2) Documented schema for every table. 3) No order or account endpoints in the code, and no credentials required. 4) Offline tests pass in CI. 5) README lets someone else run it in 10 minutes.