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.
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 Ireland
-
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 Jun 17, 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
-
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- 2 replies
- 4 reposts
- 19 likes
- 1K 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
- 68 replies
- 18 reposts
- 103 likes
- 7.1K views
-
Compare USD traded vs Notional volume via our explorer
https://explorer.struct.to/builders- 1 replies
- 9 likes
- 551 views
-
the most overlooked finance opportunity right now is prediction markets infrastructure
billions in volume today but trillions in addressable volume once the regulation clears
every quant firm sees this and retail still thinks it was an election trade.- 18 replies
- 5 reposts
- 71 likes
- 5.4K views
-
Builders, reach out to us to be listed on our explorer!- 3 replies
- 20 likes
- 2.4K views
-
- 4 replies
- 18 likes
- 803 views
-
polymarket CLOB v2 now lets you track builder-specific activity onchain
every order attributed to the builder who originated it
the explorer just updated to index all of this. first time you can see exactly which builders are driving real volume (onchain, not self-reported)
if you're building on polymarket (or within their eco) and want to get listed, DM
- 13 replies
- 2 reposts
- 107 likes
- 10.8K views
-
What our portfolio has been up to this week:
🔹 @FolksFinance went live with cross-chain WBTC and WETH on Algorand via Wormhole NTT, bringing native BTC and ETH lending to Algorand without a wrapper hop.
🔹 @alloxdotai opened its largest campaign to date: $500,000 in rewards across six weeks, for on-chain portfolios built on BNB Chain via PancakeSwap.
🔹 @structbuild shipped a full Polymarket Explorer upgrade, now covering market pages, liquidity rewards, recent trades, and category tags, all running on the Struct SDK.
🔹 @KaspaCom launched its first stablecoin pool, with USDC live on the KaspaCom DEX, paired with liquidity rewards and 3x KCOM points for early LPs.
🔹 @BitSafe_Finance CEO Aki Balogh joined FintechTV from the NYSE floor this week to unpack CBTC on Canton, and the thesis that institutional Bitcoin on-chain needs its own security model.- 7 replies
- 27 reposts
- 41 likes
- 1.5K 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
HuskyWeatherBot
Traders who follow Polymarket temperature markets get live weather data, model forecasts,…
-
Compare
Chance
Traders who have a clear market thesis but no time to monitor positions can hand executio…
-
Compare
Predict Parity
Traders who want consolidated market data, trader leaderboards, and on-chain analytics ac…
-
Compare
Polymarket Analytics
Traders who want to copy top Polymarket wallets or spot fading opportunities use Polymark…
Ready to try Struct?
Open the official site and get started in a few clicks.

Leave a review