An SBE message identifies its schema, template and acting version. The schema supplies field names, widths, offsets and repeating-group dimensions. The venue agreement supplies the business meaning of an order and its responses. Keep the customer’s XML and mapping together when publishing a UAT revision. FIX Trading Community SBE specification
Start from bytes or author a schema
In the SBE Workbench, load the customer’s UTF-8 XML or choose Create a customer schema. The authoring form accepts explicit template IDs, field IDs, numeric primitives, fixed arrays, optional values and introduction versions. Download the generated XML and share it with the counterparty. Use XML import for schemas with composites, enumerations, bit sets, repeating groups and variable data. Files and edits stay in the browser. Open SBE Workbench
The synthetic example assigns schema ID 77, version 1 and template ID 1 to NewOrder. In little-endian order its eight header bytes are 19 00 01 00 4d 00 01 00. The first word specifies a 25-byte fixed body. The order encodes reference 1, side B, quantity 10, the eight-byte symbol NOVA with NUL padding, and a signed 64-bit price mantissa of 1000000. The profile scales that integer by four decimal places to obtain 100.0000.
19 00 01 00 4d 00 01 00
01 00 00 00 42 0a 00 00 00 4e 4f 56 41 00 00 00 00
40 42 0f 00 00 00 00 00
With SOFH, prefix these 33 bytes with 00 00 00 27 eb 50. The first four bytes give the full 39-byte frame length, including the six-byte header. The encoding identifier is EB50 for little-endian SBE 1.0 or 5BE0 for big-endian SBE 1.0. SOFH uses network byte order for both fields. FIX Trading Community framing specification
Decode a capture
Choose SBE XML · TCP / SOFH for a TCP stream, or SBE XML · one message per UDP datagram for an unframed UDP service with that packetization. Set the capture-side service port and select the XML. A TCP frame can span packets. A wrong schema ID, newer acting version, truncated block, invalid data length or incompatible SOFH encoding produces a finding. A mixed capture can embed the XML in a channel’s schemaXml property in capture-spec.json. The exported specification fingerprint includes the schema. Packet Capture · Capture boundaries
The codec reads signed and unsigned integers through 64 bits, float and double values, fixed character strings, numeric arrays, enums, bit sets, fixed composites, explicit offsets, constant fields, optional sentinels, nested groups and length-prefixed data. Decoded scalar values use strings to preserve integer precision. The template reference shows enum meanings and bit positions. The decoder uses the acting version to omit later additions. It stops on newer versions that the supplied schema cannot interpret. Supply the schema for that version. Expanded field budgets, a 1 MiB local message and XML limit, 12 levels of group nesting, ASCII and UTF-8 character encodings bound the importer. Unsupported structures produce diagnostics. External XML includes and DTDs are disabled.
Map an order-entry protocol
Open the SBE scenario in Team UAT. Load the XML and edit the binary.sbe object in the draft. Select the ITCH edition on the feed port. Publishing pins the exact XML, price scale, template bindings, market settings and ordered acceptance plan. Download the draft, pinned or run specification ZIP to obtain the schema, profile JSON, connection notes and capture sidecar. Hosted XML has a 40 KiB limit. Use synthetic data in a hosted run. Open SBE Team UAT
The request keys O, U and X refer to enter, replace and cancel. A, U, E, C and J refer to accepted, replaced, executed, canceled and rejected. Each binding names a customer template. Its fields map a venue role to a path in that template. A price can use Price.mantissa inside a fixed decimal composite. Set priceScale to the implied number of decimal places. For a mantissa/exponent composite the exponent must be constant and agree with this scale. An optional values table maps a wire code to a venue code. For example, "values":{"side":{"1":"B","2":"S"}} makes 1 a buy and 2 a sell. A response can specify customer constants. A plan uses actual template names, such as NewOrder and SBE.Executed, and mapped wire field names.
The order port accepts mapped fixed-layout messages, including nested scalar members. The offline workbench also handles group and variable-data templates. Order references are positive, increasing uint32 values and the venue matches at four decimal places. The market rules control the synthetic opening offer, quantity limits, price band and seeded rejection rate. Application sessions such as FIXP, venue authentication handshakes, auctions and multicast delivery need additional venue-specific implementations.
Exercise both TCP ports
The Node 24 bridge opens the order port at 127.0.0.1:19876 and the feed at 127.0.0.1:19877. SBE begins with an SOFH application frame after the bridge authenticates. The ITCH subscriber uses the selected Nasdaq transport’s own logon and recovery. SBE has no session replay in this profile. Capture the loopback side if you need to inspect the application bytes.
For the unmodified synthetic SBE and ITCH 5.0 profile, the downloadable Node client submits a ten-share buy, verifies four executed shares on both ports, cancels the six-share remainder and verifies a price-band rejection. The CI runner provides FIXSCOPE_SBE_PORT and FIXSCOPE_ITCH_PORT. Run the following with the workspace environment set. Team CI and credentials
node fixscope-ci.mjs --profile binary-uat --revision 1 --build gateway-1 --junit sbe.xml -- node fixscope-sbe-client.mjs