Paper-trade Polymarket markets from your own code.

A REST and WebSocket API on live Polymarket prices and order books. Orders are filled by our simulator and never sent to Polymarket. No wallet, no signing, no gas.

Free keys can trade with a $1,000 API wallet at 2 requests a second.

  1. Install the SDK

    $ pip install polysimulator

    Version 0.8.0 on PyPI, Python 3.10 or newer.

  2. Get a free key

    Sign in and create one in the API console.

    $ export POLYSIM_API_KEY=ps_live_...
  3. Place a paper order

    pythonsync
    from datetime import datetime, timezone
    
    from polysim_sdk import PolySimClient
    
    
    def utc(stamp):
        # A stamp without an offset is UTC.
        stamp = stamp.replace("Z", "+00:00")
        when = datetime.fromisoformat(stamp)
        if when.tzinfo is None:
            when = when.replace(tzinfo=timezone.utc)
        return when
    
    
    def open_round(rounds):
        # Rounds are listed before they open: keep the open one.
        now = datetime.now(timezone.utc)
        for market in rounds:
            try:
                start = utc(market["start_date"])
                end = utc(market["end_date"])
            except (KeyError, AttributeError,
                    TypeError, ValueError):
                continue
            if start <= now < end:
                return market
        raise SystemExit(
            "No live BTC 5-minute round. Try again shortly."
        )
    
    
    ps = PolySimClient()  # reads POLYSIM_API_KEY
    rounds = ps.list_updown(
        asset="BTC", interval="5M", live=True,
    )
    market = open_round(rounds)
    order = ps.place_order(
        market_id=market["condition_id"],
        side="BUY", outcome="Up", quantity=10,
        # 0.99 is the worst price you accept, not the fill
        order_type="market", price="0.99",
    )
    if order["status"] == "FILLED":
        print("filled", order["quantity"], "@", order["price"])
    else:
        print("not filled:", order["status"],
              order.get("cancelled_reason"))
    print("order", order["order_id"])
    

    The code selects a live window. See the live five-minute Bitcoin Up/Down market in the app.

Full quickstart, with curl and the WebSocket stream
Markets updated live
300,500+
Read from GET /v1/status at 25 Nov 2026, 13:36 UTC
Python SDK
0.8.0
Read from PyPI
Requests a second, by tier
2 to 100
Read from GET /v1/keys/tiers

Every fill explains itself

Each order response says how it was priced, so a bot can audit its own fills.

Order request

POST /v1/orderscurl
# Place a paper order — simulated fills against live Polymarket odds
# market_id: condition id, e.g. from GET /v1/markets?active_only=true
# price is required: the worst fill you accept ("0.99" = any fill)
curl -X POST https://api.polysimulator.com/v1/orders \
  -H "X-API-Key: $POLYSIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "market_id": "<condition-id>",
        "side": "BUY", "outcome": "Yes",
        "order_type": "market", "quantity": "10",
        "price": "0.99"
      }'

# Stream live prices (token from POST /v1/keys/ws-token, valid 60 s)
wscat -c "wss://api.polysimulator.com/v1/ws/prices?token=$WS_TOKEN"
# then send: {"action": "subscribe", "markets": ["<condition-id>"]}

Price ladder

Yes askDepthRestingFilled
62¢03
63¢04
64¢53
65¢120
66¢160
10 of 10 sharesAverage 63.00¢

Completed fill receipt

{
  "status": "FILLED",
  "price": "0.6300",
  "quantity": "10",
  "notional": "6.30",
  "price_source": "book_walk",
  "book_walk_levels": 3
}

Selected fields of the order response.

Illustration dated 18 Nov 2026. Use the condition ID for Will Bitcoin reach $100,000 by December 31, 2026? The example buys Yes at illustrative prices, taking three shares at 62¢, four at 63¢ and three at 64¢. The average is before fees.

Order response fields
Fields of OrderResponse (POST /v1/orders). Diagnostic fields can be null when the engine has nothing to report.
FieldWhat it tells you
statusA successful single-order OrderResponse can report FILLED, PENDING or CANCELLED. Failed single-order requests return an HTTP error. POST /v1/orders/batch can report REJECTED or ERROR per entry.
priceFill price when executed. A pending order shows its submitted limit or market price cap.
quantityShares filled when executed, or shares requested while pending.
notionalExecuted value before fees, or the submitted limit or cap times the requested quantity while pending.
feeFee charged on the fill.
price_sourceWhich price was used. Examples include book_walk, best_bid_ask, cached and midpoint.
slippage_bpsFor API-wallet fills, the difference in basis points from the submitted limit for limit orders, or from the cached display price of the chosen outcome for market orders. Unavailable when the market price reference is missing.
quote_age_msAge of the price source used for the fill, in milliseconds: the source named in price_source. Null when the age is unknown.
spread_bpsBook spread at fill time.
impact_bpsHow far the average fill sat from the best price.
book_walk_levelsOrder-book levels the fill consumed.
cancelled_reasonWhy an order was cancelled, e.g. price_did_not_cross or fok_insufficient_depth.
account_balanceCash balance after a fill when reported. The API wallet by default, or the selected wallet on supported fills, such as a SANDBOX fill. Can be null.

Orders are simulated and never reach Polymarket. Read how fills are computed and measured against Polymarket.

PolySimulator is not affiliated with Polymarket.

What you can call

The v1 surface today. The full reference lives in the docs.

