wss://partner-api.bravadotrade.com/stream/polymarket/partner/trades using a
Market Data key with stream.read and HMAC authentication.
The server sends recent history, then every new trade across Polymarket markets.
No subscription message is needed.
The legacy Terminal /trade-feed/ws route has a separate access contract. New Console integrations must use the authenticated route above; adding an API key header to a different route does not select this usage-accounted feed.
Coverage today is Polymarket. By default the feed carries every trade on every market, not a selection of the active ones, and the rate varies with market activity — on the order of tens of trades per second (samples measured 20–50/s). Size your buffers and your UI for the whole hose. To receive only the trades your application needs, apply a server-side subscription filter instead of filtering client-side. To follow a specific market’s book, use the Order Books feed.
Connect with usage tracking
Your organisation needs an eligible paid plan with WebSockets access. Keep the secret on your server; browser-native WebSocket clients cannot set HMAC headers. Create a Market Data credential in Console. Save its key and secret locally asBRAVADO_API_KEY and BRAVADO_API_SECRET.
Node.js
ws client responds automatically.
Frames
Every message is a JSON object with atype field.
snapshot
Sent once, immediately on connect, so the feed does not start empty. It carries the last 200 trades as an array, newest first.
The buffer is a fixed-count ring, not a time window. At the rates we have measured (20–50 trades per second) 200 trades is roughly four to ten seconds of history, and less than that when the market is busier — nowhere near thirty seconds, and not a fixed span you can rely on.
trade
Sent for every new fill after the snapshot.
trade frame and every element of the snapshot array share the same shape:
Server-side subscription filters
By default a connection receives every trade — connecting without any subscription message returns the full feed, exactly as before. To narrow the stream, send one or moresub messages after connecting. The server evaluates the filter and delivers only matching trades, so you receive (and, on the authenticated route, are billed for) just the data your application needs.
Subscribe to the whole tape explicitly, or to a filtered view:
subscribed ack carrying a subscription_id, then a filtered snapshot of recent matching trades, then matching trade frames as they occur:
Filter fields
Every field is optional. All are evaluated against the same trade object documented above.Filter logic
Multiple values within one field are OR; different fields are AND. So:(wallet A OR wallet B) AND notional >= 5000.
Multiple subscriptions and live updates
One connection may hold several subscriptions at once; eachsub returns its own subscription_id, and a trade matching any of them is delivered once. Change a subscription without reconnecting:
filter_updated, unsubscribed). An invalid filter — an unknown field, a bad value, or an empty trades:filtered filter — returns an error frame (code: "INVALID_FILTER") and leaves any existing subscriptions untouched; an unknown op or stream returns UNKNOWN_OP / UNKNOWN_STREAM.
Filters are a delivery gate: a filtered
trade frame is byte-for-byte the same payload as an unfiltered one, you simply receive fewer of them. Unsubscribing every subscription leaves the connection silent — reconnect, or sub to trades:all, to resume the full tape.Keep-alive and reconnect
The authenticated route sends heartbeat pings; clients must respond with protocol pongs (most libraries do this automatically). If the socket drops, reconnect to receive a freshsnapshot and re-send any sub messages (subscriptions are per-connection and are not resumed across a reconnect); authenticated reconnects require a fresh timestamp and signature.
Dedupe against trades already on screen using transactionHash, not id. id is built from a counter that lives in the serving process: it restarts from zero when the process does, and two instances give the same fill different ids. transactionHash identifies the fill itself.
Health
Related
- Order Books WebSocket, live depth for a specific asset.
- Market Data overview.
- Data API, enrich the wallets you see trading.