Unified Polymarket command gateway. Read market data, inspect CLOB depth, and run authenticated trading from one HTTP service.
Open these directly for health and command discovery.
| Method | Path | Description |
|---|---|---|
| GET | /health | Service health |
| GET | /api/v1/commands | Command list |
| GET | /api/v1/commands/:command | Single-command details and examples |
| GET | /api/v1/manifest | Full command metadata catalog |
| GET | /api/v1/events/stream | Realtime event stream (SSE) |
| POST | /api/v1/commands/execute | Execute command |
Run commands directly on the page without writing curl.
Follow read-only first, then authenticated trading.
markets.list -> clob.book -> data.positionswallet.info -> approve.check -> clob.createOrderNo 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}}'
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"
}}'
Most-used command namespaces.
markets.* / events.* / tags.* / series.*data.* analytics and address-level insightsclob.* public market data and private executionapprove.* and ctf.* on-chain operationsBilingual docs and curl cookbook.
Common errors and immediate fixes.
UNKNOWN_COMMAND: verify command name from /api/v1/commandsVALIDATION_ERROR: payload shape/type mismatch in paramsWALLET_REQUIRED: missing runtime wallet secrets for auth-required commandsUPSTREAM_ERROR: retry and reduce burst concurrency to CLOB/Gamma/Data upstreamsUsed by examples on this page.
export BASE_URL="https://polygate.w0x7ce.eu"