Overview
Prediction markets are a natural fit for AI agents. Structured outcomes, real-time pricing, and rich historical data make them ideal for automated research and trading. Struct provides the data infrastructure agents need to operate on Polymarket, and the docs are built for agents with copy-ready context on every page.What You Can Build
Trading Agents
Autonomous agents that monitor markets, evaluate probabilities, and execute strategies on the typed SDK.
Research Agents
Agents that ingest market data and history to find movers and generate forecasts.
Monitoring Agents
Agents that watch for new markets, large trades, or price crossings and act on them.
Market Making Bots
Bots that quote prices from the live order book and trade stream.
Event-driven agent triggers
Instead of polling, let events wake your agent up:- Price thresholds: trigger a workflow the moment a market crosses a level. Combine with fire-and-delete for single-shot triggers an agent arms and forgets.
- Whale trades and spikes: react to large or fast-moving activity.
- Market lifecycle: settle, re-evaluate, or open positions when a market resolves or is disputed.
Relevant Struct Features
- REST API: Give agents structured access to markets, events, and trades, and trader positions.
- Websockets: Feed agents real-time price and trade streams for fast decisions.
- Webhooks: Trigger agent workflows when specific events occur, with no polling loop required.
- TypeScript SDK: A typed client with authentication, REST, and streaming built in.
- Indexing & Backfilling: Load historical data into your own database for backtesting and training.
Guides to get started
Find market movers
Rank the biggest moves across markets.
Trending events
Track what is heating up in real time.
Mobile / push alerts
Notify on a price crossing via webhook.
API cookbook
Common request recipes to get going fast.