Markets and prices

  • GET /v1/markets

    List and search markets.

  • GET /v1/markets/{condition_id}

    One market with its question, outcomes and prices.

  • GET /v1/markets/updown

    Crypto Up/Down windows.

  • GET /v1/markets/{condition_id}/book

    Order-book snapshot.

  • GET /v1/markets/{condition_id}/candles

    Price candles.

  • GET /v1/prices-history

    Price history.

Reference

Orders

  • POST /v1/orders

    Market or limit orders with FOK, IOC or GTC.

  • POST /v1/orders/batch

    Several orders in one call (batch size by tier).

  • GET /v1/orders

    Your orders, by status.

  • DELETE /v1/orders/{order_id}

    Cancel one order.

  • POST /v1/cancel-all

    Cancel every open order.

Reference

Account

  • GET /v1/me

    Profile, tier and balance.

  • GET /v1/account/positions

    Open and closed positions.

  • GET /v1/account/portfolio

    Equity and P&L.

  • GET /v1/account/history

    Trade history.

  • GET /v1/export/trades.csv

    Trades as CSV (paid plans only).

Reference

Streams

  • WS /v1/ws/prices

    Live prices for the markets you subscribe to.

  • WS /v1/ws/executions

    Fills on your resting orders.

  • WS /v1/ws/market

    Public Polymarket-shaped market channel.

  • WS /v1/ws/user

    Polymarket-shaped user channel. Authenticate with auth.apiKey in the subscribe message or ?token on connect.

For /v1/ws/prices and /v1/ws/executions, mint a 60-second token with POST /v1/keys/ws-token and pass it as ?token on connect.

Reference

Polymarket-shaped endpoints

  • GET /v1/book

    Order book.

  • GET /v1/price

    Price for a side.

  • GET /v1/midpoint

    Midpoint of the spread.

  • GET /v1/spread

    Best bid to best ask.

  • GET /v1/tick-size

    Minimum price increment.

  • POST /v1/order

    Submit a paper order.

Paths and payloads modelled on the Polymarket CLOB API.

Reference

Webhooks (paid plans)

  • GET/POST /v1/developer/webhooks

    Register an HTTPS endpoint for order.placed, order.filled, order.cancelled, position.settled and wallet.changed. Each delivery is signed with HMAC-SHA256.

Reference

Public reads need no key: market lists, Up/Down markets, tiers and the Polymarket-shaped book and price reads. Authenticated calls take an X-API-Key header. Authentication

API-key orders use the API wallet by default. Set wallet_id to select an eligible SANDBOX wallet. API keys cannot place orders from MAIN. Changes to the API are listed in the changelog.

One package, three ways in

Python clients for new strategies and existing Polymarket code.

$ pip install polysimulator

Version 0.8.0 on PyPI.

polysim_sdk
Sync and async clients plus WebSocket helpers. Handles auth, pacing and back-off on 429 and 5xx.
polysim_clob_client
An interface modelled on Polymarket's py-clob-client.
polysim_polymarket
A paper-mode client modelled on Polymarket's newer Python SDK.
SDK guide
pythonasync
import asyncio
from datetime import datetime, timezone

from polysim_sdk import AsyncPolySimClient


def utc(stamp):
    # A stamp without an offset is UTC; comparing it unconverted raises TypeError.
    when = datetime.fromisoformat(stamp.replace("Z", "+00:00"))
    return when if when.tzinfo else when.replace(tzinfo=timezone.utc)


def open_round(rounds):
    # Rounds are listed before they open: keep the one running now.
    now = datetime.now(timezone.utc)
    for market in rounds:
        try:
            start = utc(market["start_date"])
            end = utc(market["end_date"])
        except (KeyError, AttributeError, TypeError, ValueError):
            continue
        if start <= now < end:
            return market
    raise SystemExit("No live BTC 5-minute round. Try again shortly.")


# Simulated fills against live Polymarket odds
async def main():
    # Reads POLYSIM_API_KEY, and POLYSIM_BASE_URL for staging
    async with AsyncPolySimClient() as ps:
        rounds = await ps.list_updown(asset="BTC", interval="5M", live=True)
        market = open_round(rounds)
        order = await ps.place_order(
            market_id=market["condition_id"],
            side="BUY", outcome="Up", quantity=10,
            order_type="market", price="0.99",  # worst-acceptable fill
        )
        if order["status"] == "FILLED":
            print("filled", order["quantity"], "@", order["price"], "order", order["order_id"])
        else:
            print("not filled:", order["status"], order.get("cancelled_reason"), "order", order["order_id"])


asyncio.run(main())

The async example also selects a live window. See the live five-minute Bitcoin Up/Down market.

Plans and limits

Every account gets the free API sandbox. Developer and Professional raise the limits for bots that run every day.

Read from GET /v1/keys/tiers
PlanFreeDeveloperProfessionalEnterprise
Price$0$49 a month or $490 a year$199 a monthContact us
Requests a second23060100
Requests a minute1201,8003,6006,000
WebSocket connections151050
Batch size1151525
Open orders202005005,000
Orders a day100No capNo capNo cap
API wallet$1,000$10,000$25,000Custom
Get accessCreate a free keySee Developer pricingSee Professional pricingTalk to us

Orders a day counts accepted orders per UTC day across all of an account's keys; cancels and rejected orders do not count.

Plus is the plan for trading in the web app, not an API plan: every account, Plus included, can use the free API sandbox. Keys still on the Plus tier keep its limits. Plus tier: 30 requests a second, 1,800 a minute, 3 WebSocket connections, batches of 5. The API console shows the limits of each key.

Over the limit, the API answers 429 with Retry-After. X-RateLimit-Remaining tells you what is left.

Start building.

Quickstart

Install, key, first order, first stream.

API console

Create keys, see usage and limits.