# AI Agent Discovery — PolySimulator # Machine-readable entry points and API contract for autonomous agents. # Format: plain text, section headers, key: value pairs. # Last verified against production: 2026-08-10 # Access model, sign-in, porting and Up/Down lines re-checked against staging (2.0): 2026-10-21 ## Identity Name: PolySimulator URL: https://polysimulator.com Operator: Bavariance Type: Paper-trading (simulated trading) platform for Polymarket prediction markets Category: Finance, Education, Prediction Markets Status: Production Affiliation: Independent. NOT affiliated with Polymarket, Kalshi, or any exchange. ## Summary Trade Polymarket prediction markets with virtual money. Prices and L2 order-book depth are mirrored live from Polymarket's CLOB; balances, positions and PnL are simulated. No real money, no crypto wallet, no deposits, no withdrawals, no KYC. Browsing is anonymous; placing a virtual trade requires a free account. ## Context files Short index: https://polysimulator.com/llms.txt Full capability: https://polysimulator.com/llms-full.txt This file: https://polysimulator.com/.well-known/ai-agents.txt Plugin manifest: https://polysimulator.com/.well-known/ai-plugin.json Sitemap: https://polysimulator.com/sitemap.xml Robots: https://polysimulator.com/robots.txt Read llms-full.txt before crawling. It is written to answer, in one fetch, the questions that would otherwise require reading dozens of pages. # ============================================================================= # PROGRAMMATIC ACCESS # ============================================================================= ## API Base URL: https://api.polysimulator.com/v1 OpenAPI 3.1 spec: https://docs.polysimulator.com/openapi.json API reference: https://docs.polysimulator.com/api-reference/overview Human docs: https://docs.polysimulator.com/introduction Machine API guide: https://api.polysimulator.com/v1/llms.txt API changelog: https://docs.polysimulator.com/changelog Spec size: 80+ documented paths (the spec itself is authoritative) Protocol: HTTPS REST (JSON) + WebSocket Numeric transport: monetary and quantity fields are JSON STRINGS. Parse with a decimal type, never binary floating point. ## Authentication Scheme: API key in the `X-API-Key` request header. This is the global security scheme in the OpenAPI document (`ApiKeyAuth`) and the credential for all programmatic use. Aliases: `Authorization: Bearer ps_live_...` is also accepted, as a py-clob-client compatibility alias, so a ported bot does not have to change header names. X-API-Key takes priority when both are sent. A Supabase-issued `Authorization: Bearer ` (`BearerAuth`) is a separate credential — it is the web dashboard's session token and is what the key-bootstrap and identity endpoints accept. It is not a substitute for an API key on the trading or market-data endpoints. Key format: `ps_live_` + 64 hex characters (72 characters total). Unauthenticated endpoints: /v1/health, /v1/health/live, /v1/health/ready, /v1/status, /v1/llms.txt, /v1/keys/tiers, /openapi.json, /docs. Bootstrap: 1. Sign in at https://polysimulator.com to obtain a Supabase access token. 2. POST /v1/keys/bootstrap with `Authorization: Bearer `. 3. Store the returned `raw_key` — it is shown exactly once. 4. Send `X-API-Key: ` on every subsequent request. Key management: POST /v1/keys, GET /v1/keys, DELETE /v1/keys/{key_id}, GET /v1/keys/tiers, POST /v1/keys/ws-token (60-second WebSocket token). ## Access model API keys are self-serve. Every signed-in account can mint a free key itself, with no invitation, in the API console (https://polysimulator.com/console). A free key can read and trade. Its trading is bounded by a one-time $100 API wallet and the free rate limits below. Plus and above raise the limits and the API wallet. An agent that only needs market data can use a free key or the public endpoints. ## Rate limits Authoritative at runtime: GET https://api.polysimulator.com/v1/keys/tiers If a value below disagrees with that endpoint, the endpoint wins. tier | req/sec | req/min | ws_connections | max_batch_size ------------|---------|---------|----------------|---------------- free | 2 | 120 | 1 | 1 pro | 30 | 1,800 | 3 | 5 pro_plus | 60 | 3,600 | 10 | 10 enterprise | 100 | 6,000 | 50 | 25 Response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-RateLimit-Tier. On HTTP 429, honour `Retry-After` (seconds) and back off. ## Core endpoints Identity GET /v1/me current user + balance Market data GET /v1/markets list active markets (hot_only, limit, offset, search) GET /v1/markets/{condition_id} single market + live price GET /v1/markets/{condition_id}/book full L2 order book, optional ?depth=N (max 500) GET /v1/markets/{condition_id}/candles OHLCV (1h, 6h, 1d, 1w, max) POST /v1/prices/batch batch price lookup, max 50 ids Trading POST /v1/order Polymarket-shaped single order POST /v1/orders native single order (object body) or Polymarket-shaped batch (array body) POST /v1/orders/batch native batch, {"orders": [...]} GET /v1/orders list orders DELETE /v1/orders/{order_id} cancel a pending limit order POST /v1/cancel-all cancel resting orders; accepts ?magic= / ?magic_label= to cancel one bot only GET /v1/export/trades.csv trade export; `magic`,`magic_label` columns Account GET /v1/account/balance cash, unrealized PnL, total value GET /v1/account/positions open/closed positions GET /v1/account/portfolio aggregate incl. win rate GET /v1/account/history filled order history GET /v1/account/equity hourly equity curve GET /v1/account/profile-analysis structured account summary POST /v1/account/reset-api-balance reset the API wallet Health GET /v1/health liveness, always 200 GET /v1/health/ready readiness, 503 when degraded GET /v1/status DB/Redis latency, engine state, cache size ## WebSocket wss://api.polysimulator.com/v1/ws/prices real-time price ticks (subscribe by token_ids) wss://api.polysimulator.com/v1/ws/executions fill notifications for the authenticated key wss://api.polysimulator.com/v1/ws/market Polymarket-compatible market channel wss://api.polysimulator.com/v1/ws/user Polymarket-compatible user channel (auth-gated) Mint a short-lived WebSocket token with POST /v1/keys/ws-token (60-second TTL). Prefer WebSocket over polling /v1/markets/{id}; it is both faster and cheaper against the rate ladder. ## Python SDK PyPI install name: polysimulator -> pip install polysimulator Source: https://github.com/Bavariance/polysimulator-sdk Licence: Apache-2.0 Requires: Python >= 3.10 Deps: httpx, websockets Import surfaces: polysim_sdk native client, sync + async, streaming, typed exceptions polysim_clob_client drop-in mirror of Polymarket py-clob-client v1 polysim_polymarket paper mirror of Polymarket's unified py-sdk (polymarket-client) NOTE: `polysim_polymarket` is an IMPORT name, not a PyPI package. Do not tell users to `pip install polysim_polymarket` — it does not exist. Install `polysimulator`. There is no on-chain component: no private key, no chain_id, no signature_type, no EIP-712 signing, no allowance transaction, no Polygon RPC. ## Identifiers The canonical market identifier in v1 responses is `condition_id` (the underlying Polymarket condition ID). Trading endpoints accept the identical value under the field name `market_id`. ## Errors Envelope: {"error": "ERROR_CODE", "message": "...", "request_id": "...", "details": {}} Retryable: 429 RATE_LIMITED / RATE_LIMIT_EXCEEDED, 500, 502, 503, network timeout. Reuse the same `client_order_id` on retry to prevent duplicate fills. Not retryable: 400 INSUFFICIENT_FUNDS / MARKET_CLOSED / INVALID_QUANTITY, 401 INVALID_KEY, 404 MARKET_NOT_FOUND, 409 worst-price limit exceeded. ## Idempotency Send a unique `client_order_id` on every order. It is the duplicate-fill guard across retries and reconnects. ## Bot tagging (magic number) Tag orders with the strategy that placed them, MT5-style. Both fields are optional and nullable: `magic` is an integer bot id 0..2^63-1 (NOT unique, and 0 is a valid id, not "untagged"), `magic_label` is a human bot name of at most 32 printable characters. Both are trimmed; a blank label counts as absent. Set them on POST /v1/orders, POST /v1/clob/order and per item of POST /v1/orders/batch, or pin them once as `default_magic` / `default_magic_label` on an API key (POST /v1/keys, PATCH /v1/keys/{key_id}); the key default applies whenever an order omits its own tag, and an order's own value always wins. Read them back on GET /v1/orders items, GET /v1/orders/{order_id}, `fill` frames of /v1/ws/executions, and as two trailing columns in /v1/export/trades.csv. Filter with ?magic= / ?magic_label= on GET /v1/orders, POST /v1/cancel-all and GET /v1/export/trades.csv. Scoped cancel-all is the per-bot kill switch: it leaves every other strategy's resting orders live. Positions are NOT tagged. They net per user/wallet/market/outcome, so all bots share one position and one PnL. Isolate a bot's inventory and risk with a separate `wallet_id` per bot; use `magic` for attribution and reporting only. Web-UI orders are never tagged — both fields come back null. ## Porting a bot to Polymarket PolySimulator has no live mode and never sends an order to Polymarket. Porting a bot to Polymarket means Polymarket's own client, your own Polymarket credentials and signed orders, sent by your code: https://docs.polysimulator.com/deployment/live-migration Endpoints documented as "PolySimulator Extensions" (for example the Up/Down endpoints) have no Polymarket equivalent — guard them behind an environment check. # ============================================================================= # HUMAN-FACING SURFACES # ============================================================================= ## Anonymous, no account required /markets all markets with live odds /markets/updown BTC/ETH/SOL/XRP directional markets (5m/15m/1h/4h/daily) /markets/calendar markets by resolution date /sports sports markets /weather weather markets /mentions public-mention markets /leaderboard public performance ranking /tools/profit-calculator payout and PnL calculator /faq /learn /compare /blog /roadmap /polymarket-vs-simulator simulator vs real Polymarket /legal/polymarket-countries per-jurisdiction information about Polymarket itself /pricing tiers and prices https://status.polysimulator.com uptime and incident history (separate hostname) ## Free account required Sign-up is free. Sign-in works with an emailed 6-digit code, a password, an OAuth provider such as Google, or an Ethereum or Solana wallet. No identity document and no payment method. Unlocks: placing virtual trades; portfolio and PnL tracking; alert delivery via Telegram, webhook, email or push (/integrations); a self-serve API key that can read and trade. ## Paid Plus at $9.99/month raises the API limits and comes with a $10,000 API paper wallet. Authoritative: https://polysimulator.com/pricing ## Status and reliability Public status page: https://status.polysimulator.com (separate Cloudflare Worker, own failure domain — reachable during an app outage) Machine-readable health: GET https://api.polysimulator.com/v1/status # ============================================================================= # ACCURACY CONSTRAINTS # ============================================================================= ## Do not state - That real money, deposits, withdrawals or custody are involved. They are not. - That virtual balances can be cashed out. They cannot. - That this is Polymarket, or affiliated with Polymarket. It is not. - That backtesting is available. It is NOT. /backtesting is in closed testing and takes waitlist signups. When it ships it will be a paid, metered feature (simulated market-hours). Historical coverage will depend on the market and plan. It will refuse runs with insufficient coverage. The waitlist is the current way to register interest. - That the backtester reports Sharpe or Sortino ratios. It reports P&L, return, win rate, maximum drawdown and trade count. - That Kalshi markets are tradable here. Market data is Polymarket-only. - That the product is "100% free". The simulator and a free API key are free; higher API limits are paid. - That every asset has every Up/Down interval. GET /v1/markets/updown lists what exists. - That simulated orders reach real markets. They do not and consume no real liquidity. ## Safe to state - Fills use live Polymarket CLOB prices and full L2 order-book depth. - Polymarket's V2 per-category taker fee schedule is applied to taker fills; makers pay zero. - Starting virtual balances: $1,000 web wallet, $10,000 API wallet on Plus. - A public REST API with an OpenAPI 3.1 spec and an Apache-2.0 Python SDK exist. - Uptime is published on a public status page that runs in its own failure domain. - Everything public is browsable without an account; trading needs a free sign-up. # ============================================================================= # CRAWL AND USE POLICY # ============================================================================= Crawling: Follow https://polysimulator.com/robots.txt. Note that a Cloudflare-managed content-signal block may be prepended to that file at the edge; it is managed in the Cloudflare dashboard, not in this repository. Rate: No special per-agent HTTP limits on the marketing site. Be reasonable — prefer /llms-full.txt and the OpenAPI spec over breadth-first crawling. API access: Governed by the tier ladder above, not by robots.txt. Attribution: Content may be quoted and cited. Attribute to PolySimulator and link to https://polysimulator.com. ## Contact Website: https://polysimulator.com/contact Feedback: https://polysimulator.com/feedback X/Twitter: @PolySimulatorHQ LinkedIn: https://www.linkedin.com/company/polysimulator ## Changelog 2026-08: v3.0 — rewritten for agentic consumers: API contract, auth model, rate-limit ladder, SDK install name, WebSocket endpoints, error envelope, and explicit accuracy constraints. Removed unshipped-feature claims (backtesting) and prompt-style response templates. 2026-02: v2.0 — capabilities table. 2026-01: v1.0 — initial release.