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.
Install the SDK
$ pip install polysimulatorVersion 0.8.0 on PyPI, Python 3.10 or newer.
Get a free key
Sign in and create one in the API console.
$ export POLYSIM_API_KEY=ps_live_...Place a paper order
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.
- 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
# 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
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
| Field | What it tells you |
|---|---|
status | A 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. |
price | Fill price when executed. A pending order shows its submitted limit or market price cap. |
quantity | Shares filled when executed, or shares requested while pending. |
notional | Executed value before fees, or the submitted limit or cap times the requested quantity while pending. |
fee | Fee charged on the fill. |
price_source | Which price was used. Examples include book_walk, best_bid_ask, cached and midpoint. |
slippage_bps | For 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_ms | Age of the price source used for the fill, in milliseconds: the source named in price_source. Null when the age is unknown. |
spread_bps | Book spread at fill time. |
impact_bps | How far the average fill sat from the best price. |
book_walk_levels | Order-book levels the fill consumed. |
cancelled_reason | Why an order was cancelled, e.g. price_did_not_cross or fok_insufficient_depth. |
account_balance | Cash 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/marketsList and search markets.
GET /v1/markets/{condition_id}One market with its question, outcomes and prices.
GET /v1/markets/updownCrypto Up/Down windows.
GET /v1/markets/{condition_id}/bookOrder-book snapshot.
GET /v1/markets/{condition_id}/candlesPrice candles.
GET /v1/prices-historyPrice history.
Orders
POST /v1/ordersMarket or limit orders with FOK, IOC or GTC.
POST /v1/orders/batchSeveral orders in one call (batch size by tier).
GET /v1/ordersYour orders, by status.
DELETE /v1/orders/{order_id}Cancel one order.
POST /v1/cancel-allCancel every open order.
Account
GET /v1/meProfile, tier and balance.
GET /v1/account/positionsOpen and closed positions.
GET /v1/account/portfolioEquity and P&L.
GET /v1/account/historyTrade history.
GET /v1/export/trades.csvTrades as CSV (paid plans only).
Streams
WS /v1/ws/pricesLive prices for the markets you subscribe to.
WS /v1/ws/executionsFills on your resting orders.
WS /v1/ws/marketPublic Polymarket-shaped market channel.
WS /v1/ws/userPolymarket-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.
Polymarket-shaped endpoints
GET /v1/bookOrder book.
GET /v1/pricePrice for a side.
GET /v1/midpointMidpoint of the spread.
GET /v1/spreadBest bid to best ask.
GET /v1/tick-sizeMinimum price increment.
POST /v1/orderSubmit a paper order.
Paths and payloads modelled on the Polymarket CLOB API.
ReferenceWebhooks (paid plans)
GET/POST /v1/developer/webhooksRegister an HTTPS endpoint for order.placed, order.filled, order.cancelled, position.settled and wallet.changed. Each delivery is signed with HMAC-SHA256.
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 polysimulatorVersion 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.
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.
| Plan | Free | Developer | Professional | Enterprise |
|---|---|---|---|---|
| Price | $0 | $49 a month or $490 a year | $199 a month | Contact us |
| Requests a second | 2 | 30 | 60 | 100 |
| Requests a minute | 120 | 1,800 | 3,600 | 6,000 |
| WebSocket connections | 1 | 5 | 10 | 50 |
| Batch size | 1 | 15 | 15 | 25 |
| Open orders | 20 | 200 | 500 | 5,000 |
| Orders a day | 100 | No cap | No cap | No cap |
| API wallet | $1,000 | $10,000 | $25,000 | Custom |
| Get access | Create a free key | See Developer pricing | See Professional pricing | Talk 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.
Status and changes
Live status. Changelog and stability policy.