
Announcing Struct v0.6: PnL, Down to the Block
v0.6 rebuilds Struct's PnL from the ground up. Exactly what a trader has made or lost on Polymarket, updated every block, counting every fee, rebate, reward, and yield payment.
Real-time data for every event, market, position, trader, and more on Polymarket. Built for agents, traders, and developers.
Powerful Tools, Easy to Use
Integrate our API or chat with AI — get started in minutes.
import { StructClient } from "@structbuild/sdk";
const client = new StructClient({ apiKey: process.env.STRUCT_API_KEY });
const events = await client.events.list({
status: "active",
sort_by: "volume",
timeframe: "1h",
limit: 25,
});
for (const event of events.data) {
console.log(event.title, event.volume, event.markets.length);
}Access every event, market, position, trader, oracle event, series, tags, candlesticks, and more.
Learn moreTrigger on market creations, resolutions, price updates, thresholds, and many more custom events.
Learn moreReal-time price streams on all up/down markets with strike prices and target thresholds.
View docsFull type safety, autocompletion, and seamless integration into your codebase.
View docsFocus on building your product and idea, not the infrastructure. Struct handles the rest.
Real-time market intelligence, automated alerts, and AI-powered analysis — or build your own trading platform with our API.
Power autonomous agents that research, monitor, and trade on prediction markets.
Run quantitative research, detect insider activity, and analyze prediction market data at any scale — with AI agents or the raw API.
We made it easy to integrate our APIs, Webhooks, SDKs, and more using your existing AI tools.
Connect AI assistants like Claude, Cursor, and Codex directly to live prediction market data through the Model Context Protocol.
Install the Struct skill in Claude Code to scaffold integrations, generate API calls, and work with our SDK using natural language.
If opted in, AI Optimized Responses automatically truncate unnecessary fields, reducing token usage and keeping AI context windows clean.
We've open-sourced various products built on Struct to the community.
Detailed insights into every Polymarket builder, volume, fees, and more.
View productCompare real performance metrics and data coverage across Polymarket data providers.
| Features | Polymarket | Competitor 1 | Competitor 2 | |
|---|---|---|---|---|
Resolution Latency: Time between market resolution on-chain and data availability in APIs. | Instant | ~2min | ~2min | ~2min |
PnL Latency: Time between order placement and profit/loss calculation. | Instant | ~10s cache | N/A | 60m refresh |
Positions Latency: Time between position creation/updates and data availability in APIs. | Instant | ~10s cache | ~10s | ~1s |
PnL Richness: Amount of PnL data available for each account. | Full | Limited | N/A | Full |
PnL History: Live position and PnL data for all token holders. | All-time | All-time | N/A | <30d |
Price Metrics: Amount of price metric timeframes and types available. E.g. 1m, 24h, 7d for markets, events, positions. | 27 | 10 | 4 | 4 |
Websockets: Ability to stream data in real-time using WebSockets. | ||||
Webhooks: Ability to receive data updates via webhooks. | ||||
Managed Backfill: Ability to backfill historical & realtime data into your own database. | ||||
Rate Limits: Maximum number of API requests allowed per second. | No limit | Limited | No limit | No limit |
Multiple Venues: Ability to access data from multiple prediction markets. | Roadmap |
Struct indexed the entire history of Polymarket — every market, event, trade, and trader available through a single API.
Guides, product updates, and deep dives into Polymarket data.

v0.6 rebuilds Struct's PnL from the ground up. Exactly what a trader has made or lost on Polymarket, updated every block, counting every fee, rebate, reward, and yield payment.

Polymarket's biggest infrastructure migration in years cuts over on April 28. Struct already speaks v2, and we're shipping a brand-new analytics namespace and an oracle events stream alongside it.

We just shipped two Websocket endpoints for Polymarket data, including an alerts Websocket that nobody else offers. Plus, webhooks and Websockets are now free for everyone.