com.epam.cmemdp.marketdata.impl
Class ConsolidatedOrderBookImpl
java.lang.Object
com.epam.cmemdp.marketdata.impl.AbstractOrderBookImpl
com.epam.cmemdp.marketdata.impl.ConsolidatedOrderBookImpl
- All Implemented Interfaces:
- BasicSecurityEventsListener, ImpliedOrderBookListener, OrderBookListener, BasicOrderBook, ConsolidatedOrderBook
public class ConsolidatedOrderBookImpl
- extends AbstractOrderBookImpl
- implements ConsolidatedOrderBook
Fields inherited from class com.epam.cmemdp.marketdata.impl.AbstractOrderBookImpl |
ASK, ASK_CODE, BID, BID_CODE, EMPTY_BOOK, ENTRY_CHANGE, ENTRY_DELETE, ENTRY_DELETE_FROM, ENTRY_DELETE_THRU, ENTRY_NEW, ENTRY_OVERLAY, IMPLIED_ASK_CODE, IMPLIED_BID_CODE |
Method Summary |
ImpliedBookPriceLevel |
getAskData(int priceLevel)
|
double |
getAskPrice(int level)
|
double |
getAskQuantity(int level)
|
ImpliedBookPriceLevel |
getBidData(int priceLevel)
|
double |
getBidPrice(int level)
|
double |
getBidQuantity(int level)
|
OrderBookState |
getBookState()
|
OrderBookType |
getBookType()
|
int |
getDepth()
|
SecurityDefinition |
getSecurityDef()
|
void |
onBookStateChanged(ImpliedOrderBook book,
OrderBookState oldState,
OrderBookState newState)
|
void |
onBookStateChanged(OrderBook book,
OrderBookState oldState,
OrderBookState newState)
|
void |
onOrderBookTopOfTheBookUpdated(java.lang.Long securityId,
BookPriceData topBid,
BookPriceData topAsk,
FIXFieldList source)
|
void |
onOrderBookTopOfTheBookUpdated(java.lang.Long securityId,
ImpliedBookPriceData topBid,
ImpliedBookPriceData topAsk,
FIXFieldList source)
|
void |
onOrderBookUpdated(ImpliedOrderBook book,
FIXFieldList source)
|
void |
onOrderBookUpdated(OrderBook book,
FIXFieldList source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsolidatedOrderBookImpl
public ConsolidatedOrderBookImpl(SecurityDefinition securityDefinition,
OrderBook directBook,
ImpliedOrderBook impliedBook,
ConsolidatedOrderBookListener listener)
getSecurityDef
public SecurityDefinition getSecurityDef()
- Specified by:
getSecurityDef
in interface BasicOrderBook
getBookType
public OrderBookType getBookType()
- Specified by:
getBookType
in interface BasicOrderBook
getBookState
public OrderBookState getBookState()
- Specified by:
getBookState
in interface BasicOrderBook
getDepth
public int getDepth()
- Specified by:
getDepth
in interface BasicOrderBook
onBookStateChanged
public void onBookStateChanged(OrderBook book,
OrderBookState oldState,
OrderBookState newState)
- Specified by:
onBookStateChanged
in interface OrderBookListener
onOrderBookUpdated
public void onOrderBookUpdated(OrderBook book,
FIXFieldList source)
- Specified by:
onOrderBookUpdated
in interface OrderBookListener
onOrderBookTopOfTheBookUpdated
public void onOrderBookTopOfTheBookUpdated(java.lang.Long securityId,
ImpliedBookPriceData topBid,
ImpliedBookPriceData topAsk,
FIXFieldList source)
- Specified by:
onOrderBookTopOfTheBookUpdated
in interface ImpliedOrderBookListener
onOrderBookTopOfTheBookUpdated
public void onOrderBookTopOfTheBookUpdated(java.lang.Long securityId,
BookPriceData topBid,
BookPriceData topAsk,
FIXFieldList source)
- Specified by:
onOrderBookTopOfTheBookUpdated
in interface OrderBookListener
onBookStateChanged
public void onBookStateChanged(ImpliedOrderBook book,
OrderBookState oldState,
OrderBookState newState)
- Specified by:
onBookStateChanged
in interface ImpliedOrderBookListener
onOrderBookUpdated
public void onOrderBookUpdated(ImpliedOrderBook book,
FIXFieldList source)
- Specified by:
onOrderBookUpdated
in interface ImpliedOrderBookListener
getBidData
public ImpliedBookPriceLevel getBidData(int priceLevel)
- Specified by:
getBidData
in interface ConsolidatedOrderBook
getAskData
public ImpliedBookPriceLevel getAskData(int priceLevel)
- Specified by:
getAskData
in interface ConsolidatedOrderBook
getBidQuantity
public double getBidQuantity(int level)
- Specified by:
getBidQuantity
in interface ConsolidatedOrderBook
getBidPrice
public double getBidPrice(int level)
- Specified by:
getBidPrice
in interface ConsolidatedOrderBook
getAskQuantity
public double getAskQuantity(int level)
- Specified by:
getAskQuantity
in interface ConsolidatedOrderBook
getAskPrice
public double getAskPrice(int level)
- Specified by:
getAskPrice
in interface ConsolidatedOrderBook
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.