OUCH
termKept in this browser · My desk
Nasdaq's native order entry protocol: fixed-length binary messages, big-endian integers and prices with four implied decimals, carried over SoupBinTCP.
Nasdaq calls OUCH the low-level native protocol for connecting to its market, designed for maximum performance at the cost of flexibility and ease of use, and points other users to its more standard interfaces. Version 5.0 (specification updated October 2025) identifies orders by a day-unique, strictly increasing UserRefNum; version 4.2 used a 14-character token.
The Enter Order message has a 47-byte fixed part: type O, UserRefNum, side, quantity, symbol, an 8-byte price, time in force, display, capacity, the intermarket sweep flag, cross type, a 14-character customer order identifier and an appendage length. Inbound messages are not sequenced but may be repeated benignly; outbound messages are sequenced by SoupBinTCP. Replacing an order always gives it a new time-priority timestamp, while a separate Modify message makes changes that keep priority. On a replace chain the quantity is the total liable for the whole chain: after 100 of 500 shares trade, a replace for 500 leaves 400 exposed.
Also known as: ouch 5.0, ouch 4.2, nasdaq ouch, ouch protocol
Sources
- Nasdaq, OUCH 5.0 order entry specification, updated October 2025, sections 1, 2.1, 2.2 and 2.4 (read 2026-11-16): low-level native protocol for maximum performance at the cost of flexibility; fixed message lengths; big-endian; prices with 4 implied decimals; UserRefNum; inbound messages benignly resendable; Enter Order 47-byte fixed part; replace gives new time priority; Modify keeps it; chain quantity
- Nasdaq, OUCH 4.2, updated October 2025 (read 2026-11-16): 4-byte price and 14-character order token
- Nasdaq, SoupBinTCP 3.00 (read 2026-11-16): length-prefixed logical packets, implied sequence numbers, history from 1999