#include <OnixS/Eurex/MarketData/OrderBook.h>
Public Types | |
| typedef PriceLevels | PriceLevelsType |
Public Member Functions | |
| virtual | ~OrderBook () |
| SecurityId | securityId () const |
| virtual UInt32 | lastMsgSeqNumProcessed () const =0 |
| size_t | depth () const |
| bool | empty () const |
| virtual const PriceLevels & | asks () const =0 |
| virtual const PriceLevels & | bids () const =0 |
| virtual bool | bestAsk (Decimal &price, Quantity &quantity) const =0 |
| virtual bool | bestBid (Decimal &price, Quantity &quantity) const =0 |
| virtual bool | bestAskIpsWithoutQuantityRestriction (Decimal &price, Quantity &quantity) const =0 |
| virtual bool | bestBidIpsWithoutQuantityRestriction (Decimal &price, Quantity &quantity) const =0 |
| virtual bool | bestAskIpsWithQuantityRestriction (Decimal &price, Quantity &quantity) const =0 |
| virtual bool | bestBidIpsWithQuantityRestriction (Decimal &price, Quantity &quantity) const =0 |
| virtual UInt64 | mdEntryTime () const =0 |
| std::string | toString () const |
| void | toString (std::string &) const |
| std::string | toShortString () const |
| void | toShortString (std::string &) const |
| std::string | toFormattedString () const |
| void | toFormattedString (std::string &) const |
| OrderBook * | snapshot () const |
| void * | operator new (size_t bookSize) |
| void | operator delete (void *book) |
Protected Member Functions | |
| OrderBook (SecurityId securityId, size_t bookDepth) | |
Protected Attributes | |
| SecurityId | securityId_ |
| size_t | depth_ |
Order Book.
A set of bid prices and ask prices for the given security (bids are descending and asks are ascending). The quantity is provided at each price level.
Definition at line 148 of file OrderBook.h.
| typedef PriceLevels PriceLevelsType |
Definition at line 151 of file OrderBook.h.
|
virtual |
Destruction interface.
|
protected |
|
pure virtual |
Returns a set of descending bid prices for the given security.
Returns best implied ask.
|
pure virtual |
Returns best ask for IPS implied volume without quantity restriction.
|
pure virtual |
Returns best ask for IPS implied volume with quantity restriction.
Returns best implied bid.
|
pure virtual |
Returns best bid for IPS implied volume without quantity restriction.
|
pure virtual |
Returns best bid for IPS implied volume with quantity restriction.
|
pure virtual |
Returns a set of ascending ask prices for the given security.
|
inline |
Returns the maximum book depth.
Definition at line 251 of file OrderBook.h.
|
inline |
Indicates whether book has no bids & asks.
Definition at line 256 of file OrderBook.h.
|
pure virtual |
Sequence number of the last processed message.
|
pure virtual |
For bids and offers the official time of book entry, for trades official time of execution (all in nanoseconds).
| void operator delete | ( | void * | book | ) |
De-allocating operator to avoid runtime collision. Primarily designed for snapshot/cloning.
| void * operator new | ( | size_t | bookSize | ) |
Allocation operator to avoid runtime collision. Primarily designed for snapshot/cloning.
|
inline |
Unique instrument Id (tag 48) as qualified by the exchange per tag 22-SecurityIDSource.
Definition at line 246 of file OrderBook.h.
| OrderBook * snapshot | ( | ) | const |
Creates immutable snapshot of the book.
|
inline |
Returns formatted presentation of the book.
Definition at line 279 of file OrderBook.h.
| void toFormattedString | ( | std::string & | ) | const |
Appends Formatted presentation of the book.
|
inline |
Returns brief book info.
Definition at line 270 of file OrderBook.h.
| void toShortString | ( | std::string & | ) | const |
Appends brief book info to the string.
|
inline |
String presentation of the book.
Definition at line 261 of file OrderBook.h.
| void toString | ( | std::string & | ) | const |
String presentation of the book.
|
protected |
Definition at line 230 of file OrderBook.h.
|
protected |
Definition at line 227 of file OrderBook.h.