OUCH

term

vendors & productsnetworking

Kept 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

← Back to O Back to the glossary