57 int inImpliedQuantity = 0,
58 short inOrderCount = 0,
59 short inImpliedOrderCount = 0
105 int inSequenceWithinMillis = 0,
106 short inOrderSequenceId = 0,
107 bool inIsImplied =
false,
126class ONIXS_ICEMDH_EXPORT OrderBook
163 std::string
brief()
const;
188 OrderBook(
const OrderBook&);
189 OrderBook& operator=(
const OrderBook&);
std::string toString() const
String presentation of the book.
const PriceLevelArray & bids() const
const PriceLevelArray & offers() const
const OrderBook * snapshot() const
bool empty() const
Indicates whether book has no bids & asks.
const OrderArray & bidOrders() const
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.
friend class OrderBookHolder
std::size_t depth() const
Returns the maximum book depth.
const OrderArray & offerOrders() const
void brief(std::string &) const
Appends brief book info to the string.
long long OrderId
Alias for order identifiers type.
ArrayRef< const Order, std::size_t > OrderArray
int MarketId
Alias for market identifiers type.
ArrayRef< const PriceLevel, std::size_t > PriceLevelArray
long long DateTime
Represents the number of nanoseconds since Jan 1st, 1970, 00:00:00 GMT.
short orderSequenceId
Legacy order modification count.
OrderId orderId
Order ID unique for market.
bool isRFQ
True if order is Request For Quote.
Order(OrderId inOrderId=OrderId(), const DateTime &inEntryDateTime=DateTime(), const Rational &inPrice=Rational(), int inQuantity=0, int inSequenceWithinMillis=0, short inOrderSequenceId=0, bool inIsImplied=false, bool inIsRFQ=false)
Constructor.
OnixS::ICE::iMpact::MarketData::OrderId OrderId
bool isImplied
True if order is implied.
Rational price
Raw exchange price (fixed point).
int sequenceWithinMillis
Sub-milliseconds ordering sequence.
DateTime entryDateTime
Order entry date/time (milliseconds since 01-01-1970 00:00 GMT).
int quantity
Order quantity.
short orderCount
Order count at price.
short impliedOrderCount
Implied order count at price.
int impliedQuantity
Implied order quantity at price.
PriceLevel(const Rational &inPrice=Rational(), int inQuantity=0, int inImpliedQuantity=0, short inOrderCount=0, short inImpliedOrderCount=0)
Constructor.
Rational price
Raw exchange price (fixed point).
int quantity
Total order quantity at price.
Rational number representation.