|
B2BITS CME MDP Handler API Reference
|
#include <B2BITS_CmeMdpChannel.h>
Public Member Functions | |
| virtual MarketDataService * | getService () const =0 |
| Returns owning market data service. More... | |
| virtual ChannelID | getId () const =0 |
| Returns channel id. More... | |
| virtual const ChannelOptions & | getOptions () const =0 |
| Returns channel options. More... | |
| virtual Resolver * | getResolver ()=0 |
| Returns default resolver. More... | |
| virtual Resolver * | getResolver (const std::string &id)=0 |
| Returns resolver by id. More... | |
| virtual void | getResolvers (ResolverVector *resolverVector)=0 |
| Returns all resolvers of the channel. More... | |
| virtual Resolver * | findResolver (const std::string &id)=0 |
| Finds resolver by id. More... | |
| virtual Resolver * | addResolver (const std::string &id)=0 |
| Adds a new resolver to the channel. More... | |
| virtual void | removeResolver (const std::string &id)=0 |
| Removes resolver from the channel. More... | |
| virtual void | removeResolvers ()=0 |
| Removes all resolvers from the channel. More... | |
| virtual Instrument * | getInstrument (const std::string &symbol)=0 |
| Returns instrument by symbol. More... | |
| virtual Instrument * | getInstrument (InstrumentID id)=0 |
| Returns instrument by id. More... | |
| virtual void | getInstruments (InstrumentVector &instrumentVector)=0 |
| Returns all instruments of the channel. More... | |
| virtual Instrument * | findInstrument (const std::string &symbol)=0 |
| Finds instrument by symbol. More... | |
| virtual Instrument * | findInstrument (InstrumentID id)=0 |
| Finds instrument by id. More... | |
| virtual Instrument * | addInstrument (const std::string &symbol, InstrumentID id, const InstrumentOptions &instrumentOptions)=0 |
| Adds a new instrument to the channel. More... | |
| virtual Instrument * | addInstrument (const std::string &symbol, InstrumentID id, const InstrumentOptions &instrumentOptions, InstrumentBuildOptions instrumentBuildOptions)=0 |
| Adds a new instrument to the channel. More... | |
| virtual Instrument * | addInstrument (const InstrumentDefinition *instrumentDefinition)=0 |
| Adds a new instrument to the channel based on an instrument definition object. More... | |
| virtual Instrument * | addInstrument (const InstrumentDefinition *instrumentDefinition, InstrumentBuildOptions instrumentBuildOptions)=0 |
| Adds a new instrument to the channel based on an instrument definition object. More... | |
| virtual Instrument * | addInstrument (const MessageHeader &message)=0 |
| Adds a new instrument to the channel based on an instrument definition message. More... | |
| virtual Instrument * | addInstrument (const MessageHeader &message, InstrumentBuildOptions instrumentBuildOptions)=0 |
| Adds a new instrument to the channel based on an instrument definition message. More... | |
| virtual void | removeInstrument (const std::string &symbol)=0 |
| Removes instrument from the channel. More... | |
| virtual void | removeInstrument (InstrumentID id)=0 |
| Removes instrument from the channel. More... | |
| virtual void | removeInstruments ()=0 |
| Removes all instruments from the channel. More... | |
| virtual bool | connectedInstrumentDefinitionData () const =0 |
| Indicates if the channel instrument definition data is connected. More... | |
| virtual void | connectInstrumentDefinitionData (ChannelDataListener *dataListener)=0 |
| Connects to the instrument definition data feeds of the channel. More... | |
| virtual void | disconnectInstrumentDefinitionData ()=0 |
| Disconnects from the instrument definition data feeds of the channel. More... | |
| virtual bool | connectedSnapshotData () const =0 |
| Indicates if the channel snapshot data is connected. More... | |
| virtual void | connectSnapshotData (ChannelDataListener *dataListener)=0 |
| Connects to the snapshot data feeds of the channel. More... | |
| virtual void | disconnectSnapshotData ()=0 |
| Disconnects from the snapshot data feeds of the channel. More... | |
| virtual bool | connectedIncrementalData () const =0 |
| Indicates if the channel incremental data is connected. More... | |
| virtual void | connectIncrementalData (ChannelDataListener *dataListener)=0 |
| Connects to the incremental data feeds of the channel. More... | |
| virtual void | disconnectIncrementalData ()=0 |
| Disconnects from the incremental data feeds of the channel. More... | |
| virtual void | getStatistics (ChannelStatistics &statistics)=0 |
| Returns channel statistics. More... | |
| virtual void | setTag (Tag tag)=0 |
| Assigns user tag to the channel. More... | |
| virtual Tag | getTag () const =0 |
| Returns channel user tag. More... | |
| virtual void | attachListener (ChannelListener *listener)=0 |
| Attaches event listener. More... | |
Protected Member Functions | |
| virtual | ~Channel () |
Channel object provides access to market data of a particular CME channel. Channel object maintains a collection of resolvers and a collection of instruments.
|
inlineprotectedvirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| id | Id of the resolver to return. |
| Generates | exception if the resolver doesn't exist. |
|
pure virtual |
| resolverVector | Vector of resolver references to fill. |
|
pure virtual |
| id | Id of the resolver to return. |
|
pure virtual |
| id | Unique id of the resolver to add. |
| Generates | exception if the resolver already exists. |
|
pure virtual |
| id | id of the resolver to remove. |
|
pure virtual |
|
pure virtual |
| id | Symbol of the instrument to return. |
| Generates | exception if the instrument doesn't exist. |
|
pure virtual |
| id | Id of the instrument to return, |
| Generates | exception if the instrument doesn't exist. |
|
pure virtual |
| instrumentVector | Vector of instrument references to fill. |
|
pure virtual |
| id | Symbol of the instrument to return. |
|
pure virtual |
| id | Id of the instrument to return, |
|
pure virtual |
All instrument build options are enabled.
| symbol | Unique name of the instrument to add. |
| id | Unique id of the instrument to add. |
| options | Instrument options. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
| symbol | Unique name of the instrument to add. |
| id | Unique id of the instrument to add. |
| options | Instrument options. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
All instrument build options are enabled.
| instrumentDefinition | Instrument definition to derive instrument options from. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
| instrumentDefinition | Instrument definition to derive instrument options from. |
| instrumentBuildOptions | Instrument build options. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
All instrument build options are enabled.
| instrumentMessage | Instrument definition (d) message to derive instrument options from. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
| instrumentMessage | Instrument definition (d) message to derive instrument options from. |
| instrumentBuildOptions | Instrument build options. |
| Generates | exception if the instrument already exists. |
|
pure virtual |
| Symbol | of the instrument to remove. |
|
pure virtual |
| Id | of the instrument to remove. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| listener | Reference to callback interface to listen to channel data events. The listener must stay alive until the disconnectInstrumentDefinitionData method is called. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| listener | Reference to callback interface to listen to channel data events. The listener must stay alive until the disconnectSnapshotData method is called. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| listener | Reference to callback interface to listen to channel data events. The listener must stay alive until the disconnectIncrementalData method is called. |
|
pure virtual |
|
pure virtual |
| statistics | Reference to ChannelStatistics structure to fill. |
|
pure virtual |
| tag | Tag value. |
|
pure virtual |
|
pure virtual |
Listener can be assigned only once and cannot be reset.
| listener | Listener |
1.8.6