Announcing Struct v0.4: Websockets, Alert Streaming, and New Pricing
We just shipped two Websocket endpoints for Polymarket data, including an alerts Websocket that nobody else offers. Plus, webhooks and Websockets are now free for everyone.

Today we're launching two major updates to Struct: Websockets and a new pricing model that makes real-time Polymarket data accessible to everyone.
We've shipped two distinct Websocket endpoints, including an alerts stream that no other platform offers, and we've made both Websockets and Webhooks completely free to start using.
Here is everything you need to know about the update.
The New Websocket Endpoints
We built two different Websocket endpoints to serve two very different real-time use cases: continuous data feeds and event-driven alerts.
1. Rooms Websocket: Continuous Data Feeds
Available at wss://api.struct.to/ws, the Rooms Websocket provides persistent connections that stream continuous market data the moment it happens on-chain.
This is the data layer for live dashboards, trading interfaces, and anything that needs to render Polymarket state as it changes. You can subscribe to eleven different rooms, including:
- Trades: Every on-chain trade as it lands (filterable by market, trader, size, etc.)
- Asset Prices & Windows: Real-time price ticks and candle updates for crypto asset markets (e.g. up/down 5-minute markets).
- Metrics: Live updates for market volume, event metrics, and position data.
- Trader Data: Global and per-market P&L updates, plus live position snapshots.
- Order Book: CLOB order book snapshots and reward changes.
2. Alerts Websocket: Event-Driven Notifications
Available at wss://api.struct.to/ws/alerts, this is a dedicated stream that pushes the exact same 20+ alert types you know from our webhooks, but over a persistent Websocket connection.
No one else offers this. Not Polymarket, and not any third-party API provider.
While webhooks are great for server-to-server notifications, they require a publicly accessible endpoint, HMAC verification, and retry logic. The Alerts Websocket removes all of that friction. You get the same event types (like market_created, trader_whale_trade, or probability_spike), the same filter schema, and the same payloads, but streamed directly to your client.
This drops the barrier to entry to zero. A trading bot on your laptop, a mobile app, or a local Jupyter notebook can now receive real-time Polymarket alerts without exposing a single port. You can also build alerting directly into your web platform for wallet tracking, price spikes, new market creations, and more.
Pricing Update: A Better Free Tier
We believe that everyone should be able to build with real-time Polymarket data, so we're changing our pricing model: don't gate the technology, gate the scale.
Webhooks and Websockets are now included on every plan, including the Free tier.
Free Plan ($0/month) now includes:
- 5,000 credits/month
- 1 API key
- 10 webhooks
- 1 concurrent Websocket connection
- Full access to all 20 event types, all 11 rooms, and all filters
Previously, real-time features were gated behind paid plans. Today, you can experiment with a Websocket connection streaming whale trades or probability spikes without spending a dime.
(Full pricing details are available at struct.to/pricing)
Start Building
Whether you're building a local trading bot, a real-time dashboard, or an AI agent that reacts to probability spikes, you now have the tools to do it instantly and for free.
Get started at struct.to/dashboard
Read the Websocket Docs
Install the TypeScript SDK