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

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.

Share
ProphetX bot setup card: three gold nodes labeled ingest, math and trade, above a data strip reading sandbox, demo funds, dry-run and the PMP Bot Playbook.
ProphetX bot setup card: three gold nodes labeled ingest, math and trade, above a data strip reading sandbox, demo funds, dry-run and the PMP Bot Playbook.
FSWA Award Winner · Published Author · Ran 4Deep Sports · Led FTN Marketing · Traded Bonds on Wall Street
December 2, 2026

ProphetX is the friendliest venue on this list to learn on, because it hands you a sandbox with demo funds. Break your bot there for free, then take it live.

New to the overall setup? Read the prediction market bot overview first.

Step 1: connect

Start in the sandbox.

  1. Register on the ProphetX sandbox site. Use a real phone number, because two-factor applies even there.
  2. Ask the ProphetX team to set your sandbox account up as an API account and send demo funds. Their integration guide at docs.prophetx.co lists how to reach them.

Create your API token. In the sandbox, open the top-right menu, choose API integration and click create a new token. You get an access key and a secret key. Use a separate pair for each process you run at the same time, because ProphetX limits sessions per access key.

How auth works:

  1. POST /auth/login with your access_key and secret_key.
  2. You get an access token (about 20 minutes) and a refresh token (about three days).
  3. Send the access token as Authorization: Bearer <token> on every call, and refresh it before it lapses.

Calling login again on a key with a live session opens a second session instead of replacing the first, which is how bots trip the session limit. Log in once per process and refresh.

The pieces you'll use:

Two gotchas: orders are buy-only, and a successful submit comes back inactive, not open. Wait for open before your bot counts it as resting.

Step 2: build the bot with AI

You are a senior engineer helping me build a small, safe trading bot for ProphetX.

API facts:
- Docs: https://docs.prophetx.co (integration guide: /docs/integration; index: /llms.txt)
- Sandbox base: https://api.sandbox.prophetx.dev/partner (keep the /partner path).
  Production base comes from ProphetX's going-live guide; read it from PX_BASE_URL.
- Auth: POST /auth/login with access_key and secret_key returns an access token
  (~20 min) and a refresh token (~3 days). Send "Authorization: Bearer <access>".
  Refresh before expiry. Log in ONCE per process; a second login opens a new session.
  Read PX_ACCESS_KEY and PX_SECRET_KEY from environment variables. Never print or
  log them. Never ask me to paste them into this chat.
- Markets: /mm/get_tournaments, /mm/get_sport_events, /v4/mm/get_multiple_markets.
  Trade on strike_id.
- Feed: Pusher. GET /websocket/connection-config, then POST /v4/mm/websocket for
  channels. Refresh the config at least every 30 minutes.
- Orders: POST /v4/mm/submit_order {external_id, strike_id, price, quantity}.
  Buy-only. A success returns status "inactive"; wait for "open" before treating it
  as resting. Cancel with POST /v4/mm/cancel_order.

Market: [e.g. NFL game winner markets].
Rule: [YOUR RULE IN ONE OR TWO SENTENCES].

Build:
1. [Python 3.12 / Node 24]. No axios.
2. ingest, decide and execute as separate modules.
3. Rails in config: max per position, max open positions, daily loss stop, and a
   KILL file that halts everything.
4. DRY_RUN=true by default. Log every decision and skip, with a reason, to CSV.
5. Reconnect with backoff. Stale data = no trade.
6. Default to the sandbox. Production only when PX_ENV=production is set.
7. If you are unsure of an endpoint or field, say so and point me to the docs page.
   Do not invent endpoints.

List the files first, then write them one at a time, then give me a sandbox test plan.

Step 3: go live, fund it and fence it

Production access is its own step. ProphetX has a going-live process for moving a key from the sandbox to production on your verified account. Follow it at docs.prophetx.co, and expect new keys to start on conservative limits.

Open the real account (through our link, promo details on the ProphetX promo code page), deposit in the app, and put the fence in code:

Run the same code you ran in the sandbox, in dry-run first, then live at minimum size.

Step 4: start with our stuff

Want to copy how our bots are wired? The Bot Playbook is the build sheet: a Fly server that ingests prices, an engine that does the math, and a bot that places only what the math recommends. Get it with Pro →

Other venues: Kalshi · Polymarket US · Novig

Bots lose money too. Fund only what you can lose, and trade responsibly.

Share

ProphetX Trading Bot Setup: Sandbox, API Tokens and a Copy-Paste AI Prompt — frequently asked

Does ProphetX have a trading API?

Yes. ProphetX publishes a Trading API for orders, odds and wallet management, built for algorithmic traders and liquidity providers. The docs and integration guide are at docs.prophetx.co.

Does ProphetX have a sandbox?

Yes. You register on the ProphetX sandbox site and ask the ProphetX team to set the account up for API use, and the sandbox comes with demo funds. The sandbox API base is api.sandbox.prophetx.dev/partner.

How does ProphetX API authentication work?

You create a token in the API integration menu, which gives an access key and a secret key. POST /auth/login with both returns an access token that lasts about 20 minutes and a refresh token that lasts about three days. Send the access token as a Bearer token on every request.

Why does my ProphetX order say inactive?

A successful submit returns status inactive, not open. Wait for open on the WebSocket feed, or poll the order, before your bot treats it as resting on the book.

Read Next

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 →
prophetx apiprophetx trading botprophetx api keyprophetx sandboxprophetx botprophetx trading api pythonsports exchange api bot

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 →