Trades
Real-time public trades and last traded price for futures pairs.
Use this stream for the recent-trades tape and the last traded price. Trades are delivered in small batches: each batch is a series of trade frames, oldest first, followed by one last-price frame.
Endpoint
wss://futures-marketdata-service.outpoll.com/ws/trades/lastAuthentication
No authentication required.
Message Envelope
The stream carries two frame shapes. Tell them apart by the keys: a trade frame has id; a last-price frame has s.
Trade frame
id
string
Trade ID (of the newest fill in the frame)
pi
integer
Pair ID
p
number
Trade price
v
number
Trade size; for a merged frame, the total of its fills
sd
string
Taker side: buy or sell
t
integer
Trade time, epoch ms
Last-price frame
s
integer
Pair ID
p
number
Last traded price
Message Types
subscribe / unsubscribe
Client → Server
Start or stop pairs
Trade
Server → Client
One public trade: the fills of one taker side at one price and time, merged
Last price
Server → Client
Last traded price of a pair; sent after each batch of trades and on subscribe
Error
Server → Client
{"er", "msg"} — see Errors
ping / pong
Both
Plain-text keep-alive
Subscribe
Every pair:
Server confirmation: there is no confirmation frame. When you subscribe by pair ID and the pair has traded, its last-price frame arrives immediately. Trades follow as they happen.
Delivery
Trades are batched per pair and flushed about four times a second; a trade reaches the stream within about half a second.
Within a batch, trade frames arrive oldest first, then one last-price frame with the price of the newest trade.
Fills with the same time, taker side and price that arrive one after another are merged into one trade frame;
vis their total size. A market order that sweeps several price levels therefore shows as one frame per level.During a burst, a batch carries at most the 10 newest trade frames; older frames of that burst are not sent on this stream. The stream is a live tape, not a complete trade history.
The stream sends no history on subscribe — only the last price.
Trade Payload
id
string
Unique ID of the frame: the ID of its newest fill. Usually t_ followed by a number; may also start with w_. Use it to de-duplicate frames on this stream
pi
integer
Pair ID
p
number
Trade price
v
number
Trade size; for a merged frame, the total of its fills
sd
string
Taker (aggressor) side: buy = buyer took the ask, sell = seller hit the bid
t
integer
Trade time, epoch ms
Last-Price Payload
s
integer
Pair ID
p
number
Last traded price
Python Example
Was this helpful?

