25#include <OnixS/Senaf/MarketData/Export.h>
34class OrderBookProcessor;
56 short inPositionCount = 0
69class ONIXS_BME_SENAF_EXPORT OrderBook
90 std::string
brief()
const;
105 OrderBook(OrderBookImpl*);
108 OrderBook(
const OrderBook&);
109 OrderBook& operator=(
const OrderBook&);
111 OrderBookImpl* impl_;
friend class OrderBookProcessor
const PriceLevelArray & asks() const
Gets offer side of the price level book.
std::string toString() const
String presentation of the book.
const PriceLevelArray & bids() const
Gets bid side of the price level book.
bool empty() const
Indicates whether book has no bids & asks.
MarketId marketId() const
Unique identifier of a market.
void toString(std::string &) const
String presentation of the book.
std::string brief() const
Returns brief book info.
std::size_t depth() const
Returns the maximum book depth.
void brief(std::string &) const
Appends brief book info to the string.
ArrayRef< const PriceLevel, std::size_t > PriceLevelArray
Rational yield
Raw exchange yield (fixed point).
Rational price
Raw exchange price (fixed point).
short positionCount
Positions count at price.
int quantity
Total order quantity at price.
PriceLevel(const Rational &inPrice=Rational(), const Rational &inYield=Rational(), int inQuantity=0, short inPositionCount=0)
Constructor.
Rational number representation.