Skip to content
5-MINUTE

Polymarket US 5-minute Bitcoin, every window live

5-minute board Β· results

FED DESK

Kalshi vs Polymarket vs futures on the next FOMC decision

Fed Rate Tracker Β· live

15-MINUTE

Every Kalshi 15-minute window, priced against the late-flip risk

Bitcoin Β· gold Β· silver Β· oil

MIDTERMS

Every 2026 race priced on Kalshi and Polymarket

Senate Β· House Β· governors

COMBO EDGE

Correlation-aware Kalshi combos β€” free

How To Build a Prediction Market Trading Bot: Kalshi, Polymarket US, Novig and ProphetX

Step-by-step: connect a trading bot to Kalshi, Polymarket US, Novig or ProphetX, build it with an AI prompt you can copy, fund it safely, and see the three-machine setup we run ourselves.

Share
Build the Bot: three gold nodes labeled ingest, math and trade connected in a line, above a data strip reading 3 machines, 4 venue guides, 0 orders until you arm it, and the PMP Bot Playbook.
Build the Bot: three gold nodes labeled ingest, math and trade connected in a line, above a data strip reading 3 machines, 4 venue guides, 0 orders until you arm it, and the PMP Bot Playbook.
FSWA Award Winner Β· Published Author Β· Ran 4Deep Sports Β· Led FTN Marketing Β· Traded Bonds on Wall Street
December 2, 2026

Novig: We are paid when you sign up for Novig through our link; it never changes what you get. Novig promo code PMP

Use these tools

This is the most-asked question in our inbox right now: how do I hook a bot up to Kalshi? Then Polymarket US. Then Novig. Then ProphetX.

So here's all of it. One page per venue with the exact steps, a prompt you can paste into Claude or ChatGPT to write the bot, and how to fund it without putting your whole account on the line. At the bottom, how we run ours.

The venue guides

Every guide follows the same four steps: connect (API keys), build (the AI prompt), fund (a capped balance), and start (where the signals come from).

Every bot is three jobs

Strip any trading bot down and it does three things. Keep them separate, even when they live in one file, and debugging gets easy.

  1. Ingest. Read prices. Order books, last trades, and whatever outside number the market settles on (the Bitcoin index for a crypto window, a box score for a player prop).
  2. Math. Turn those prices into a decision. Fair value versus the market price, an edge, a size. This is where your rule lives.
  3. Trade. Place the order the math recommended, and nothing else. It enforces your caps, logs every order and every skip, and stops when you tell it to.

Most bots that blow up fail in job 3, not job 2. The rule was fine. The bot just had no cap, no daily stop, and no log, so nobody noticed it was buying the same contract forty times.

Step 1: connect

Each venue gives you an API key: a public ID plus a private key that signs your requests. The private half is the dangerous part. Whoever holds it can trade your account.

Three rules for every venue:

  • Download the private key once and store it like a password. Password manager, or an .env file on your own machine. Kalshi, for one, never shows it again after the page closes.
  • Never paste it into an AI chat, a Discord, a screenshot or a GitHub repo. Have the AI write code that reads the key from your machine.
  • Use the official API. Every venue on this page publishes one. Screen-scraping or clicking buttons with a browser script is how accounts get closed.

Step 2: build it with AI

You don't need to be a developer anymore, but you do need to be the boss. Paste this into Claude or ChatGPT, fill in the brackets, and it will write a working dry-run bot. Each venue guide has a version with that venue's auth and endpoints already filled in.

You are a senior engineer helping me build a small, safe trading bot for [VENUE].

Goal: a bot that reads prices for [MARKET, e.g. Bitcoin 15-minute up/down windows],
decides with this rule: [YOUR RULE IN ONE OR TWO SENTENCES],
and places limit orders only when the rule fires.

Hard requirements:
1. Language: [Python 3.12 / Node 24]. One folder, a README, and a requirements or package file.
   No axios. Use the standard library or the venue's official SDK.
2. Read the API key ID and private key from environment variables or a local file path.
   Never print them, never log them, never ask me to paste them into this chat.
3. Three separate modules: ingest (prices), decide (my rule), execute (orders).
4. DRY_RUN=true by default. In dry-run, log the order it would place and place nothing.
5. Risk rails in a config file: max dollars per position, max open positions,
   daily loss stop, and a KILL file that stops all trading if it exists.
6. Log every decision to a CSV: timestamp, market, price seen, decision, reason, order id.
7. Handle rate limits and reconnects with backoff. If data is stale, do nothing.
8. Use the official [VENUE] API docs: [DOCS URL]. If you are unsure of an endpoint,
   say so and tell me where in the docs to check. Do not invent endpoints.

Start by listing the files you will create, then write them one at a time.
After the code, give me a test plan: how to run dry-run and what the log should show.

Two habits that save money. Ask the AI to explain every line of the execute module back to you before you arm it. And make it write tests for the risk rails, because those are the lines that matter most when something goes wrong.

Step 3: fund it and fence it

Fund the bot like you expect it to have a bad week, because it will.

  • Separate the money. Novig lets you open a subaccount with its own trading key, so the bot physically cannot reach the rest. On venues without that, keep the bot's balance small and keep the rest somewhere it can't trade.
  • Cap everything in code. Max per position, max per day, max lifetime loss. Our live lanes start at a few dollars per position with a daily stop, and they only get bigger after the log earns it.
  • Dry-run first, small live second. Run dry until the log reads exactly like your own judgment. Then arm it at minimum size. Then wait a week.
  • Know your fees. A thin edge minus fees is often a loss. Kalshi charges a per-contract fee on every fill, and our Kalshi fee calculator shows what it does to a small edge. We tested three common 15-minute bot ideas against the fees, and two of them lost.

Step 4: where the signals come from

