Guide · Kalshi · Bots

Kalshi trading bots: how they work and how to run one

A Kalshi trading bot places orders for you, by rules you set, through Kalshi's API. Here are the three ways to run one, what fees do to any rule, what to check before one goes live, and how to test it on paper first.

Describe and backtest a bot free · Not financial advice

What a Kalshi trading bot is

Kalshi lists event contracts: yes or no questions such as whether Bitcoin finishes a 15-minute window higher, or which team wins tonight. A contract trades between 1 and 99 cents and pays $1 if it settles your way. A trading bot is a program that watches for something and places orders on these contracts when its rule says so.

It connects through Kalshi's API with a key you create in your Kalshi account under Account & security. The key comes with a private key that signs every request. Kalshi keys also carry permissions, and a key created without trading permission can read your balance but has every order refused. Your money stays in your Kalshi account the whole time. The bot trades it through the key.

Every bot, however it is built, comes down to the same parts:

PartWhat it decidesExample
TriggerWhat the bot reacts toA price, a time before close, a game score, a large trade
FilterWhich signals countOnly sports markets, only trades above $50K
EntryWhich side, and the most it will payBuy YES at 60 cents or less
SizeHow much per trade$10, or 20 contracts
ExitWhen it gets outHold to settlement, or take profit at +30%
LimitsWhen it must stopA daily cap, trading hours, a cap on open positions

Three ways to run one

1. Write your own on the Kalshi API

Kalshi publishes a REST API and a WebSocket feed, a demo environment that trades play money, and official Python starter code on GitHub. Writing your own lets you trade any market on any data you can get. It also makes you responsible for everything a hosted service handles for you: signing requests, order states and partial fills, reconnecting dropped feeds, rate limits, and a machine that stays on at 3am. Start in the demo environment, and keep the first version there until every path has been tested.

2. Start from open source

GitHub has community SDKs and complete bots for Kalshi. They save time, but you take on someone else's code. Read it before you give it a key. Prefer projects that keep your key on your own machine, check when the code was last updated (Kalshi changes its API, and an out-of-date bot can misread prices or sizes), and never paste your private key into a tool or website you have not checked.

3. Use a hosted builder

A hosted builder runs the bot on its own servers with your API key, and you set the rules in a form or in plain English. You trade control for convenience: you can only use the triggers the service supports, you pay a monthly fee, and you trust it with your key. Ask how the key is stored, what happens when a bot errors, and whether every bot can run on paper first. Builders differ mostly in what a bot can react to. PolyPulse bots react to whale trades or to a market's price and time. Bot for Kalshi also builds rules on outside data such as scores and weather.

The three ways side by side
Your own codeOpen sourceHosted builder
You needProgramming, a server, timeEnough code to review itA browser
CostYour time and hostingYour time and hostingA monthly fee
What it can trigger onAnything you can codeWhatever the project supportsWhatever the service supports
Where your key livesWith youWith you, if the project is built that wayOn the service: ask how it is stored
Watch forYour own bugsSomeone else's bugs, stale codeLimited triggers, trust in the service

Fees: the number every bot has to beat

Kalshi charges a fee each time an order fills: 0.07 × contracts × price × (1 − price) in dollars, rounded up, for most markets. There is no fee at settlement. Some series charge resting (maker) orders a lower fee, and the rest charge them nothing. Held to settlement, a buy breaks even when it wins as often as the price plus the fee per contract. A bot that pays the spread, or sells before settlement and pays a second fee, needs more.

Taker fee and break-even win rate for 100 contracts, rounded up to the cent, held to settlement
PriceFee per contractFee on 100 contractsBreak-even win rate
10¢0.63¢$0.6310.63%
25¢1.31¢$1.3226.32%
40¢1.68¢$1.6841.68%
50¢1.75¢$1.7551.75%
60¢1.68¢$1.6861.68%
75¢1.31¢$1.3276.32%
90¢0.63¢$0.6390.63%

A contract's price is the market's estimate of its chance of paying out. A bot that buys favourites at 75 cents is buying contracts priced as a 75% chance, so it needs them to settle its way more than 75% of the time, plus the fee, to break even. A bot that trades often also pays the fee often. Our Kalshi fee calculator works out the fee and break-even rate for any order.

What to check before a bot goes live

  • Paper first. Run every new rule on paper against live prices, and keep it there until it has hundreds of trades behind it.
  • Know the fee. Work out the break-even rate for the prices the bot will actually pay, spread included.
  • Set the limits. Stake per trade, a daily cap, a cap on open positions and trading hours, decided before it runs.
  • Test every path. The side, the size, and what happens after a dropped connection. The demo environment or paper mode is the place to find out.
  • Plan for partial fills. A limit order can sit unfilled or fill in part. Decide what the bot should do in each case.
  • Cap the price. On a thin book your own order can move the price, so set the most the bot may pay.
  • Treat related markets as one. A game's winner, its spread and its total all depend on one game. Cap them together.
  • Test on fresh data. Tune a rule on one period and test it on another you did not look at.
  • Guard the key. Give a bot only the permissions it needs, keep two-factor authentication on, and delete keys you no longer use.

