public class PriceDepthBookImpl extends java.lang.Object implements PriceDepthBook
| Modifier and Type | Method and Description |
|---|---|
PriceLevel |
getBest(mfmarketdata.MDEntryType side)
Returns the best price for a particular side
|
PriceLevel |
getLevel(mfmarketdata.MDEntryType side,
int index)
Get a price level for a certain side and index.
|
int |
getNumberOfLevels(mfmarketdata.MDEntryType side)
Returns the number of levels for the indicated side.
|
PriceLevel |
getWorst(mfmarketdata.MDEntryType side)
Returns the worst price for a particular side.
|
boolean |
isActive() |
boolean |
isEmpty(mfmarketdata.MDEntryType side)
Return true if the book is empty.
|
void |
on(MarketDataIncrementalRefresh mdir) |
void |
on(MDEntry mde) |
java.lang.String |
toString() |
public void on(MarketDataIncrementalRefresh mdir)
public void on(MDEntry mde)
public PriceLevel getLevel(mfmarketdata.MDEntryType side, int index)
PriceDepthBookgetLevel in interface PriceDepthBookpublic boolean isEmpty(mfmarketdata.MDEntryType side)
PriceDepthBookisEmpty in interface PriceDepthBookpublic PriceLevel getWorst(mfmarketdata.MDEntryType side)
PriceDepthBookgetWorst in interface PriceDepthBookpublic PriceLevel getBest(mfmarketdata.MDEntryType side)
PriceDepthBookgetBest in interface PriceDepthBookpublic int getNumberOfLevels(mfmarketdata.MDEntryType side)
PriceDepthBookgetNumberOfLevels in interface PriceDepthBookpublic boolean isActive()
public java.lang.String toString()
toString in class java.lang.Object