A bot is only as good as its rule. If you don't have one yet, start with what we publish:

Copy our setup (Pro)

Everything above gets you a bot. What follows is how we run ours, and it sits behind Pro.

People keep asking how ours is wired, so we wrote it down. The Bot Playbook is the build sheet for the setup we actually run:

  • Machine 1, the ingester. It runs on a small Fly.io server around the clock, streams the order books and the settlement index, and writes fresh prices to the database. It includes the freshness checks that keep a frozen feed from trading.
  • Machine 2, the math. It reads those prices, computes fair value and the edge, and writes one signal row. That same row feeds our public tools, so what the site shows and what the bot trades never drift apart.
  • Machine 3, the executor. It reads the signal and places only the trades the math recommended, with per-position caps, a daily stop, a lifetime stop, a one-row kill switch, and a ledger that logs every order and every skip with its reason.
  • The wiring sheet: the table layout, the process list, how the three talk to each other, the alerting, and what it all costs per month to run.
  • The AI prompts we use to stand each piece up, in order.

It's the plumbing, not the rules. The edges change and the rules change with them. This version of the strategy stays until it breaks. The plumbing doesn't change.

Get the Bot Playbook with Pro β†’

Building a bot? Get the week's prediction-market edges by email, every week. Free.

No spam. Unsubscribe anytime.

The honest part

Most bots lose. Fees eat small edges, everyone reading the same public signal crowds the same thin book, and a rule that worked for three weeks can quit without warning. That's why we start small, log everything, and cut lanes that stop earning. Trade responsibly, and never automate money you need.

Share

How To Build a Prediction Market Trading Bot: Kalshi, Polymarket US, Novig and ProphetX β€” frequently asked

Can you build a trading bot for prediction markets?

Yes. Kalshi, Polymarket US, Novig and ProphetX all publish trading APIs. You create an API key in your account, and a program signs each request with that key to read prices and place orders. Use the official API, not screen-scraping or browser automation.

Do I need to know how to code to build a prediction market bot?

Less than you used to. An AI assistant like Claude or ChatGPT can write the bot from a detailed prompt, and this guide includes one for each venue. You still need to run it, read its logs and understand every rule it trades on, because the bot places real orders with real money.

Is it safe to give an AI my API key?

No. Never paste a private key into a chat. Ask the AI to write code that reads the key from an environment variable or a file on your machine, then put the key there yourself. Anyone holding the key can trade your account.

How much money should a new bot start with?

Only what you can lose all of. We start every new lane at a few dollars per position with a daily loss stop, and on Novig we fund a separate subaccount so the bot can never touch more than that balance.

Where does a bot get its trade ideas?

From whatever rule you give it. You can write your own, or read a signal feed. PredictionMarketsPicks publishes its edge signals through an alerts API, and our tools, like Bitcoin Edge and the 15-minute Bitcoin board, show the same reads for free on the site.

Read Next

Kalshi Trading Bot Setup: API Keys, a Copy-Paste AI Prompt, and Funding It Safely
Hook a trading bot up to Kalshi step by step: create the API key, build the bot with a copy-paste AI prompt, test it on Kalshi's demo exchange, then fund it with hard caps.
Article
Polymarket US Trading Bot Setup: API Keys, Ed25519 Signing and a Copy-Paste AI Prompt
How to connect a trading bot to Polymarket US: get API keys from the developer page, sign requests with Ed25519, build the bot with a copy-paste AI prompt, and fund it with hard caps.
Article
Novig Trading Bot Setup: API Keys, Subaccounts and a Copy-Paste AI Prompt
Connect a trading bot to Novig step by step: the management key, a funded subaccount with its own trading key, NOVIG-V3 signing, a copy-paste AI build prompt, and the location check that trips up most bots.
Article
ProphetX Trading Bot Setup: Sandbox, API Tokens and a Copy-Paste AI Prompt
Connect a trading bot to ProphetX step by step: start in the free sandbox with demo funds, create API tokens, handle the login and token refresh, build with a copy-paste AI prompt, then go live with caps.
Article
Kalshi 15-Minute Bots: The Math Every Bot Has to Beat, Tested on 2,710 Bitcoin Windows
Most Kalshi 15-minute bot ideas are one of three trades. We tested all three on five weeks of Bitcoin data: two lost after fees, one broke on settlement.
Article
How To Automate Kalshi Trading With An Alerts API (The Non-Custodial Way)
A practical guide to automating Kalshi trading off a real signal feed β€” the Edge Alerts API, an open-source non-custodial executor you run yourself, and an honest look at self-crowding, fees, and the risks nobody in the bot-comparison posts will tell you about.
Article
Bitcoin Edge
Kalshi hourly Bitcoin ladder vs. fair value
Tool
Kelly Criterion
Optimal position sizing
Tool
Pro: Thee Oracle β€” the three markets worth watching right nowΒ· $111 your first year β†’

Prediction-market edges, weekly. The only newsletter built for Kalshi & Polymarket traders.

No spam. Unsubscribe anytime.

Watch The 7 Oracles make the call. Full breakdowns on YouTube, quick hits on X.

Benny Ricciardi

Founder Β· The 7 Oracles

Benny Ricciardi is an FSWA Award Winner and published author. He ran 4Deep Sports as CEO, led marketing at FTN Network as CMO, and traded bonds on Wall Street. He founded PredictionMarketsPicks.

Follow @BennyR11 β†’
prediction market trading bothow to build a prediction market botkalshi trading botpolymarket us trading botnovig api botprophetx api botprediction market apiai trading bot promptkalshi api bot setupbuild a trading bot with chatgpt or claude

Want more analysis like this?

Get The 7 Oracles' daily prediction market breakdown β€” free, no fluff, straight to your inbox.

Get the daily edge in your inbox β†’