Skip to main content
For API integrations with Console usage and credit tracking, connect to 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 as BRAVADO_API_KEY and BRAVADO_API_SECRET.
Node.js
Snapshot and trade payloads use WebSocket credits for enrolled organisations: 1 credit per 100,000 uncompressed UTF-8 bytes. Heartbeats and errors are not charged. Usage updates during an open connection; allow about a minute for batching, then refresh Console. The authenticated route sends heartbeat pings; Node’s ws client responds automatically.

Frames

Every message is a JSON object with a type 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.
The trade object in a trade frame and every element of the snapshot array share the same shape:
assetId links the two feeds. Watch the trade stream to discover which outcome tokens are active right now, then pass those IDs to the Order Books feed to see depth for them. And trader links Market Data to Data API: take a wallet you see filling and pull its PnL, positions, and history.

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 more sub 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:
The server replies with a 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:
means (wallet A OR wallet B) AND notional >= 5000.

Multiple subscriptions and live updates

One connection may hold several subscriptions at once; each sub returns its own subscription_id, and a trade matching any of them is delivered once. Change a subscription without reconnecting:
The server acks each change (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 fresh snapshot 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

Returns whether the upstream source is connected, total trades emitted, recent-buffer size, and connected-client count.