Home › Practice › RTL Design › Order book cross & lock check

Order book cross & lock check

EasyRTLHFTcombinational

In an exchange limit order book, buyers post a bid price and sellers post an ask price. Normally the best bid sits strictly below the best ask; if bid == ask the book is locked, and if bid >= ask the book is crossed (an immediate trade or feed bug).

Concept first. Only active quotes matter: if either bid_v or ask_v is 0, the book is neither locked nor crossed. After passing, click Check area and speed to see your OpenSTA speed.

Solve in your browser →

No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.

More in this track

← 16-bit byte swap (network order)Best bid selector (4-way max tree) →