MarketByPrice¶
- class roq.market.mbp.MarketByPrice¶
Maintains order book (by price) state
- __init__(self: roq.market.mbp.MarketByPrice, exchange: str = '', symbol: str) None ¶
- apply(self: roq.market.mbp.MarketByPrice, arg0: roq.MarketByPriceUpdate) None ¶
Apply an update
- clear(self: roq.market.mbp.MarketByPrice) None ¶
Reset state
- extract(self: roq.market.mbp.MarketByPrice, arg0: int) list ¶
Extract best levels from book