Skip to main content

Overview

Whether you’re building an aggregator, a copy-trading platform, or a fully custom trading UI, Struct gives you the data layer so you can focus on the experience. Most platforms combine the REST API for on-demand data, websocket rooms for live streams, and webhooks for event-driven alerts, all wrapped by the TypeScript SDK.

What You Can Build

Custom Trading UIs

Build your own interface on top of Polymarket with full market data, order books, and TradingView charts.

Aggregators

Combine Polymarket with other prediction markets for a unified view, with trending events and markets up front.

Copy Trading

Track top traders and mirror their pending or confirmed trades in real time.

Portfolio Trackers

Show users their open positions, live PnL, and trade history.
Power homepage rails, “what’s hot” widgets, and category browsers with rankings that re-order themselves in real time.
  • Seed, then stream. Pull initial lists from the events and markets REST endpoints, then keep them warm with the events stream and markets stream rooms, which push full rows for whatever changed since the last tick. The live trending feed guide walks through the whole loop.
  • Rank by any window. Every row carries a metrics map keyed by timeframe (1m through 30d) with volume, fees, transactions, and unique traders, so one rail can sort by 24h volume while a “rising now” widget sorts by 5m trades.
  • Search and filter. Add typeahead search and filter by category, rewards, or activity thresholds to build focused discover pages.
  • Surface the movers. Rank the biggest gainers and losers with the finding market movers guide, and highlight markets paying CLOB rewards to draw liquidity providers.
Both streams accept the same filters as their REST list counterparts, so a discover page and its live updates share a single definition.

Crypto Up/Down markets

Polymarket’s Crypto Up/Down markets resolve over fixed windows: a window locks an open price when it starts and resolves UP or DOWN when it closes. They are a popular standalone trading surface, and Struct provides every layer to build one. The Crypto Up/Down feed guide walks through the full build: backfilling past window outcomes, OHLC charts for the underlying asset, the live spot stream, and resolving each window.

Leaderboards, holders, and live PnL

Trader profiles, top-trader boards, and holder lists are first-class surfaces, and every figure is computed live as trades settle, never refreshed on a periodic cycle or served stale from a cache. A leaderboard re-ranks the moment a position changes, and a holder list reflects balances on the current block.

Real-time alerts for your users

Let users follow the markets they care about and notify them the moment something happens: The same events arrive as webhooks (HTTP) or websocket alerts (push over a live socket), so pick whichever transport fits your stack.

Relevant Struct Features

Guides to get started

TradingView charts

Wire Polymarket candles into a TradingView chart.

Real-time positions

Keep a user’s open positions live as trades confirm.

Copy trading

Surface another trader’s activity as it happens.

Mobile price alerts

Push a notification when a market crosses a price.
Last modified on June 16, 2026