B2BITS FIX Antenna C++  2.27.0
Public Member Functions | Protected Member Functions | List of all members
Bovespa::BovespaApplication Class Referenceabstract

Represents Bovespa application. More...

#include <B2BITS_BovespaApplication.h>

Public Member Functions

void getAllInstrumentsOnChannel (std::string const &channel_id, SecurityDefinitionListener *listener)
 Subscribes to instrument replay channel by channel ID. More...
 
virtual BovespaApplicationListenergetListener () const =0
 Returns listener assigned to application. More...
 
virtual BovespaChannels getUsingChannels () const =0
 Get list of using channels in application. More...
 
virtual void join ()=0
 Waits until application is stopped. More...
 
virtual bool join (unsigned int timeout)=0
 Waits until application is stopped or timeout accured. More...
 
virtual Engine::FIXMessageparseFixMessage (std::string const &fixMessage) const =0
 parce string representation of FIX message into Engine::FIXMessage class param fixMessage -string representation of FIX message More...
 
virtual void release ()=0
 Releases resources assigned to application. More...
 
void resolveInstrumentBySecDesc (SecurityDesc const &secDesc, SecurityDefinitionListener *listener, std::string const &channel_id="")
 Subscribes to instrument replay by security description in channel defined by channel_id. More...
 
void resolveInstrumentBySecID (SecurityID const &secID, SecurityDefinitionListener *listener, std::string const &channel_id="")
 Subscribes to instrument replay by security ID in channel defined by channel_id. More...
 
void resolveInstrumentBySecurityGroup (std::string const &secGroup, SecurityDefinitionListener *listener, std::string const &channel_id="")
 Subscribes to instrument replay by security group in channel defined by channel_id. More...
 
virtual void resolveInstrumentBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 Subscribes to instrument replay by string representation of special tag value in channel defined by channel_id. More...
 
void resolveInstrumentBySymbol (Symbol const &symbol, SecurityDefinitionListener *listener, std::string const &channel_id="")
 Subscribes to instrument replay by symbol in channel defined by channel_id. More...
 
virtual void resolveInstrumentByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 Subscribes to instrument replay by string representation of tag value in channel defined by channel_id. More...
 
virtual void stop ()=0
 Stops application. More...
 
virtual void stopAllListeners ()=0
 Unsubscribe all listeners from instrument replay. More...
 
void stopChannelListener (std::string const &channel_id, SecurityDefinitionListener *listener)
 Unsubscribe ftom instrument replay by channel id. More...
 
virtual void stopResolvingBySpecialTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 Unsubscribe from instrument replay by string representation of special tag value in channel defined by channel_id. More...
 
virtual void stopResolvingByTag (int tag, std::string const &value, SecurityDefinitionListener *listener, std::string const &channelId="")=0
 Unsubscribe from instrument replay by string representation of tag value in channel defined by channel_id. More...
 
