Skip to content
Industries · Trading and HFT

For matching engines and feed handlers

ByteAsk joins the gdb session you already have open, finds the lock-order inversion, and cites ITCH and FIX by section.

The deadlock is found and fixed.

Recorded ByteAsk session on a trading service stopped in gdb: the orderd deadlock.

Standards it can cite

ITCH/OUCH · FIX · PTP

hft_ref: ITCH/OUCH · FIX · IEEE 1588 PTP

hft_refNasdaq TotalView-ITCH 5.0 Add Order No MPID Attribution message type A field layout length offsets page
Nasdaq TotalView-ITCH 5.0 Specification§1.3 Add Order Message · p.13
Add Order Message
   Name                    Offset   Length   Value       Notes
   Message Type            0        1        “A”         Add Order – No MPID Attribution Message.
   Stock Locate            1        2        Integer     Locate code identifying the security
   Tracking Number         3        2        Integer     Nasdaq internal tracking number
   Timestamp               5        6        Integer     Nanoseconds since midnight.
   Order Reference         11       8        Integer     The unique reference number assigned to the new order at
   Number                                                the time of receipt.
   Buy/Sell Indicator      19       1        Alpha       The type of order being added.
                                                         “B” = Buy Order.     “S” = Sell Order.
   Shares                  20       4        Integer     The total number of shares associated with the order being
                                                         added to the book.
   Stock                   24       8        Alpha       Stock symbol, right padded with spaces
ref E1_Nasdaq_ITCH-5.0:1.3:4:1 · captured 2026-09-11

The tools it runs for Trading and HFT

  • gdb
  • ThreadSanitizer
  • perf
  • Valgrind
  • CMake
  • clang-tidy
Enterprise

Your code stays inside your walls

On-prem, air-gapped and bring-your-own-key deployments, with the controls your security team will ask for.

See Enterprise