How a Prediction Market Trading Bot Works (Without Writing Code)
Updated
A prediction market trading bot is software that watches contract prices on exchanges like Kalshi and Polymarket and places orders automatically when conditions you define are met. Instead of refreshing a market page all afternoon waiting for an underdog to dip into your price range, you write the rule once — and the bot checks it every few minutes, on every market in scope, without getting tired or emotional.
This guide explains what actually happens inside one, what a good rule looks like, how a bot decides how much to buy, and why every rule should run on paper before it touches real money. You don't need to write code for any of it.
What a prediction market trading bot actually does
Every trading bot, from a weekend script to a hedge-fund system, runs the same loop. One pass through it is called a run:
- Step 1
Fetch prices
Pull the order book for every market in scope.
- Step 2
Check rules
Price band, time window, filters — all must pass.
- Step 3
Size the order
Bankroll × size scale, capped by allocation.
- Step 4
Place or paper
Send the order, or record a paper fill.
- Step 5
Track & settle
Mark open positions; book P&L at resolution.
- Fetch prices. The bot pulls the current order book — best bid, best ask and depth — for every market its strategies care about. On Kalshi and Polymarket that means calling the exchange API, inside its rate limits.
- Check rules. Each market is tested against every active strategy: is the price inside the band? Is the event inside the time window? Does it pass the filters?
- Size the order. If a market passes, the bot works out the stake from your bankroll, the strategy's size scale and its allocation cap.
- Place the order — or paper it. A live strategy sends a real order. A paper strategy records the fill it would have got at the real price, so its results are honest.
- Track and settle. Open positions are marked to market each run. When the event resolves, the contract pays $1 or $0 and the bot books the P&L.
Rules, not predictions
The word "bot" makes people imagine a model forecasting who wins. Most profitable automated strategies on prediction markets don't predict anything. They look for situations that have historically been mispriced, and they buy only when one shows up:
- Price bands. Underdogs priced between 10¢ and 25¢ a few hours before start, in categories where they've historically won more often than that price implies.
- Dips. A pregame favourite whose price collapses after a bad start — see dip-buy strategies.
- Forecast disagreements. A weather bucket priced at 20¢ when the forecast model says 35% — the logic behind a Kalshi weather trading bot.
- Thin books. A cheap resting bid in an illiquid market that a hurried seller will hit.
A rule is just a precise sentence. Try changing one below and watch which markets would fire:
| Market | Price | Starts in | Result |
|---|---|---|---|
| Sinner to win vs. Rune | 19¢ | 4 h | signal · buy $20 |
| Celtics to win at Knicks | 62¢ | 9 h | skip · above band |
| Swiatek to win vs. Gauff | 24¢ | 30 h | skip · outside window |
| Nuggets to win vs. Suns | 14¢ | 2 h | signal · buy $20 |
| Alcaraz to win vs. Zverev | 31¢ | 7 h | skip · above band |
| Lakers to win at Warriors | 22¢ | 11 h | signal · buy $20 |
3 of 6 markets fire → $60 staked from a $1000 paper bankroll at a 2% size scale.
Picky is good
Widen the band to 5¢–60¢ and almost every market fires — but you've also stopped targeting the specific mispricing you meant to trade. A good rule skips far more markets than it buys.
The anatomy of a rule
In Rebeti, every strategy is built from the same handful of fields. You pick them from dropdowns rather than writing them in code:
- 1
Venue
Kalshi, Polymarket US or Polymarket International. The same rule can be mirrored on more than one.
- 2
Category and sub-category
A league, tour, election type or weather city — e.g. ATP tennis, NBA, Senate races.
- 3
Contract side
Buy YES on the outcome, or buy NO to fade an overpriced favourite.
- 4
Entry condition
A price band (buy between 10¢ and 25¢) or a dip (a favourite falling fast into a band).
- 5
Timing
How many hours before the game starts, or before the market closes, the rule is allowed to buy.
- 6
Sizing and caps
Size scale as a share of bankroll per trade, plus a maximum share of bankroll the strategy can have open at once.
How a bot sizes its orders
Sizing matters as much as the entry. A bot that finds a real edge but bets 20% of its bankroll per trade will still go broke on an ordinary losing streak. Three numbers keep it in check:
- Size scale — the stake per trade as a share of bankroll (for example 2%).
- Allocation cap — the most a single strategy can have tied up in open positions. When it's hit, new signals are skipped, not queued.
- Daily loss limit — a circuit breaker that pauses all trading for the day once realized losses cross a threshold. More on this in risk limits and kill switches.
Cheap contracts make sizing extra important: a 15¢ underdog rule loses most of its trades and earns its profit from the occasional win that pays out more than 6×. Losing streaks of ten or more are normal, so the stake has to be small enough to survive them.
What a bot looks like while it runs
Most of the time, a well-built bot does nothing. Here's half an hour of a paper bot's run log — about 400 markets checked every five minutes, and only a handful of signals:
Notice the details a manual trader would miss: a signal skipped because the strategy hit its allocation cap, and a market skipped because its order book was stale. Both are the bot protecting you from a bad fill.
Why paper trading comes first
A rule that sounds clever can lose money for boring reasons — fees, slippage, thin books, or plain bad luck over a small sample. Paper trading runs the exact same rule against real, live prices and records what would have happened, without risking funds.
There are two ways to test a rule before it goes live, and they answer different questions:
Backtest
- —Replays the rule against historical prices
- —Answers: would this have worked in the past?
- —Results in minutes, across months of data
- —Can't see today's liquidity or market changes
Paper trading
- —Runs the rule forward on live prices
- —Answers: does it still work right now?
- —Takes days or weeks to build a sample
- —Catches fills, fees and timing issues a replay misses
The practical order is: backtest to throw away obviously bad ideas, then paper trade the survivors, then promote a rule to live only once its paper results agree with its backtest.
Going live, one rule at a time
A strategy table is where a bot's rules live. Each row is one rule with its own venue, scope, band, timing and book. Paper and live rules sit side by side, and promoting one is a single toggle:
| Venue | Category | Market type | Strategy | Contract | Rule | Filter | Timing | Horizon mode | Band low | Band high | Drop | Horizon (h) | Size scale | Max alloc | Active | Book | Delete |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| KALSHI | atpall | moneyline | atp entry #5555 | yes | band 10¢–25¢ · start @12h · ×0.02 · cap 0.3% | pre-game | — | live | |||||||||
| PLY-US | nbaall | moneyline | nba entry #5555 | no | INVERTED band 60¢–80¢ · non_round · start ≤6h · ×0.05 · cap 0.25% | pre-game | — | paper | |||||||||
| KALSHI | politicsall | moneyline | politics entry #5555 | yes | band 20¢–40¢ · low_overround · close ≤72h · ×0.05 · cap 0.15% | in-game | — | paper |
Before you flip a rule to live
Check three things: the paper sample is large enough (dozens of settled trades, not five), the paper win rate clears the break-even win rate implied by your average entry price plus fees, and your daily loss limit is set. Then start with a smaller size scale than you used on paper.
Common mistakes with prediction market bots
- Testing on too few trades. Ten wins in a row on a 60¢ favourite rule proves very little. See the sample-size section of the backtesting guide.
- Ignoring fees. Kalshi charges a taker fee that's largest near 50¢. A thin edge on mid-priced contracts can disappear entirely — compare costs in Kalshi vs. Polymarket fees.
- Assuming every signal fills. In thin markets your order can sit unfilled or fill worse than the quoted price. Understanding order types helps.
- Running too many overlapping rules. Five rules that all buy the same underdog are really one rule at five times the size.
- Skipping the kill switch. Bugs, API outages and news shocks happen. A daily loss limit is cheap insurance.
Building a prediction market trading bot with Rebeti
Rebeti is a no-code trading bot builder for prediction markets. You create a strategy by picking a venue, category, contract side, entry band and time window. The auto-trader scans the markets every few minutes, records paper trades, settles them automatically and shows you the results — and the same rule can run live on Kalshi, Polymarket US or Polymarket International when you're ready. Curious how it compares? See the best prediction market trading bots.
Frequently asked questions
What is a prediction market trading bot?
+
A prediction market trading bot is software that monitors contract prices on exchanges like Kalshi and Polymarket and automatically places orders when rules you define are met — for example, buying an underdog when its price is between 10¢ and 25¢ within 12 hours of the event.
Can I build a Kalshi or Polymarket trading bot without coding?
+
Yes. No-code tools like Rebeti let you define a strategy by choosing a venue, category, contract side, price band and time window from menus. The platform handles the API connection, order placement, position tracking and settlement.
Are prediction market trading bots profitable?
+
Some are, most aren't. A bot only automates a rule — it's profitable only if the rule has a real edge after fees and slippage. That's why every rule should be backtested and then paper traded on live prices before it risks real money.
Is it allowed to use a trading bot on Kalshi or Polymarket?
+
Both Kalshi and Polymarket offer public APIs intended for programmatic trading, and automated trading through them is permitted within each venue's terms of service and rate limits. Always check the current terms for the venue and region you trade in.
How often does a prediction market bot check prices?
+
Most bots poll on a fixed schedule. Rebeti's auto-trader runs every few minutes, checking every market in scope against every active strategy, which balances responsiveness with the exchanges' API rate limits.
What is paper trading for a trading bot?
+
Paper trading runs a bot's rule against real, live market prices but records simulated fills instead of placing real orders. It shows how a strategy would perform today without risking funds.