{"repo":"arshka/pykalshi","free":true,"listed":false,"github":"https://github.com/arshka/pykalshi","clone":"git clone https://github.com/arshka/pykalshi.git","description":"Unofficial Python client for Kalshi's prediction markets API","language":"Python","stars":120,"topics":["algorithmic-trading","api-client","finance","kalshi","kalshi-api","kalshi-trading-bot","market-data","prediction-markets","python","real-time"],"license":"MIT","category":"trading","readme_excerpt":"PyKalshi The Python client for Kalshi prediction markets. WebSocket streaming, automatic retries, pandas integration, and clean interfaces for building trading systems. Features - WebSocket streaming - Real-time orderbook, ticker, and trade data with typed messages - Automatic retries - Exponential backoff on rate limits and transient errors - Domain objects - Market , Order , Event with methods like order.cancel() , market.get orderbook() - pandas integration - .to dataframe() on any list of results - Jupyter support - Rich HTML display for markets, orders, and positions - Local orderbook - OrderbookManager maintains state from WebSocket deltas - Type safety - Pydantic models and typed exceptions throughout Installation Get your API credentials from kalshi.com and create a .env file: Quick Start Interactive demo: examples/demo.ipynb or Browse Markets Trading Real-time Streaming Local Orderbook pandas Integration Error Handling Examples See the examples/ directory: - demo.ipynb - Interactive notebook with rich display examples - basic usage.py - Browse markets and check portfolio - place order.py - Place and manage orders - stream orderbook.py - WebSocket streaming patterns - momentum bot.py - Simple trading bot example Web Dashboard A real-time web dashboard is included for browsing markets, viewing orderbooks, and monitoring your portfolio. It serves as both a development tool and a reference implementation. See web/ for details. Why pykalshi? pykalshi kalshi-python (offici","default_branch":null,"files":null,"tree":[],"storefront":"/r/arshka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/arshka/pykalshi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}