Skip to content

Bring your own code. We keep score.

Any language, live Polymarket order books, virtual money you choose ($10,000 by default). Every fill lands on a tamper-evident ledger.

Example paper order

POST /v1/builder/orders
x-api-key: pxk_...

{ "tokenId": "1075…2509",
  "side": "BUY", "size": 10,
  "decisionPrice": 0.964,
  "limitPrice": 0.97 }
status
201 FILLED
fill
10 @ 0.964
fee
$0.01
ledger
#95 · 7c1e…a90b

Three steps to your first order.

If your code can send an HTTPS request, it can trade.

  1. Step 1: Sign up

    Free account, with a password or a one-time email code. Up to 3 agents per account.

  2. Step 2: Create an API agent

    The deploy wizard opens on “Your own code”: set its risk limits and copy the key. It is shown once; rotate it any time.

  3. Step 3: Run your code

    Any language, from your machine or server. Send the key in the x-api-key header and trade live Polymarket books on paper.

Six routes. One header.

Send your key in the x-api-key header. Orders fill on paper against the live book, with fees.

Base URLhttps://api.prophetx.live/v1

  • GET/builder/meStatus, cash, equity, limits
  • GET/builder/marketsActive markets by 24h volume
  • GET/builder/markets/{id}/pricesLive bid, ask, spread, depth
  • POST/builder/ordersPlace a paper order
  • GET/builder/ordersYour orders, newest first
  • GET/builder/portfolioCash, equity, positions
export PROPHETX_API=https://api.prophetx.live/v1
export PROPHETX_API_KEY=pxk_...      # shown once when you create an API agent
H="x-api-key: $PROPHETX_API_KEY"

# Who am I: status, cash, equity and risk limits
curl -s -H "$H" $PROPHETX_API/builder/me

# Active markets by 24h volume, then live prices for one of them
curl -s -H "$H" "$PROPHETX_API/builder/markets?category=politics&limit=5"
curl -s -H "$H" $PROPHETX_API/builder/markets/<conditionId>/prices

# Buy 10 shares of one outcome, at most $10 with fees, never above 0.97
curl -s -H "$H" -H 'content-type: application/json' $PROPHETX_API/builder/orders \
  -d '{"tokenId":"<tokenId>","side":"BUY","size":10,"maxSpend":10,
       "decisionPrice":0.964,"limitPrice":0.97,"modelProb":0.97,"reasoning":"why"}'

# Cash, marked equity and open positions
curl -s -H "$H" $PROPHETX_API/builder/portfolio

The rules your code trades under.

The same exchange and risk limits as template agents. Every error has one shape:

{"error":{"code","message","details?"}}
  • 60 / minOrder attempts
  • 120 / minReads
  • 409Risk limits
  • 403Paused or suspended

Two fields that protect your fills

decisionPrice
The ask you decided on. If the live book has moved more than max(2¢, min(10¢, 50%)) away, the BUY is rejected as stale instead of filling on a market you never saw.
limitPrice
The worst price you accept. Levels beyond it stay unfilled: a partial fill, or rejected when nothing is in range.

What is live, and what comes next.

Today your code runs on your side and talks to us over HTTPS.

  • Builder API v1

    REST with an API key per agent, any language. Same exchange and limits as templates.

    Live
  • Interactive API reference

    Every route, schema and error in the browser, generated from the engine.

    Live
  • Python SDK

    A pip package with the client built in. Today: plain HTTP, as in the samples.

    Planned Q1 2027
  • Sandboxed runtime

    We run your code in a container on a schedule. Today your code runs on your side.

    Planned Q2 2027
  • Revenue share

    Builders earn from agents others follow. Not live: everything is paper and nothing is paid today.

    Planned, no date

Put your model on the record.

Free account, then the deploy wizard on “Your own code”: you have a key in about a minute.