Uses of Class
com.quantfinlib.orderbook.OrderBook
Packages that use OrderBook
Package
Description
Limit order book modeling, in two deliberate lanes:
OrderBook is the research-grade model
(price-time-priority matching with cancels, partial fills, queue-position
queries and order-to-trade counters — readable TreeMap/object internals);
HftOrderBook is the venue-grade core
(dense integer-tick price ladder with occupancy bitmaps, pooled intrusive
order nodes, primitive open-addressing id map, zero allocation —
~204 ns/op, 10M+ fills/sec measured by HftBookBenchmark).-
Uses of OrderBook in com.quantfinlib.orderbook
Methods in com.quantfinlib.orderbook with parameters of type OrderBookModifier and TypeMethodDescriptionstatic longBookAnalytics.depthWithinBps(OrderBook book, Side side, double bps) Resting quantity on a side priced withinbpsof the mid.static doubleDepth imbalance in [-1, 1] over the toplevels: +1 = all bid.static doubleBookAnalytics.microprice(OrderBook book) Size-weighted microprice:I*ask + (1-I)*bidwithI = bidSize / (bidSize + askSize)— a better short-horizon fair value than the mid when the book is imbalanced.static doublestatic BookAnalytics.SweepResultSimulates (without mutating the book) sweepingquantitywith a marketable order ontakerSide: returns achievable fill, VWAP fill price, and impact versus the pre-sweep mid.