Struct
Struct indexes all of Polymarket's on-chain history and serves it through a unified API, real-time streams, and pre-computed analytics.

Struct Polymarket Data API: Real-Time Indexing and PnL Analytics
What is Struct?
Struct is a Polymarket data API that gives developers and traders access to unified endpoints, real-time WebSocket streams, webhooks, and block-level PnL accounting across the full history of on-chain activity.
Ready to try Struct?
Open the official site and get started in a few clicks.
Struct Overview
Struct is a data infrastructure layer built for Polymarket. It indexes the full on-chain history of the platform, from the earliest contracts forward, and delivers that data through a unified REST API, real-time WebSocket streams, and webhooks. The core problem it solves is straightforward: raw Polymarket data is fragmented, slow to update, and missing the fee and yield details that matter for accurate performance tracking. Struct replaces that with enriched, pre-computed records that answer common questions in a single query.
The people who get the most out of it are developers building trading bots, copy-trading systems, analytics dashboards, and leaderboards on top of Polymarket. Quant traders and researchers who need reliable historical data for backtesting will find the full indexed history useful, with reported backfill speeds around 24,000 rows per second for initial loads. AI agent builders also have a clear path in, since the live dataset supports natural-language queries against current market state and trader behavior without custom pipeline work.
The REST API covers events, markets, trades with fee breakdowns, positions, trader summaries, and leaderboards. Most queries resolve instantly because the rows are materialized, so a wallet with millions of trades does not slow things down. WebSocket streams push trade updates, price movements, and PnL changes within roughly 50 milliseconds of on-chain settlement. Webhooks fire on dozens of event types, including market creation, large trades, probability spikes, and PnL threshold crossings, with signed payloads for verification. The TypeScript SDK handles authentication and response typing so wiring up new endpoints stays clean.
What separates Struct from pulling data directly from native sources is the block-level PnL engine introduced in v0.6. Realized and unrealized components are tracked separately, and every fee paid, rebate received, yield earned, and reward distributed is included. The result is a PnL number that reflects actual economic outcomes rather than a simplified cost-basis snapshot that ignores ongoing costs while positions stay open. Scoped leaderboards, PnL candles, drawdown metrics, and exit history with reasons are all available without extra calculation on your side.
Users tracking their own results across many positions benefit from the same accuracy. As one trader put it after the latest update, the PnL there includes fees and everything, which is far better than the default view. Developers who have integrated the SDK and webhooks into copy-trading setups report that new market alerts and PnL crossing notifications arrive instantly, replacing polling loops and reducing the number of extra API calls needed to get enriched trade context.
Open-source examples, a trader explorer dashboard and a Telegram scanner bot, are available to fork or study. For anyone already building on Polymarket who has run into latency issues, incomplete fee accounting, or the overhead of maintaining a custom index, Struct addresses those gaps directly.
Struct Key features
-
Unified REST API
A single set of endpoints covers events, markets, trades, positions, trader summaries, and leaderboards. Materialized rows mean most queries resolve instantly, so you skip writing custom logic to combine multiple upstream sources.
-
Real-Time WebSockets
Streams push trades, price movements, position updates, and PnL changes within roughly 50 milliseconds of on-chain settlement. Mempool data is also available, giving earlier visibility than waiting for final block confirmation.
-
Block-Level PnL
The PnL engine tracks realized and unrealized components separately and includes every fee, rebate, yield, and reward that affects actual outcomes. The numbers reflect economic reality rather than simplified cost-basis snapshots.
-
Event-Driven Webhooks
Push notifications cover dozens of event types, including market creation, large trades, probability spikes, and PnL threshold crossings. Signed payloads let you verify origin, and built-in retry handling reduces the work of maintaining your own notification layer.
-
Full Historical Index
Struct has indexed Polymarket activity from its first contracts onward and supports initial loads at around 24,000 rows per second. This gives backtesting and machine-learning work years of depth without the cost of building or maintaining a custom index.
Struct Screenshots
Struct User Reviews
-
bro i use @askginadotai website for trades but if u want to see ur stats then u can use @structbuild website. just add ur address in the end "https://explorer.struct.to/traders/"
View on X ↗
The PnL there actually includes fees and everything. Way better than the default view. -
Finally a dashboard that shows my real Polymarket PnL. After the latest update it tracks everything down to the block — fees paid, rebates, yield, the works. No more guessing whether I'm actually up or just seeing inflated numbers. Explorer makes it dead simple too.
View on X ↗ -
Integrated Struct's SDK and webhooks into my copy-trading setup last month. New market alerts and PnL crossing notifications hit instantly instead of the old polling mess. Latency is noticeably lower and the enriched trade data (fee splits, builder context) saves me a ton of extra calls. Solid foundation if you're building anything serious on Polymarket.
View on X ↗
Is Struct safe & legit?
Struct is a data infrastructure service built by the structbuild team, a developer-focused group that maintains public GitHub repositories, publishes detailed changelogs, and has an active presence in the Polymarket builder community. The project has no known red flags: no reports of data corruption, misleading claims, or prolonged outages appear in public channels, and community members have shared positive experiences with its accuracy and reliability. It does not touch your funds or require a wallet connection, so the main due diligence is reviewing rate limits and billing for your expected usage before scaling up.
X account intel @structbuild
-
Based in United Kingdom
-
Joined X February 2026 4 months ago
-
Username changes 1 rename last on Feb 16, 2026
-
Signup source Web
Public profile signals from X. Use as one input alongside other due-diligence.
Wallet blacklist scan checked Jul 15, 2026
- MetaMask Not flagged
- Phantom Not flagged
- ScamSniffer Not flagged
- EtherAddressLookup Not flagged
- Keplr Wallet Not flagged
Domain www.struct.to checked against public crypto wallet blacklists.
Struct Updates
-
We benchmarked @Polymarket RTDS feed against the Struct Trades WebSocket across ~15,000 live trades.
Struct's confirmed feed leads by ~0.5s and mempool feed by ~ 2.6s.
Take a deeper dive into the upgrade 👇
1 more in this thread
- confirmation is faster ~90% of the time
- pending (mempool) is faster 100% of the time
- 100% of the trades RTDS reported in every window
blog: https://www.struct.to/blog/polymarket-rtds-vs-struct-trades-ws
docs: https://docs.struct.to/websockets/rooms/trades- 2 replies
- 1 reposts
- 10 likes
- 141 views
-
Introducing the rebuilt Nomos Leaderboard, powered by @structbuild.
Every Polymarket trader, ranked with the numbers that actually matter: exact PnL, win rate, profit factor, ROI, hold times, best win. Across 1d, 7d, 30d, or all time.
Real-time data, real insight. Updated live, so the rankings move the second the money does.
Find your edge. Trade it on Nomos.- 1 replies
- 5 reposts
- 11 likes
- 338 views
-
Been a pleasure working with these guys throughout our journey. Intricacies, level of access and overall execution has been phenomenal. To many more successes 🥂- 8 likes
- 663 views
-
- 48 replies
- 15 reposts
- 68 likes
- 1.6K views
-
- 4 replies
- 17 likes
- 524 views
-
Introducing our biggest update yet.
Real-time PnL for all of Polymarket. Updated every block.
Not refreshed every 30 minutes. Not recomputed on request. Updated instantly.
No one else has this... 👇
1 more in this thread
Full breakdown
– 20+ new API endpoints
– 6 new WS streams + new webhooks
– Indexed from the very first Polymarket contract
– Instant lookups whether a wallet has 10 trades or 10M
Blog: https://www.struct.to/blog/v0.6-release
Explorer: https://explorer.struct.to/traders?timeframe=lifetime- 5 replies
- 4 reposts
- 31 likes
- 2.3K views
-
Excited for launch soon. We have partnered with many of the best providers in the space including @structbuild to deliver the ultimate trading experience for our traders.
Trade crypto up/down with candlestick charts (up to 1s) and sub second data feeds with up to $150,000 Monday
Only with @FundingPredicts
- 60 replies
- 18 reposts
- 82 likes
- 7.3K views
-
Compare USD traded vs Notional volume via our explorer
https://explorer.struct.to/builders- 1 replies
- 9 likes
- 679 views
Struct Reviews & Comments
No reviews yet. Be the first to share your experience.
Struct alternatives
Other Polymarket tools that do a similar job. Compare and pick what fits your workflow.
-
Compare
Polymarket Analytics
Traders who want to copy top Polymarket wallets or spot fading opportunities use Polymark…
-
Compare
Predexon
Predexon gives developers one API to read data and execute trades across Polymarket, Kals…
-
Compare
Polycoolapp
Traders who want to copy elite Polymarket wallets can do it in one tap, directly inside T…
-
Compare
Predict Parity
Traders who want consolidated market data, trader leaderboards, and on-chain analytics ac…
Recommended reading
In-depth guides for Data & APIs — get more out of tools like Struct.
-
Tool Reviews
Best Polymarket Analysis Tools in 2026: Explorers, Whale Trackers, and Dashboards
See which Polymarket analysis tools spot whale trades, rank top wallets, and chart market flow. Free options, honest drawbacks, a…
8 min read -
Tool Reviews
How to Find Top Polymarket Wallets for Copy Trading (2026)
Find the best Polymarket wallets to copy trade. Use free leaderboards and wallet trackers to spot smart money, read win rates, an…
10 min read -
Beginners
Polymarket Weather Markets: A Data-First Trading Guide
Learn how to trade Polymarket weather markets with a repeatable workflow: read the station rules, stack ECMWF and METAR forecasts…
8 min read
Ready to try Struct?
Open the official site and get started in a few clicks.





Leave a comment