Books
- Two books per pair: base→quote (sell base) and quote→base (sell quote). We refer to them by a deterministic
BookId. - Each book is defined by a BookKey:
(base, quote, unitSize, makerPolicy, takerPolicy). - Orders in a book share the same
unitSizeand fee policies. Units are integers; the notional isunit * unitSizein the book’s base currency.
Units
Every book has a fixedunitSize (an amount of base for that book). All maker sizes are expressed in units (uint64). Actual base/quote amounts are derived from the unitSize and the tick’s price.