Struct

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

Preview of Struct

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.

Launch Struct

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

  • @Mayuritself
    @Mayuritself May 11, 2026

    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/"
    The PnL there actually includes fees and everything. Way better than the default view.

    View on X ↗
  • @degen_pnl_hunter
    @degen_pnl_hunter May 30, 2025

    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 ↗
  • @builds_onchain
    @builds_onchain May 30, 2025

    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 ↗
Used Struct? Share your experience — your review helps other traders decide. Write a review →

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 5 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 29, 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

  1. Struct logo
    struct
    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
    • 11 likes
    • 541 views
  2. Struct logo
    struct
    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
    • 510 views
  3. Struct logo
    struct
    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
    • 772 views
  4. Struct logo
    struct
    Loving @structbuild's portfolio tracking. Updates in real time unlike Polymarket, and has a lot more interesting insights. Highly recommend!
    • 47 replies
    • 13 reposts
    • 62 likes
    • 1.7K views
  5. Struct logo
    struct
    builders across the @PolymarketDevs ecosystem are enjoying all time high volume driven from the world cup and geopolitical events
    https://explorer.struct.to/builders
    • 4 replies
    • 17 likes
    • 569 views
  6. Struct logo
    struct
    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
  7. Struct logo
    struct
    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
    • 16 reposts
    • 76 likes
    • 7.4K views
  8. Struct logo
    struct
    Compare USD traded vs Notional volume via our explorer
    https://explorer.struct.to/builders
    • 1 replies
    • 9 likes
    • 698 views
  9. Struct logo
    struct
    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
    • 72 likes
    • 5.5K views
  10. Struct logo
    struct
    Builders, reach out to us to be listed on our explorer!
    • 3 replies
    • 20 likes
    • 2.5K views
  11. Struct logo
    struct
    Welcoming @kreoapp on our explorer
    the best place to track markets, traders, builders and analyse polymarket
    reach out to get listed!
    https://explorer.struct.to/builders/0x9fedc0b0702ca6cb294e5321d9491b1e38b8bd2b463a7f7b06df8e6d7553cd18?resolution=60
    • 4 replies
    • 18 likes
    • 859 views
  12. Struct logo
    struct
    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.9K views
  13. Struct logo
    struct
    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.6K views
  14. Struct logo
    struct
    Want to earn liquidity rewards but don't know where to begin?
    See every market paying rewards right now
    https://explorer.struct.to/rewards?via=x
    • 2 replies
    • 14 likes
    • 982 views
  15. Struct logo
    struct
    Our Polymarket Explorer just got an upgrade!
    1️⃣ Market Pages
    2️⃣ Liquidity Rewards
    3️⃣ Recent Trades
    4️⃣ New Markets
    5️⃣ Tag/Category Pages
    https://explorer.struct.to/markets
    • 16 likes
    • 722 views
  16. Struct logo
    struct
    New blog post: Building a Polymarket Trader Explorer with the Struct SDK
    Search any trader by name or wallet, explore their full performance history, with PnL charts, heatmap calendars, streaks, and shareable cards.
    All the architecture details are in the post 👇
    https://www.struct.to/blog/building-a-polymarket-trader-explorer
    1 more in this thread
    https://explorer.struct.to/
    • 2 replies
    • 20 likes
    • 1.6K views
  17. Struct logo
    struct
    DOGE, HYPE, and BNB alongside the original 4 are supported via Struct API
    Real-time & historical target/close prices
    https://docs.struct.to/api-reference/assets/get-asset-price-history
    • 2 replies
    • 7 likes
    • 786 views

Struct Reviews & Comments

Rate Struct

5.0 / 5 (1 rating)

No reviews yet. Be the first to share your experience.

Leave a comment

Struct alternatives

Other Polymarket tools that do a similar job. Compare and pick what fits your workflow.

  • Polycoolapp

    Traders who want to copy elite Polymarket wallets can do it in one tap, directly inside T…

    Telegram, Android, iOSFree
    Compare
  • Polymarket Analytics

    Traders who want to copy top Polymarket wallets or spot fading opportunities use Polymark…

    WebFree
    Compare
  • Predexon

    Predexon gives developers one API to read data and execute trades across Polymarket, Kals…

    Web
    Compare
  • Predict Parity

    Traders who want consolidated market data, trader leaderboards, and on-chain analytics ac…

    Compare

Recommended reading

In-depth guides for Data & APIs — get more out of tools like Struct.

Ready to try Struct?

Open the official site and get started in a few clicks.

Launch Struct