Strategy · lesson 10 of 11

Kalshi bots: the API, rate limits, demo account and the rules

Kalshi lets members trade with their own code through REST, WebSocket and FIX APIs, with a demo exchange to test on. How to get API keys, how fast each tier may trade, what the developer agreement and rulebook forbid, the programs that pay liquidity providers, and the scams that pose as Kalshi bots.

What Kalshi provides

  • REST and WebSocket: production REST at external-api.kalshi.com/trade-api/v2. “Despite the elections subdomain, the production Trade API provides access to all Kalshi markets” on the older api.elections.kalshi.com host (Kalshi, API environments).
  • FIX 5.0 SP2 for order entry, market data and drop copy, with “Only one FIX connection … allowed per API key” (Kalshi, FIX).
  • SDKs: kalshi_python_sync, kalshi_python_async and kalshi-typescript. “The old kalshi-python package is deprecated”, and “SDKs are updated periodically and may lag the API”, so Kalshi suggests generating a client from its OpenAPI spec (Kalshi, SDKs). Its GitHub starter code is “not an SDK” (starter code).

Endpoints and data are covered in the Kalshi API.

API keys and the demo exchange

Create a key under Profile Settings → API Keys → Create New API Key. The dialog generates an Ed25519 key pair by default since 1 October 2026; RSA (2048-bit) is accepted too. If you generate your own pair, you paste only the public key: “The private key never leaves your system.” Every request is signed with headers carrying the key ID, a timestamp and a signature (Kalshi, API keys).

“Kalshi offers a demo environment with mock funds” at demo.kalshi.co, with its own API hosts; “credentials are not shared between this environment and production”, and demo prices “may not be reflective of those in real markets” (Kalshi, demo). Kalshi warns that “the .com version is not a valid Kalshi domain” (demo account). More: Kalshi demo.

Rate limits

Limits are buckets of tokens per second; most requests cost 10 tokens, and “REST and FIX requests drain the same buckets” (Kalshi, rate limits):

Tier

Read tokens/s

Write tokens/s

How you get it

Basic

200

100

Complete sign-up

Advanced

300

300

Upgrade through the API, once one of your last 100 orders came from the API

Expert

600

600

Trading volume, or assigned by Kalshi

Premier

1,200

1,200

Trading volume, or assigned by Kalshi

Paragon

2,400

2,400

Trading volume, or assigned by Kalshi

Prime

4,800

4,800

Trading volume, or assigned by Kalshi

Prestige

12,000

9,600

Trading volume, or assigned by Kalshi

Volume tiers depend on your share of exchange volume over 30 days and are granted for 30 days. Going over a limit returns an error: “There is no penalty or cooldown.” Orders can carry self-trade prevention that cancels either the incoming or the resting order when you would trade with yourself.

What the rules forbid

  • “Use of Kalshi APIs is expressly limited to facilitating a members own trading on the Exchange; all other usages are disallowed and may result in account suspension.” The agreement also bans “inducing users to enter their Kalshi password into another site”, “spoofing or wash sales”, and sublicensing the API to a third party (Kalshi Developer Agreement).
  • Automated orders “must ensure adequate controls are in place to prevent excessive messaging” (Rule 5.4). Rule 5.17 prohibits trades that do not change beneficial ownership or are “designed to unnaturally inflate trading volume”, spoofing, wash trades and front-running (Kalshi rulebook).
  • You remain responsible for everything done under your API login, including by third parties you let in.

For the same reason, a “Kalshi bot” sold as a service that trades for many customers is not something Kalshi’s agreement allows. Insider and outcome-influence rules apply to bots as to people: insider trading on prediction markets.

Programs for liquidity providers

  • Market Maker Program: approved makers “may receive reduced fees and certain adjusted position limits” after a review of resources, experience and reputation (Kalshi, market makers).
  • Liquidity Incentive Program: rewards of “$1-$1,000 per market, per day” for resting orders near the best price, sampled “once per second, at a random moment”; non-US users are not eligible, and the program ends on 1 January 2027 (Kalshi, liquidity incentives).
  • Maker orders pay fees on some series — see Kalshi fees.

Bot scams

“Kalshi will never ask you to share your password or a one-time code”, and its email comes only from @kalshi.com, @security.kalshi.com, @e.kalshi.com and @t.kalshi.com (is this email from Kalshi). “Kalshi employees will never ask you to send money or crypto to ‘verify’ your account” (reporting account activity). A bot that wants your Kalshi password, rather than an API key you create and can delete, is asking for something the developer agreement forbids. Give a key to code you run yourself, keep its private half secret, and delete it when you stop.

See it live on Kalshi

CFTC-regulated event contract exchange

Editor score 7.7Available
Open Kalshi →

Common questions

Can you use a bot on Kalshi?

Yes, for your own trading. Kalshi provides REST, WebSocket and FIX APIs and official SDKs; its developer agreement limits API use to a member’s own trading and bans spoofing, wash sales and sublicensing access.

What are Kalshi’s API rate limits?

Basic accounts get 200 read and 100 write tokens a second, and most requests cost 10. Advanced raises that to 300/300; volume-based tiers go up to Prestige at 12,000 read and 9,600 write. Exceeding a limit returns an error with no cooldown.

Does Kalshi have a demo account for testing bots?

Yes, at demo.kalshi.co with mock funds and separate API hosts and credentials. Demo prices may not match real markets, and Kalshi warns that a .com version of the demo address is not Kalshi’s.

Is there an official Kalshi Python SDK?

Yes: kalshi_python_sync and kalshi_python_async, plus kalshi-typescript. The old kalshi-python package is deprecated, and Kalshi notes the SDKs may lag the API.

Can I pay for a Kalshi trading bot service?

Kalshi’s developer agreement limits the API to a member’s own trading and bans sublicensing it or asking users for their Kalshi password, so a service that trades other people’s accounts conflicts with Kalshi’s terms.