EPAM B2BITS ICE Impact Handler C++
1.1.4
|
Represents UDP Multicast Service (one UDP multicast group with live data) More...
#include <B2BITS_IceImpactUnitService.h>
Public Member Functions | |
virtual Application * | getApplication () const =0 |
Returns a pointer to Application object. More... | |
virtual const std::string & | getChannelID () const =0 |
Returns channel id. More... | |
virtual const int | getPort () const =0 |
Returns service port. More... | |
virtual BookDepth | getBookDepth () const =0 |
Returns book depth. More... | |
virtual const RuntimeParameters & | getParams () const =0 |
Returns parameters. More... | |
virtual void | connect ()=0 |
virtual void | disconnect ()=0 |
virtual bool | isConnected ()=0 |
Returns true if service is in connected state. More... | |
virtual void | subscribeToInstrument (unsigned marketID, subscription_mask_t subscrMask, unsigned long long UserCookie)=0 |
virtual void | unsubscribeFromInstrument (unsigned marketID, subscription_mask_t subscrMask=SubscriptionType::ALL, bool disconnectIfNoMoreSubscribed=true)=0 |
virtual bool | getInstrumentBBO (unsigned marketID, BBOSnapshot &bbo)=0 |
Returns true on success. More... | |
virtual bool | getInstrumentTOP5Prices (unsigned marketID, TOP5PriceData &top5data, unsigned long long *UserCookie)=0 |
virtual bool | getInstrumentTOP10Prices (unsigned marketID, TOP10PriceData &top10data, unsigned long long *UserCookie)=0 |
virtual bool | getSubscription (unsigned marketID, subscription_mask_t &mask)=0 |
Returns true on success. More... | |
virtual void | subscribeToAllInstruments (subscription_mask_t subscrMask, unsigned long long UserCookie)=0 |
virtual void | unsubscribeFromAllInstruments (subscription_mask_t subscrMask=SubscriptionType::ALL, bool disconnectIfNoMoreSubscribed=true)=0 |
virtual unsigned | getEventFlowId ()=0 |
Represents UDP Multicast Service (one UDP multicast group with live data)
|
pure virtual |
Connects the service to the mutlicast group Note: this function should not be called from user callbacks (onBBO(), etc) to avoid potental deadlock situation Starts all threads required by the service. Service becomes connected to UDP multicast group
std::exception | if error occurs |
|
pure virtual |
Disconnects the service from the mutlicast group. Note: this function should not be called from user callbacks (onBBO(), etc) to avoid potental deadlock situation This method returns returns immediately, service becomes disconnected.
no |
|
pure virtual |
Returns a pointer to Application object.
no |
|
pure virtual |
Returns book depth.
no |
|
pure virtual |
Returns channel id.
no |
|
pure virtual |
Returns the event flow id assigned to this service. This value is set in eventFlowId member of Events passed to the user in callbacks. eventFlowId is assigned once when the service is first connected and does not change until IceImpact::Application::release is called.
none |
|
pure virtual |
Returns true on success.
marketID | |
bbo |
std::exception |
|
pure virtual |
getInstrumentTOP10Prices by marketID With SubscriptionParams::tickerPlantMode enabled returns data regardless if instrument was previously subscribed or not.
marketID | to get data for |
top10data | TOP10 levels of the price book |
UserCookie | User cookie supplied when subscribing to the insttrument |
std::runtime_error |
|
pure virtual |
getInstrumentTOP5Prices by marketID With SubscriptionParams::tickerPlantMode enabled returns data regardless if instrument was previously subscribed or not.
marketID | to get data for |
top5data | TOP5 levels of the price book |
UserCookie | User cookie supplied when subscribing to the insttrument |
std::runtime_error |
|
pure virtual |
Returns parameters.
no |
|
pure virtual |
Returns service port.
no |
|
pure virtual |
Returns true on success.
marketID | Instrument to query |
mask | Subscription mask |
std::exception |
|
pure virtual |
Returns true if service is in connected state.
true
if service is connected no |
|
pure virtual |
Subscribes to all instruments.
subscrMask | |
UserCookie |
std::exception |
|
pure virtual |
Subscribes by marketID. This call OR's current instrument subscription mask with the passed value. Note: this function should not be called from user callbacks (onBBO(), etc) to avoid potental deadlock situation
marketID | to subscribe to |
subscrMask | |
UserCookie |
std::exception |
|
pure virtual |
Unsubscribes from all instruments.
subscrMask | subscription mask to use |
disconnectIfNoMoreSubscribed | will disconnect the service from UDP Multicast source if there's no more instruments subscribed provided service is not in ticker plant mode |
std::exception |
|
pure virtual |
Unsubscribes by marketID. This call removes passed subscriptions bits from the current instrument's subscription mask. Note: this function should not be called from user callbacks (onBBO(), etc) to avoid potental deadlock situation
marketID | to unsubscribe from |
subscrMask | subscription mask to use |
disconnectIfNoMoreSubscribed | will disconnect the service from UDP Multicast source if this has been the last instrument subscribed provided service is not in ticker plant mode |
std::exception |