91 typedef std::vector<Order>
Array;
123 InstrumentId instrumentId()
const;
135 std::string toShortString()
const;
138 void toShortString (std::string&)
const;
141 std::string toFormattedString()
const;
144 void toFormattedString (std::string&)
const;
147 const Orders& asks()
const;
150 const Orders& bids()
const;
159 virtual const Orders& doAsks()
const = 0;
160 virtual const Orders& doBids()
const = 0;
161 virtual InstrumentId doInstrumentID()
const = 0;
193 return doInstrumentID();
198 return bids().empty() && asks().empty();
203 return doLastMessageSeqNumApplied();
208 return doLastRptSeq();
const Orders & bids() const
Returns a set of ascending ask prices for the given security.
Messaging::RptSeq lastRptSeq() const
Returns the last processed RptSeq (sequence number per instrument update) for this instrument...
bool marketOrder() const
Indicates whether the order is the market order.
#define ONIXS_B3_UMDF_MD_NOTHROW
ONIXS_B3_UMDF_MD_API std::ostream & operator<<(std::ostream &stream, const LoggerSettings &settings)
std::string toString() const
Returns string representation of the instance.
OrderCollections::Array Orders
Sequence of price levels.
Messaging::SeqNum lastMessageSeqNumApplied() const
Returns the last processed packet sequence number of the incremental channel.
const Orders & asks() const
Returns a set of descending bid prices for the given security.
Int64 Quantity
Alias for Quantity type.
Messaging::PriceOptional Price
Alias for Price type (4 decimal places)
Miscellaneous traits for PriceLevel class.
Mantissa mantissa() const
OrderCollections::ArrayConstEntry OrderConstEntry
Iterator over read-only collection of price levels.
Array::iterator ArrayEntry
Mutable entry iterator.
void validate(const OrderBook &)
For testing only.
Array::const_iterator ArrayConstEntry
Iterator for read-only access.
UInt32 SeqNum
Sequence number inside the given channel.
Price price() const
Price.
OrderId orderId() const
Order Id.
A nullable real number with a constant exponent.
Order(OrderId orderId, Price price, Quantity quantity)
Initializes the instances according to specified attributes.
bool empty() const
Indicates whether book has no bids & asks.
OrderCollections::ArrayEntry OrderEntry
Iterator to access price levels with write permissions.
InstrumentId instrumentId() const
Instrument Id.
Quantity quantity() const
Quantity.
std::vector< Order > Array
Sequential collection of price levels.
UInt64 OrderId
Alias for Order Id type.
UInt32 RptSeq
Sequence number per instrument update.
bool operator==(const TimeSpan &left, const TimeSpan &right)
Compares with other instance for equality.
UInt64 InstrumentId
Alias for Instrument Id type.