Feeds / International equities

B3 Binary UMDF (Brazil equities and derivatives)

B3 (Brasil, Bolsa, Balcão): equities, index and interest rate futures, options. Order by order (full depth).

Handler built · validated on exchange dataEquities, Futures & Options

Protocol

Venue
B3 (Brasil, Bolsa, Balcão): equities, index and interest rate futures, options
Asset class
Equities, Futures & Options
Wire format
B3 Binary UMDF 2.x, market by order: SBE (Simple Binary Encoding) little-endian messages in UDP multicast packets with a 16-byte packet header (channel, sequence version, sequence number, sending time). Each channel has an incremental stream on two lines (A and B), a looping snapshot recovery stream and a looping instrument definition stream. Orders are keyed by B3's secondary order ID, whose order also gives time priority within a price.
Messages
Sequence Reset, Sequence (heartbeat), Security Definition, Security Status, Security Group Phase, Empty Book, Channel Reset, Order (new / change), Delete Order, Mass Delete Orders, Trade, Forward Trade, Trade Bust, Execution Summary, Execution Statistics, Opening / Closing / Settlement Price, High / Low Price, Price Band, Quantity Band, Auction Imbalance, Theoretical Opening Price, Open Interest, Snapshot Full Refresh Header, Snapshot Full Refresh Orders
Book
Order by order (full depth)
Sequencing
Packet sequence per channel and sequence version; A/B duplicates skipped. A gap the other line does not fill is recovered from the snapshot recovery stream: one complete snapshot loop rebuilds every book and the held incremental packets resume after it, skipping per instrument the updates the snapshot already holds. At start-up the handler loads the instrument definition loop, then a snapshot loop.
Validation
Validated 2026-11-23 in our production handler framework (MD) on B3's public PCAP examples, against a decoder we wrote independently that reads every field through B3's own XML message schema. Equities channel, full day 31 March 2025 (25.5 million packets, 3,639 instruments): every one of the 12.4 million top-of-book states appeared in order, and all 1,122,035 trades were identical. Derivatives channel (Ibovespa futures), full day 8 April 2025 (44.2 million packets): all 22.0 million states in order and all 6,548,596 trades identical. Zero errors. Where the exchange empties a book side in one message, our book removes the orders one by one and can show brief intermediate states, which the comparison allows. Starting mid-session from two of B3's real snapshot loops (about 21,000 and 22,600 orders) and continuing for 300,000 packets gave books identical to those built from the start of the day. Exchange-direct input: our production handler takes live UDP multicast (A and B lines, arbitrated) with snapshot recovery and start-up from the definition and snapshot streams. Tested end to end on this sample data in an isolated network with injected loss, against a stand-in snapshot server we wrote from the specification; not yet run on a live exchange connection. Trade busts did not occur in the samples; statistics and trading-status messages are not yet published.

Notes

Official documentation

B3 Binary UMDF (specifications, message templates and PCAP examples) ↗www.b3.com.br

Links go to the exchange's own documentation; it is theirs and may change. Our handler follows the version described above.

Interested?

This handler is not running in our public stack. It is built for clients with their own exchange connectivity and licences; it takes live exchange multicast with gap recovery (see Validation for how that was tested).

Talk to us