PolySimulator HFT API v1
Build, test, and deploy prediction market trading bots in a risk-free environment powered by real-time Polymarket data. When you’re ready, switch to live trading by changing a single environment variable.Quick Start
Get your API key and place your first trade in under 2 minutes.
API Reference
Interactive playground — test every endpoint with your API key.
Example Bot
Copy-paste a working Python trading bot and start experimenting.
Why PolySimulator?
| Feature | Description |
|---|---|
| Real Data | Live mid-prices, bids, asks from Polymarket’s CLOB order book |
| Book Walking | Market orders fill against real order book depth — no infinite liquidity |
| Slippage Protection | price field acts as worst-price limit — identical to Polymarket |
| Limit Orders | GTC, IOC time-in-force with sub-second matching engine |
| Batch Orders | Up to 25 orders per request (Enterprise tier; tier-dependent — free=1, pro=5, pro_plus=10, enterprise=25; see GET /v1/keys/tiers) |
| WebSocket Feeds | Real-time price ticks and execution notifications |
| OHLCV Candles | Historical candlestick data for backtesting |
| CLOB-Compatible | /v1/clob/order mirrors Polymarket’s schema — URL-swap migration |
| String Numerics | All price/size/balance values are strings — no float precision loss |
Architecture Overview
Base URL
| Environment | URL |
|---|---|
| Production | https://api.polysimulator.com |
/v1 — append the version + path to the
base, e.g. GET https://api.polysimulator.com/v1/health. (The one
documented exception is /api/beta/cohort-status.) Keep the base URL
without /v1 so each path can prepend its own /v1 — that’s the
convention the Quick Start and
API Reference use.
One Config Change to Go Live
Build with PolySimulator
Develop and test your bot against the virtual API with a simulated API wallet
(25,000 on Pro+; Free-tier keys are read-only with no API wallet).
AI Agent Integration (MCP)
PolySimulator docs are indexed for two of the most common AI-coding-tool integrations. Either gives Cursor, Windsurf, Claude Desktop, Continue, and similar assistants live access to the current API schema.Mintlify MCP
Context7
The docs are also published to Context7 (verified, trust score 7.5+). If your tool already has Context7 wired up, appenduse context7 to any prompt and the latest PolySimulator
docs are pulled into the conversation:
- “Write a Python script to place a limit order on PolySimulator”
- “What rate limits apply to the free tier?”
- “Show me the WebSocket price feed message format”
- “How do I migrate a
@polymarket/clob-clientbot to PolySimulator?”
What’s Next?
Authentication
Learn how API key auth works and create your first key.
Place a Trade
Execute market and limit orders with string-precision numerics.
WebSocket Feeds
Subscribe to real-time price updates and execution notifications.
Error Handling
Handle rate limits, errors, and build retry strategies for your bot.