WEBSOCKETS

Live Polymarket data, pushed to you.

Typed Polymarket websockets with raw data rooms, pre-aggregated alerts, and JWT auth built for browser apps.

Get Started for FreeNo credit card required!

Features

Every Polymarket stream

13 typed data rooms and 20+ pre-aggregated alerts covering every signal on Polymarket. One API key, two purpose-built sockets, shared client patterns.

Live, not polled

Data pushes the moment it lands on-chain or crosses a threshold. No polling loops, no cache staleness, no reconnect bookkeeping.

Typed & resilient SDK

Per-room typed filters and payloads. Auto-reconnect with subscription replay, JWT refresh, and lifecycle events built into the TypeScript client.

Rooms for every Polymarket stream

Continuous data feeds: raw events, aggregated metrics, and on-chain balances flowing as they change. Subscribe, filter, and let data stream for as long as your socket is open.

Trade Streams

Subscribe to live trade ticks by market, wallet, or globally as fills land on-chain.

  • Filter by condition ID, trader, or trade type
  • Covers OrderFilled, Redemption, Merge, Split, and more
  • Per-market and per-wallet room scoping

Price & Candlestick Streams

Live OHLCV candles and probability ticks pushed as trades land.

  • Per-market and per-position candle streams
  • Timeframes from 1 minute to 1 day
  • Probability ticks for every outcome

Order Book Streams

Real-time order book snapshots and deltas for any market or outcome.

  • Full book or top-of-book per position ID
  • Spread change events for liquidity analysis
  • Aggregated and per-outcome room options

Positions & PnL Streams

Per-wallet position and PnL updates pushed as trades and oracle events land.

  • Live position size, cost basis, and realized PnL
  • Scoped per wallet, market, event, or outcome
  • Separate rooms for position updates and PnL updates

Live market & event streams

Trending markets and events that stay live, with updates pushed as they change.

  • Same types as REST endpoints
  • Filter by tag, timeframe, volume, or specific IDs
  • Per-outcome block and timestamp watermarks

Metrics Streams

Pre-aggregated volume, open interest, and probability metrics pushed as they change.

  • Event, market, and position-level metric rooms
  • Windowed deltas with no client-side aggregation
  • Volume, open interest, trader counts, and probability

Crypto Asset Prices

Chainlink-sourced live crypto price ticks and OHLC windows for BTC, ETH, and more.

  • Tick events for raw Chainlink price updates
  • Window updates when candles open or close
  • Subscribe to specific symbols or every asset

Accounts & Balances

Shares, USDC, and native balance updates for tracked wallets, indexed from on-chain.

  • Share balance updates by default
  • Optional USDC and native token balance streams
  • Block number and timestamp on every update

CLOB Rewards

Stream reward configuration changes for any market as they are added, updated, or removed.

  • Asset address, daily rate, and total reward amounts
  • Per-market or global subscriptions
  • Track incentive structures driving liquidity

Features

JWT auth for end users

Let users connect directly with JWTs from any auth provider like Clerk, Auth0, or your own IdP. Ship a public key to the browser and keep your secret key server-side.

One socket per user

Each connection gets its own subscriptions, filters, and per-user rate limits. Plan caps scale from 1 to unlimited concurrent sockets, so one socket per logged-in user just works.

Pay per message

Credits are billed per message delivered, not per connection. Quiet rooms cost nothing beyond a 1-credit hold, and filters let you pay only for the data you actually consume.

Alerts websocket

Rooms stream continuous data; alerts fire only when something meaningful happens. 20+ pre-computed triggers (thresholds, spikes, milestones) delivered over a dedicated socket so you never run a webhook server.

Trader Alerts

Notify on specific wallets: whale activity, new traders, and PnL crossings as trades land.

  • Whale trade alerts with configurable size thresholds
  • First trade and new market entries per wallet
  • Global, event, and market PnL milestone alerts

Market & Event Volume

Catch new markets launching and detect volume milestones or spikes on live events.

  • Market-created notifications for new prediction markets
  • Volume milestone alerts at configurable thresholds
  • Volume spike detection for unusual activity

Price & Probability Moves

React to sudden price or probability moves on individual outcomes.

  • Price spike alerts for rapid outcome price moves
  • Probability spike alerts for fast market shifts
  • Close-to-bond alerts for near-certain outcomes

Metric Thresholds

Cross-threshold alerts on aggregated event, market, and position metrics.

  • Condition-level thresholds on volume and transaction counts
  • Event-level rollups across all child markets
  • Position volume milestone and spike detection

Crypto Asset Alerts

Chainlink-sourced alerts for tracked crypto assets: ticks and candle windows.

  • Tick alerts for raw Chainlink price updates
  • Window alerts when asset candles open or close
  • Per-symbol subscriptions or all-asset firehose

How Struct stacks up against the competition

Compare real performance metrics and data coverage across Polymarket data providers.

FeaturesPolymarketCompetitor 1Competitor 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
20–400/sec1
No limit
No limit
AI Chat Agents: Built-in AI chat agents for market research, analysis, and insider detection.
Automations: Event-triggered workflows with AI processing, delivered to Discord, Telegram, or webhooks.
Multiple Venues: Ability to access data from multiple prediction markets.
Roadmap
1 References Polymarket's official Gamma API rate limits. Last updated: 2026-02-24

Start exploring with Struct

Get started for free — chat with AI agents or integrate our API in minutes. No credit card required.

Get Started