Kalshi API Keys
Connect your Kalshi account to trade CFTC-regulated event contracts. Kalshi uses RSA key-pair authentication — you'll generate a private key and register the public key on kalshi.com.
US-Only Exchange
Kalshi is a CFTC-regulated Designated Contract Market available to US residents only. No VPN or special routing is needed — all Kalshi bots run on the default engine instance.
Markets cover politics, economics, weather, finance, tech & AI, and culture.
Step 1: Generate RSA Key Pair
Kalshi uses RSA-PSS signing instead of simple API key + secret. You generate a private key locally and upload the public key to Kalshi.
- 1 Open a terminal and generate an RSA-4096 key pair:
openssl genrsa -out kalshi_private_key.pem 4096 openssl rsa -in kalshi_private_key.pem -pubout -out kalshi_public_key.pem
- 2
Keep
kalshi_private_key.pemprivate — you'll paste its contents into TraderBotz
Step 2: Register API Key on Kalshi
- 1 Log in to kalshi.com and go to Settings → API Keys
- 2 Click Create API Key
- 3
Upload your
kalshi_public_key.pemfile - 4 Copy the API Key ID that Kalshi generates
Step 3: Add to TraderBotz
- 1 Go to Accounts in the sidebar
- 2 Click Add Account and select Kalshi
- 3 Enter a name, paste the API Key ID from Kalshi
- 4
Paste the entire contents of
kalshi_private_key.peminto the Secret field - 5 Click Test Connection and save
Security: Your RSA private key is stored encrypted at rest in TraderBotz. It is only used server-side to sign API requests to Kalshi — it is never exposed to the frontend.
Demo environment: Kalshi provides a demo API at
demo-api.kalshi.co for testing with paper money.
We currently default to the production API — contact us if you'd like to use the demo env.