void stopSecDescListener (SecurityDesc const &secDesc, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security description. More...
 
void stopSecGroupListener (std::string const &secGroup, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security group. More...
 
void stopSecIDListener (SecurityID const &secID, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by security ID. More...
 
void stopSymbolListener (Symbol const &symbol, SecurityDefinitionListener *listener)
 Unsubscribe from instrument replay by symbol. More...
 
virtual void subscribeToFeed (FeedListener *feedListener, std::string const &feedID)=0
 subscribe to all messages on specified by feedId feed More...
 
void subscribeToIncrementalFeed (FeedListener *feedListener, std::string const &channel_id=0)
 subscribe to all messages on specified from incremental feed on specified by channel_id More...
 
virtual void subscribeToInstrument (BovespaSubscriptionItem const &subscription, InstrumentListener *listener)=0
 Subscribes to market data for instrument. More...
 
virtual void unsubscribeAllInstruments ()=0
 Unsubscribe from all instruments. More...
 
virtual void unsubscribeFromAllFeeds ()=0
 unsubscribe from all feeds More...
 
virtual void unsubscribeFromFeed (std::string const &feedID)=0
 unsubscribe from specified by feedId feed More...
 
virtual void unsubscribeFromIncrementalFeed (std::string const &channel_id)
 unsubscribe from specified by channelId incremental feed More...
 
virtual void unsubscribeFromInstrument (BovespaSubscriptionItem const &subscription)=0
 Unsubscribes from instrument. More...
 

Protected Member Functions

virtual ~BovespaApplication (void)
 

Detailed Description

Represents Bovespa application.

Constructor & Destructor Documentation

◆ ~BovespaApplication()

virtual Bovespa::BovespaApplication::~BovespaApplication ( void  )
inlineprotectedvirtual

Member Function Documentation

◆ getAllInstrumentsOnChannel()

void Bovespa::BovespaApplication::getAllInstrumentsOnChannel ( std::string const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Subscribes to instrument replay channel by channel ID.

Note
set channelId = "" for resolving on all channels

References Bovespa::ST_ALLCHANNELS, and Bovespa::ST_CHANNELID.

◆ getListener()

virtual BovespaApplicationListener* Bovespa::BovespaApplication::getListener ( ) const
pure virtual

Returns listener assigned to application.

◆ getUsingChannels()

virtual BovespaChannels Bovespa::BovespaApplication::getUsingChannels ( ) const
pure virtual

Get list of using channels in application.

◆ join() [1/2]

virtual void Bovespa::BovespaApplication::join ( )
pure virtual

Waits until application is stopped.

◆ join() [2/2]

virtual bool Bovespa::BovespaApplication::join ( unsigned int  timeout)
pure virtual

Waits until application is stopped or timeout accured.

return true, if application was stopped

◆ parseFixMessage()

virtual Engine::FIXMessage* Bovespa::BovespaApplication::parseFixMessage ( std::string const &  fixMessage) const
pure virtual

parce string representation of FIX message into Engine::FIXMessage class param fixMessage -string representation of FIX message

◆ release()

virtual void Bovespa::BovespaApplication::release ( )
pure virtual

Releases resources assigned to application.

◆ resolveInstrumentBySecDesc()

void Bovespa::BovespaApplication::resolveInstrumentBySecDesc ( SecurityDesc const &  secDesc,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security description in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

References FIXFields::SecurityDesc.

◆ resolveInstrumentBySecID()

void Bovespa::BovespaApplication::resolveInstrumentBySecID ( SecurityID const &  secID,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security ID in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

References FIXFields::SecurityID.

◆ resolveInstrumentBySecurityGroup()

void Bovespa::BovespaApplication::resolveInstrumentBySecurityGroup ( std::string const &  secGroup,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by security group in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

References FIXFields::SecurityGroup.

◆ resolveInstrumentBySpecialTag()

virtual void Bovespa::BovespaApplication::resolveInstrumentBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Subscribes to instrument replay by string representation of special tag value in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

◆ resolveInstrumentBySymbol()

void Bovespa::BovespaApplication::resolveInstrumentBySymbol ( Symbol const &  symbol,
SecurityDefinitionListener listener,
std::string const &  channel_id = "" 
)
inline

Subscribes to instrument replay by symbol in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

References FIXFields::Symbol.

◆ resolveInstrumentByTag()

virtual void Bovespa::BovespaApplication::resolveInstrumentByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Subscribes to instrument replay by string representation of tag value in channel defined by channel_id.

Note
set channelId = "" for resolving on all channels

◆ stop()

virtual void Bovespa::BovespaApplication::stop ( )
pure virtual

Stops application.

Method does not stop application immediately. Use join method to wait until will stop.

◆ stopAllListeners()

virtual void Bovespa::BovespaApplication::stopAllListeners ( )
pure virtual

Unsubscribe all listeners from instrument replay.

◆ stopChannelListener()

void Bovespa::BovespaApplication::stopChannelListener ( std::string const &  channel_id,
SecurityDefinitionListener listener 
)
inline

Unsubscribe ftom instrument replay by channel id.

References Bovespa::ST_CHANNELID.

◆ stopResolvingBySpecialTag()

virtual void Bovespa::BovespaApplication::stopResolvingBySpecialTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Unsubscribe from instrument replay by string representation of special tag value in channel defined by channel_id.

Note
set channelId = "" for stop resolving on all channels

◆ stopResolvingByTag()

virtual void Bovespa::BovespaApplication::stopResolvingByTag ( int  tag,
std::string const &  value,
SecurityDefinitionListener listener,
std::string const &  channelId = "" 
)
pure virtual

Unsubscribe from instrument replay by string representation of tag value in channel defined by channel_id.

Note
set channelId = "" for stop resolving on all channels

◆ stopSecDescListener()

void Bovespa::BovespaApplication::stopSecDescListener ( SecurityDesc const &  secDesc,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security description.

References FIXFields::SecurityDesc.

◆ stopSecGroupListener()

void Bovespa::BovespaApplication::stopSecGroupListener ( std::string const &  secGroup,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security group.

References FIXFields::SecurityGroup.

◆ stopSecIDListener()

void Bovespa::BovespaApplication::stopSecIDListener ( SecurityID const &  secID,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by security ID.

References FIXFields::SecurityID.

◆ stopSymbolListener()

void Bovespa::BovespaApplication::stopSymbolListener ( Symbol const &  symbol,
SecurityDefinitionListener listener 
)
inline

Unsubscribe from instrument replay by symbol.

References FIXFields::Symbol.

◆ subscribeToFeed()

virtual void Bovespa::BovespaApplication::subscribeToFeed ( FeedListener feedListener,
std::string const &  feedID 
)
pure virtual

subscribe to all messages on specified by feedId feed

Note
tcp recovery feed is not supported for subscription, but you can enable TCP recovery for incremental feeds to recovery missed messegs

◆ subscribeToIncrementalFeed()

void Bovespa::BovespaApplication::subscribeToIncrementalFeed ( FeedListener feedListener,
std::string const &  channel_id = 0 
)
inline

subscribe to all messages on specified from incremental feed on specified by channel_id

Note
tcp recovery feed is not supported for subscription
set channel_id = "", to subscribe to all incrementall feeds
onSubscribe and onUnsubscribe method will be called for each channel
you can enable TCP recovery for incremental feeds to recovery missed messegs

◆ subscribeToInstrument()

virtual void Bovespa::BovespaApplication::subscribeToInstrument ( BovespaSubscriptionItem const &  subscription,
InstrumentListener listener 
)
pure virtual

Subscribes to market data for instrument.

◆ unsubscribeAllInstruments()

virtual void Bovespa::BovespaApplication::unsubscribeAllInstruments ( )
pure virtual

Unsubscribe from all instruments.

◆ unsubscribeFromAllFeeds()

virtual void Bovespa::BovespaApplication::unsubscribeFromAllFeeds ( )
pure virtual

unsubscribe from all feeds

◆ unsubscribeFromFeed()

virtual void Bovespa::BovespaApplication::unsubscribeFromFeed ( std::string const &  feedID)
pure virtual

unsubscribe from specified by feedId feed

◆ unsubscribeFromIncrementalFeed()

virtual void Bovespa::BovespaApplication::unsubscribeFromIncrementalFeed ( std::string const &  channel_id)
inlinevirtual

unsubscribe from specified by channelId incremental feed

Note
set channel_id = "", to subscribe to all incrementall feeds

◆ unsubscribeFromInstrument()

virtual void Bovespa::BovespaApplication::unsubscribeFromInstrument ( BovespaSubscriptionItem const &  subscription)
pure virtual

Unsubscribes from instrument.