#include <B2BITS_CmeMdpInstrument.h>
Instrument. Instrument object is used to receive market data of a particular instrument.
| virtual Cme::Mdp::Instrument::~Instrument |
( |
| ) |
|
|
inlineprotectedvirtual |
| virtual Channel* Cme::Mdp::Instrument::getChannel |
( |
| ) |
const |
|
pure virtual |
Returns owning channel.
- Returns
- Reference to the channel instance.
Returns instrument consolidated order book top.
- Returns
- Reference to the instrument consolidated order book top object.
- Note
- See event ieConsolidatedBookTopUpdate.
| virtual const OrderBook* Cme::Mdp::Instrument::getDirectOrderBook |
( |
| ) |
const |
|
pure virtual |
Returns instrument direct order book.
- Returns
- Reference to the instrument direct order book object.
| virtual u64 Cme::Mdp::Instrument::getElectronicVolume |
( |
| ) |
const |
|
pure virtual |
Returns instrument comulative traded volume.
Returns instrument id.
- Returns
- Id of the instrument.
| virtual const OrderBook* Cme::Mdp::Instrument::getImpliedOrderBook |
( |
| ) |
const |
|
pure virtual |
Returns instrument implied order book.
- Returns
- Reference to the instrument implied order book object.
| virtual const Trade* Cme::Mdp::Instrument::getLastTrade |
( |
| ) |
const |
|
pure virtual |
Returns instrument last trade.
- Returns
- Reference to the instrument last trade object.
- Note
- See event ieTradeUpdate.
Returns instrument natural recovery consolidated order book top.
- Returns
- Reference to the instrument natural recovery consolidated order book top object.
- Note
- See event ieConsolidatedBookTopUpdate.
| virtual const OrderBook* Cme::Mdp::Instrument::getNaturalRecoveryDirectOrderBook |
( |
| ) |
const |
|
pure virtual |
Returns instrument natural recovery direct order book.
- Returns
- Reference to the instrument natural recovery direct order book object.
| virtual u64 Cme::Mdp::Instrument::getNaturalRecoveryElectronicVolume |
( |
| ) |
const |
|
pure virtual |
Returns instrument natural recovery comulative traded volume.
| virtual const OrderBook* Cme::Mdp::Instrument::getNaturalRecoveryImpliedOrderBook |
( |
| ) |
const |
|
pure virtual |
Returns instrument natural recovery implied order book.
- Returns
- Reference to the instrument natural recovery implied order book object.
| virtual const Trade* Cme::Mdp::Instrument::getNaturalRecoveryLastTrade |
( |
| ) |
const |
|
pure virtual |
Returns instrument natural recovery last trade.
- Returns
- Reference to the instrument last trade object.
- Note
- See event ieTradeUpdate.
Returns instrument options.
- Returns
- Options of the instrument.
| virtual std::string Cme::Mdp::Instrument::getSymbol |
( |
| ) |
const |
|
pure virtual |
Returns instrument symbol.
- Returns
- Symbol of the instrument.
| virtual Tag Cme::Mdp::Instrument::getTag |
( |
| ) |
const |
|
pure virtual |
Returns instrument user tag.
- Returns
- Tag value.
| virtual const ThresholdLimits* Cme::Mdp::Instrument::getThresholdLimits |
( |
| ) |
const |
|
pure virtual |
Returns instrument theshold limits.
- Returns
- Reference to the instrument theshold limits object.
- Note
- See event ieThresholdLimitsUpdate.
| virtual const TradeStatistics* Cme::Mdp::Instrument::getTradeStatistics |
( |
| ) |
const |
|
pure virtual |
Returns instrument trade statistics.
- Returns
- Reference to the instrument trade statistics object.
| virtual unsigned int Cme::Mdp::Instrument::getTradingStatus |
( |
| ) |
const |
|
pure virtual |
Returns instrument trading status.
- Returns
- MDSecurityTradingStatus value.
- Note
- See event ieStatusUpdate.
| virtual bool Cme::Mdp::Instrument::isNaturalRecoveryState |
( |
| ) |
const |
|
pure virtualnoexcept |
Checks that instrument is in natural recovery state.
| virtual void Cme::Mdp::Instrument::setTag |
( |
Tag |
tag | ) |
|
|
pure virtual |
Assigns user tag to the instrument.
- Parameters
-
| virtual void Cme::Mdp::Instrument::subscribe |
( |
InstrumentListener * |
listener, |
|
|
bool |
skipRecovery = false |
|
) |
| |
|
pure virtual |
Subscribes to all instrument events.
- Parameters
-
| listener | Reference to callback interface to listen to instrument events. |
| skipRecovery | Set to true if Recovery should not be started (for example if 35=d just received from the Instrument feed) The listener must stay alive until the unsubcribe method is called. |
Subscribes to instrument events.
- Parameters
-
| listener | Reference to callback interface to listen to instrument events. The listener must stay alive until the unsubcribe method is called. |
| subscriptionMask | Mask of instrument events to listen to. |
| skipRecovery | Set to true if Recovery should not be started (for example if 35=d just received from the Instrument feed) |
| virtual bool Cme::Mdp::Instrument::subscribed |
( |
| ) |
const |
|
pure virtual |
Indicates if the instrument is subscribed.
- Returns
- True if the instrument is subscribed.
| virtual void Cme::Mdp::Instrument::unsubscribe |
( |
| ) |
|
|
pure virtual |
Unsubscribes from instrument events.