58 Time unitTimestamp = 0,
62 #if defined(ONIXS_BATS_PITCH_COMPILER_CXX_RVALUE_REFERENCES) && ONIXS_BATS_PITCH_COMPILER_CXX_RVALUE_REFERENCES 64 PriceLevel(PriceLevel&&)
68 operator=(PriceLevel&& other)
72 #if defined(ONIXS_BATS_PITCH_COMPILER_CXX_DEFAULTED_FUNCTIONS) && ONIXS_BATS_PITCH_COMPILER_CXX_DEFAULTED_FUNCTIONS 73 PriceLevel(
const PriceLevel&) =
default;
75 PriceLevel(
const PriceLevel&);
79 operator=(
const PriceLevel& other);
102 void numberOfOrders (
Quantity value)
106 Time unitTimestamp()
const 110 void unitTimestamp(
Time)
114 Time timeOffset()
const 118 void timeOffset(
Time)
122 std::string toString()
const;
125 void toString (std::string&)
const;
128 void swap (PriceLevel&)
132 const OrderInfos& orders()
const 139 void removeOrderId (
OrderId id);
165 ONIXS_CBOECFE_PITCH_API
173 typedef std::vector<PriceLevel>
Array;
216 std::string toString()
const;
219 void toString (std::string&)
const;
222 std::string toShortString()
const;
225 void toShortString (std::string&)
const;
228 std::string toFormattedString()
const;
231 void toFormattedString (std::string&)
const;
234 const PriceLevels& asks()
const;
237 const PriceLevels& bids()
const;
240 UInt32 lastMessageSeqNumApplied()
const;
246 virtual const PriceLevels& doAsks()
const = 0;
247 virtual const PriceLevels& doBids()
const = 0;
251 virtual StrRef doSymbol()
const = 0;
252 virtual UInt32 doLastMessageSeqNumApplied()
const = 0;
256 ONIXS_BATS_PITCH_NOTHROW
262 ONIXS_BATS_PITCH_NOTHROW
268 ONIXS_BATS_PITCH_NOTHROW
274 ONIXS_BATS_PITCH_NOTHROW
280 ONIXS_BATS_PITCH_NOTHROW
286 ONIXS_BATS_PITCH_NOTHROW
292 ONIXS_BATS_PITCH_NOTHROW
298 ONIXS_BATS_PITCH_NOTHROW
304 ONIXS_BATS_PITCH_NOTHROW
310 ONIXS_BATS_PITCH_NOTHROW
312 timeOffset_ = offset;
316 ONIXS_BATS_PITCH_NOTHROW
318 return unitTimestamp_;
322 ONIXS_BATS_PITCH_NOTHROW
324 unitTimestamp_ = timestamp;
328 ONIXS_BATS_PITCH_NOTHROW
345 return doBestAsk (price, quantity);
350 return doBestBid (price, quantity);
355 return doInstrumentID();
364 ONIXS_BATS_PITCH_NOTHROW
366 return bids().empty() && asks().empty();
371 return doLastMessageSeqNumApplied();
PriceLevelCollections::ArrayConstEntry PriceLevelsConstEntry
Iterator over read-only collection of price levels.
PriceLevelCollections::ArrayEntry PriceLevelsEntry
Iterator to access price levels with write permissions.
const BinaryPrice & getPrice() const ONIXS_BATS_PITCH_NOTHROW
Price8 value.
PriceLevelCollections::Array PriceLevels
Sequence of price levels.
Miscellaneous traits for PriceLevel class.
Quantity numberOfOrders() const ONIXS_BATS_PITCH_NOTHROW
Total number of orders of given price.
Provides efficient way of accessing text-based FIX field values.
Array::iterator ArrayEntry
Mutable entry iterator.
Binary4 Quantity
Alias for Quantity type.
bool bestBid(BinaryPrice &price, Quantity &quantity) const
bool empty() const ONIXS_BATS_PITCH_NOTHROW
Indicates whether book has no bids & asks.
ONIXS_CBOECFE_PITCH_API std::ostream & operator<<(std::ostream &stream, const ServiceDescriptor &descriptor)
std::vector< PriceLevel > Array
Sequential collection of price levels.
Time timeOffset() const ONIXS_BATS_PITCH_NOTHROW
Time offset of Unit timestamp.
UInt32 lastMessageSeqNumApplied() const
Returns Last Message Seq Num Applied to the Book.
void setPrice(const BinaryPrice &value) ONIXS_BATS_PITCH_NOTHROW
Updates price value.
bool isValid(const PriceLevel &level) ONIXS_BATS_PITCH_NOTHROW
Indicates whether the instance of PriceLevel is valid.
Quantity quantity() const ONIXS_BATS_PITCH_NOTHROW
Quantify for the given price.
virtual ~OrderBook()
Destruction interface.
InstrumentId instrumentId() const
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_BATS_PITCH_NOTHROW
compare
const BinaryPrice & getPrice(const PriceLevel &level) ONIXS_BATS_PITCH_NOTHROW
Returns value of Price8.
bool bestAsk(BinaryPrice &price, Quantity &quantity) const
const PriceLevels & asks() const
Returns a set of descending bid prices for the given security.
#define ONIXS_BATS_PITCH_NOTHROW
Encapsulates price level concept.
std::vector< OrderInfo > OrderInfos
StrRef symbol() const
Symbol.
Binary8 OrderId
Alias for Order Id type.
const PriceLevels & bids() const
Returns a set of ascending ask prices for the given security.
Time unitTimestamp() const ONIXS_BATS_PITCH_NOTHROW
Unit timestamp.
Array::const_iterator ArrayConstEntry
Iterator for read-only access.
Binary8 InstrumentId
Alias for Instrument Id type.