Package com.quantfinlib.sbe
package com.quantfinlib.sbe
SBE-style binary wire codecs and channel adapters — the professional-grade
alternative to the text edges (JSON WebSocket in, FIX tag-value out):
TradeFlyweight,
OrderFlyweight and
QuoteFlyweight encode/decode at fixed buffer
offsets with zero allocation, zero parsing and zero copying;
BinaryMarketDataClient feeds the
HftMarketDataBus from a binary stream and
BinaryOrderPublisher/BinaryOrderReceiver
carry gateway orders over a binary channel. Wire layouts are documented on
each flyweight; symbol ids are part of the wire contract.
See docs/ULTRA_LOW_LATENCY.md for where this sits in the
latency stack.
-
ClassesClassDescriptionBinary market-data adapter: decodes
TradeFlyweightframes from a channel straight into theHftMarketDataBus— the professional-grade counterpart of the textfeed.WebSocketFeed.Binary order-entry adapter: attach toHftOrderGatewayas itsOrderListenerand every accepted order is encoded as anOrderFlyweightand written to the venue channel — the binary counterpart offix.FixSession#sendNewOrderSingle, with zero allocation and zero string formatting per order.Venue side of the binary order-entry pair: decodesOrderFlyweightframes from a channel and dispatches them to anOrderListener— same zero-allocation read loop asBinaryMarketDataClient, with partial-frame handling.SBE-style flyweight codec for an order-entry message — the binary counterpart of a FIX NewOrderSingle, at fixed offsets with zero allocation and zero parsing (seeTradeFlyweightfor the pattern).SBE-style flyweight codec for a two-sided quote message — the outbound format of a market maker (and the inbound format of venue top-of-book feeds), completing the binary codec family:TradeFlyweight(trade in),OrderFlyweight(order out), quote (two-sided out).SBE-style flyweight codec for a market-data trade message: fixed field offsets over aByteBuffer, so encode/decode is a handful of absolute primitive reads/writes — zero allocation, zero parsing, zero copying.