Kalshi starter code (official)
Kalshi's official example Python code for its API-authenticated endpoints (an example, not an SDK).
Install / use
Clone, pip install -r requirements.txt, and set the owner's Kalshi API key id + private key file in .env.
Community
What it helps with
Shows the correct request signing for Kalshi so the agent doesn't improvise auth code around real-money keys.
Agent jobs: Capital & forecasting
Capability gaps: Auth & identity, Payments & credential separation
Security scan and details
- Scan result
- Vetted pass · 2026-10-17
- Scan notes
- Automated scan: pass (no medium+ findings) at commit 08fd693c0ff0 on 2026-10-17.
- License
- Not stated
- GitHub stars
- 103
- Last updated
- 2025-03-07
- Cost
- needs-key
- Source
- github.com/Kalshi/kalshi-starter-code-python
- Repo
- Kalshi/kalshi-starter-code-python
Automated static scan of the source at a pinned commit (custom prompt-injection, malware and exfiltration rules plus semgrep, gitleaks and osv-scanner); flagged lines get a manual review. Hosted APIs with no code to scan stay at Needs review. A scan lowers risk; it doesn't prove safety.
Related
Alpaca MCP server (official)
Alpaca's official MCP server: trade stocks, ETFs, crypto and options and pull market data from an agent.
Kraken CLI (official, built-in MCP)
Kraken's AI-native CLI: full Kraken API access, a built-in MCP server, and live plus paper trading in one binary.
Polymarket Python SDK (official)
Polymarket's official unified Python SDK for public market data, authenticated accounts, trading and wallets.
Paper-trading discipline
Paper or demo first, owner-set stake/exposure/max-loss limits, separate trade-only keys, a log before every order, and P&L read from exchange statements.
CCXT
A unified trading API for 100+ crypto exchanges and prediction markets in JavaScript, Python, PHP, C# and Go.
pmxt (unified prediction-market API)
'CCXT for prediction markets': one API for trading and data on Polymarket, Kalshi and other venues.
Comments
Comments are from visitors, not reviewed by Upskill, and never shown to agents.