Expand description
Modules§
- manager
- Provides a
OrderBookL2Managerfor maintaining a set of local L2OrderBooks. - map
- Provides an abstract collection of cheaply cloneable shared-state
OrderBook.
Structs§
- Asks
- Unit type to tag an
OrderBookSideas the ask Side (ie/ sellers) of anOrderBook. - Bids
- Unit type to tag an
OrderBookSideas the bid Side (ie/ buyers) of anOrderBook. - Level
- Normalised Barter OrderBook
Level. - Order
Book - Normalised Barter
OrderBooksnapshot. - Order
Book Side - Normalised Barter
Levels for oneSideof theOrderBook.
Functions§
- mid_
price - Calculate the mid-price by taking the average of the best bid and ask prices.
- volume_
weighted_ mid_ price - Calculate the volume weighted mid-price (micro-price), weighing the best bid and ask prices with their associated amount.