PolyGate

Unified Polymarket command gateway. Read market data, inspect CLOB depth, and run authenticated trading from one HTTP service.

Runtime: Cloudflare Workers Commands: 94 Base path: /api/v1 Base URL: https://polygate.w0x7ce.eu

Endpoints

Open these directly for health and command discovery.

MethodPathDescription
GET/healthService health
GET/api/v1/commandsCommand list
GET/api/v1/commands/:commandSingle-command details and examples
GET/api/v1/manifestFull command metadata catalog
GET/api/v1/events/streamRealtime event stream (SSE)
POST/api/v1/commands/executeExecute command

Web Console

Run commands directly on the page without writing curl.

Usage Flows

Follow read-only first, then authenticated trading.

  • Read-Only Quickstart: markets.list -> clob.book -> data.positions
  • Trading Quickstart: wallet.info -> approve.check -> clob.createOrder
  • Auth-required commands need `POLYMARKET_PRIVATE_KEY`
  • Use small size test orders before production scale.

Read-Only Quickstart

No wallet required.

curl -X POST "https://polygate.w0x7ce.eu/api/v1/commands/execute" \
  -H 'content-type: application/json' \
  -d '{"command":"markets.list","params":{"limit":10}}'

Trading Quickstart

Requires runtime secrets.

curl -X POST "https://polygate.w0x7ce.eu/api/v1/commands/execute" \
  -H 'content-type: application/json' \
  -d '{"command":"clob.createOrder","params":{
    "tokenID":"123456789","side":"BUY","price":0.42,"size":10,"orderType":"GTC"
  }}'

Command Families

Most-used command namespaces.

  • markets.* / events.* / tags.* / series.*
  • data.* analytics and address-level insights
  • clob.* public market data and private execution
  • approve.* and ctf.* on-chain operations

Documentation

Bilingual docs and curl cookbook.

Troubleshooting

Common errors and immediate fixes.

  • UNKNOWN_COMMAND: verify command name from /api/v1/commands
  • VALIDATION_ERROR: payload shape/type mismatch in params
  • WALLET_REQUIRED: missing runtime wallet secrets for auth-required commands
  • UPSTREAM_ERROR: retry and reduce burst concurrency to CLOB/Gamma/Data upstreams
  • Production: protect trading endpoints with Access, WAF, and strict rate limits

Base URL

Used by examples on this page.

export BASE_URL="https://polygate.w0x7ce.eu"