Paper first, then small

  1. Write the rule down

    Trigger, filter, maximum price, size, exits and limits, decided before you look at any results.
  2. Backtest it on data you did not tune on

    Tune on one period and judge it on another. Treat every backtest as hypothetical: it assumes fills that may not have happened.
  3. Run it on paper against live prices

    Paper trading records what the bot would have bought at real prices, without orders. It still leaves out fills that would not have happened and the effect of your own order.
  4. Compare with break-even, not 50%

    The win rate has to beat the average price paid plus fees and spread. Judge it on hundreds of trades. Our backtests flag any result under 300 trades as too small to read.
  5. Go live small, with limits

    Minimum size, a daily cap and trading hours. If live results drift from paper, switch it back to paper and find out why.

How PolyPulse bots work

PolyPulse is a hosted builder with two kinds of trigger. A whale bot reacts to whale trades: clusters of large buys on one side of one market, caught on Kalshi and Polymarket within seconds and scored 0 to 99 by the Insider Score. A price and time bot reacts to a Kalshi market's own price and the time left before it closes.

  • Describe it in plain English. Type something like "follow $100K sports whales under 60 cents, $10 a trade, evenings only". The AI fills in the builder's settings for a whale bot. Ask for a price or time rule and it points you to the Price and time trigger. It says plainly what it cannot build, such as rules on weather data, scores or news, or copying one trader. It never saves or runs a bot. You review every setting.
  • Price and time on any Kalshi market. Pick a series, such as Bitcoin up or down every 15 minutes, a city's daily high temperature or the Fed decision, type any other series ticker, or name one market. Choose YES, NO, the leading side or the trailing side, a price to buy at or above (or at or below), a window before the close and the most it may pay. Each market is entered at most once. These bots run on paper for now, and live trading for them comes once it has been verified.
  • Backtest whale bots on recorded whales. Replay the rules over the whale trades PolyPulse recorded in the last 7, 30 or 90 days. Kalshi taker fees are included, fills are at the whale's own price, and every position is held to settlement. Results are marked hypothetical. Backtests for price and time bots are on the way.
  • Paper first, every time. Every new bot starts on paper. Going live needs Pro or Elite, two-factor authentication and a Kalshi key with trading permission. Price and time bots, Polymarket bots and bots that fade a whale stay on paper for now.
  • Limits on every bot. Stake per trade, a daily cap, maximum open positions, optional take-profit and stop-loss, and trading hours. Values are checked on our servers, whatever the browser sends. Up to 20 bots per account.

The full walkthrough is in the Bot Builder docs, and connecting a Kalshi API key covers the key and its permissions.

What each part costs on PolyPulse
What you can doPlan
Describe a bot in plain EnglishFree with any account
Backtest a whale bot on recorded whalesFree with any account (8 an hour; more on Pro and Elite)
Save whale bots and run them on paper or livePro and Elite, from $79 a month, and during the free trial
Price and time bots on any Kalshi marketPro and Elite, on paper for now
Kalshi 15-minute BTC botPulse ($29 a month) and up
Mirror whale trades automaticallyElite ($199 a month)

Full plan details and yearly prices are on the pricing page.

A checklist before any bot goes live

  • The rule is written down, and you have not changed it since you last tested it.
  • It cleared its break-even win rate on paper over hundreds of trades, not dozens.
  • The API key has trading permission and nothing more you do not need. Two-factor authentication is on.
  • Size per trade is small, and a daily cap and trading hours are set.
  • You know how to switch it off in one step, and you check on it every day.

Questions about Kalshi bots

What is a Kalshi trading bot?
A program that places orders in your Kalshi account by rules you set, through Kalshi's API. It watches something, such as a price, the clock, a game score or a large trade, and when its rule is met it sends an order with your API key. The money stays in your Kalshi account.
Does Kalshi allow trading bots?
Kalshi publishes a trading API, a demo environment and official starter code for automated trading, and lets you create API keys with trading permission in your account settings. Read Kalshi's member agreement for the rules that apply to your account.
How much does it cost to run a Kalshi bot?
Your own code costs your time and a server. Hosted builders charge a monthly fee: as of November 2026, Bot for Kalshi is $99 a month, and PolyPulse runs saved bots on Pro and Elite, from $79 a month, with describing and backtesting a bot free on any account. Bots also pay Kalshi's trading fees on the orders they fill.
Can I build a Kalshi bot without coding?
Yes, with a hosted builder. In PolyPulse you describe the bot in plain English or fill in a form. A bot reacts to whale trades, or to a Kalshi market's price and the time left before it closes, and every bot starts on paper. Some other builders also use outside data such as live scores or weather forecasts.
Can a Kalshi bot also trade Polymarket?
Not with the same code: Polymarket is a different exchange with its own API and wallet. PolyPulse bots can watch Polymarket whales today, but Polymarket bots run on paper only until live Polymarket execution is verified.
What is the safest way to start?
Write the rule down, backtest it on data you did not tune it on, run it on paper against live prices for hundreds of trades, then go live at the smallest size with a daily cap. Give the bot an API key with only the permissions it needs, and keep two-factor authentication on.

Keep reading

Describe a bot. Backtest it free.

Sign up, describe the bot you want in plain English, and replay it on recorded whales with Kalshi fees included. New accounts also get a free Elite trial, one per person, with no card.

Not financial advice · Trading involves risk