25 #include <OnixS/Senaf/MarketData/Export.h> 28 namespace OnixS {
namespace Senaf {
namespace MarketData {
34 class OrderBookProcessor;
56 short inPositionCount = 0
60 , quantity(inQuantity)
61 , positionCount(inPositionCount)
71 friend class OrderBookProcessor;
75 MarketId marketId()
const;
78 std::size_t depth()
const;
84 const PriceLevelArray& bids()
const;
87 const PriceLevelArray& asks()
const;
90 std::string brief()
const;
93 void brief(std::string&)
const;
96 std::string toString()
const;
99 void toString(std::string&)
const;
111 OrderBookImpl* impl_;
std::string toString() const
String presentation of the book.
PriceLevel(const Rational &inPrice=Rational(), const Rational &inYield=Rational(), int inQuantity=0, short inPositionCount=0)
Constructor.
ArrayRef< const PriceLevel, std::size_t > PriceLevelArray
Book instance composing price level book and full order depth book.
Defines data for single price level of order book.
Rational number representation.
int quantity
Total order quantity at price.
Rational price
Raw exchange price (fixed point).
std::string brief() const
Returns brief book info.
Rational yield
Raw exchange yield (fixed point).
short positionCount
Positions count at price.