troy

Superfast primitives and data structures for high frequency trading, where every nanosecond counts. Dec is a fixed-scale decimal backed by an i128, exact inside its range and collapsing to a single NaN state outside it. OrderBook is a level 2 book built on it, each side kept best first so the best price, the n-th level and the depth cut are index arithmetic rather than searches.