EPAM B2BITS ICE Impact Handler C++  1.1.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IceImpact::DemoMarketDepth::InstrPriceBook Struct Reference

#include <B2BITS_IceMarketDepth.h>

Collaboration diagram for IceImpact::DemoMarketDepth::InstrPriceBook:
Collaboration graph
[legend]

Public Member Functions

 InstrPriceBook ()
 
void onMessage (IceImpact::MessageEvent const &ev)
 
void onInstrumentReset (IceImpact::InstrumentResetEvent const &ev)
 
template<typename BookSideT >
void deleteOrder (BookSideT &book, Order &order)
 
void replayOrders ()
 
int getTopN (int n, BookSideT &bidSide, BookSideT &askSide, int &orderPriceMultiplier)
 

Static Public Member Functions

static bool bid_compare (std::pair< price_t, qty_t > const &l, std::pair< price_t, qty_t > const &r)
 
static bool ask_compare (std::pair< price_t, qty_t > const &l, std::pair< price_t, qty_t > const &r)
 

Public Attributes

PriceBookT bid_
 
PriceBookT ask_
 
OrderBookT orders_
 
HelperMutex bookMutex_
 
OrderEventVectorT events_
 
int orderPriceMultiplier_
 

Constructor & Destructor Documentation

IceImpact::DemoMarketDepth::InstrPriceBook::InstrPriceBook ( )
inline

Member Function Documentation

static bool IceImpact::DemoMarketDepth::InstrPriceBook::ask_compare ( std::pair< price_t, qty_t > const &  l,
std::pair< price_t, qty_t > const &  r 
)
inlinestatic
static bool IceImpact::DemoMarketDepth::InstrPriceBook::bid_compare ( std::pair< price_t, qty_t > const &  l,
std::pair< price_t, qty_t > const &  r 
)
inlinestatic
template<typename BookSideT >
void IceImpact::DemoMarketDepth::InstrPriceBook::deleteOrder ( BookSideT book,
Order order 
)
inline
int IceImpact::DemoMarketDepth::InstrPriceBook::getTopN ( int  n,
BookSideT bidSide,
BookSideT askSide,
int &  orderPriceMultiplier 
)
inline
void IceImpact::DemoMarketDepth::InstrPriceBook::onInstrumentReset ( IceImpact::InstrumentResetEvent const &  ev)
inline
void IceImpact::DemoMarketDepth::InstrPriceBook::onMessage ( IceImpact::MessageEvent const &  ev)
inline
void IceImpact::DemoMarketDepth::InstrPriceBook::replayOrders ( )
inline

Member Data Documentation

PriceBookT IceImpact::DemoMarketDepth::InstrPriceBook::ask_
PriceBookT IceImpact::DemoMarketDepth::InstrPriceBook::bid_
HelperMutex IceImpact::DemoMarketDepth::InstrPriceBook::bookMutex_
OrderEventVectorT IceImpact::DemoMarketDepth::InstrPriceBook::events_
int IceImpact::DemoMarketDepth::InstrPriceBook::orderPriceMultiplier_
OrderBookT IceImpact::DemoMarketDepth::InstrPriceBook::orders_