Quickstart
Get your API key and make your first request in minutes.
Authentication
Secret keys, JWT public keys, and how to call the API from a browser.
API Reference
Browse every endpoint, parameter, and response shape.
Dashboard
Manage your organisation, keys, webhooks, and billing.
Why Struct?
Materialised on write
PnL, leaderboards, positions, and metrics are pre-computed as a single row. Every query is a one-row read, not a scan over months of trades.
One unified API
REST, websockets, and webhooks for every Polymarket entity in one place. No more stitching together gamma, CLOB, the subgraph, and on-chain reads.
Real-time streams
Push delivery for trades, prices, PnL, positions, and order books over websockets, plus 30+ in-app alert types and 30+ webhook event types.
Struct vs. Polymarket’s direct APIs
Use cases
Trading platforms
Custom trading UIs, aggregators, and copy-trading powered by real-time Polymarket data.
AI agents
Autonomous agents that research, monitor, and trade on prediction markets.
Analytics & research
Dashboards, quant research, and large-scale historical analysis.
Start building
TypeScript SDK
Typed clients for REST, rooms, alerts, and webhook management.
WebSockets
Subscribe to trades, prices, PnL, positions, order books, and metric streams.
Webhooks
HTTP event delivery for trades, milestones, spikes, PnL crossings, and market lifecycle.
Guides
Best practices, error handling, rate limits, and recipes for common integrations.