ActiveTick Feed C++ API SDK  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ActiveTickStreamListener Class Reference

#include <ActiveTickStreamListener.h>

Public Member Functions

ACTIVETICKSERVERAPI_API ActiveTickStreamListener (uint64_t session, bool processAllUpdates=false)
 
virtual ACTIVETICKSERVERAPI_API ~ActiveTickStreamListener (void)
 

Protected Member Functions

virtual
ACTIVETICKSERVERAPI_API void 
OnATStreamTradeUpdate (LPATQUOTESTREAM_TRADE_UPDATE pUpdate)
 
virtual
ACTIVETICKSERVERAPI_API void 
OnATStreamQuoteUpdate (LPATQUOTESTREAM_QUOTE_UPDATE pUpdate)
 
virtual
ACTIVETICKSERVERAPI_API void 
OnATStreamRefreshUpdate (LPATQUOTESTREAM_REFRESH_UPDATE pUpdate)
 
virtual
ACTIVETICKSERVERAPI_API void 
OnATStreamTopMarketMoversUpdate (LPATMARKET_MOVERS_STREAM_UPDATE pUpdate)
 

Friends

class ActiveTickServerRequestor
 
class ServerConnection
 
class StreamQueue
 
class StreamSubscriptions
 
ACTIVETICKSERVERAPI_API bool ATInitAPI ()
 
ACTIVETICKSERVERAPI_API bool ATShutdownAPI ()
 

Detailed Description

ActiveTickStreamListener class. This class is used as generic listener for all ActiveTick's API streams. Extend this class and override its virtual functions to easily receive streaming notifications.

Note
In order to use this class for notifications, derived class also needs to extend ActiveTickServerRequestor class. The Requestor class is used for sending stream requests, and Listener class is used for receiving them.
See Also
ActiveTickServerRequestor

Constructor & Destructor Documentation

ACTIVETICKSERVERAPI_API ActiveTickStreamListener::ActiveTickStreamListener ( uint64_t  session,
bool  processAllUpdates = false 
)

ActiveTickStreamListener constructor.

Parameters
sessionSession handle created by ATCreateSession function.
processAllUpdatesIf set to false, each notification will be checked against all subscribed symbols.
See Also
ATCreateSession
virtual ACTIVETICKSERVERAPI_API ActiveTickStreamListener::~ActiveTickStreamListener ( void  )
virtual

Member Function Documentation

virtual ACTIVETICKSERVERAPI_API void ActiveTickStreamListener::OnATStreamQuoteUpdate ( LPATQUOTESTREAM_QUOTE_UPDATE  pUpdate)
inlineprotectedvirtual

Virtual method which is called by ActiveTick API when quote message is received for subscribed symbol.

Parameters
pUpdatePointer to ATQUOTESTREAM_QUOTE_UPDATE containing quote notification data.
See Also
ATQUOTESTREAM_QUOTE_UPDATE
ActiveTickServerRequestor::SendATQuoteStreamRequest
virtual ACTIVETICKSERVERAPI_API void ActiveTickStreamListener::OnATStreamRefreshUpdate ( LPATQUOTESTREAM_REFRESH_UPDATE  pUpdate)
inlineprotectedvirtual

Virtual method which is called by ActiveTick API when refresh message is received for subscribed symbol.

Parameters
pUpdatePointer to ATQUOTESTREAM_REFRESH_UPDATE containing refresh notification data.
See Also
ATQUOTESTREAM_REFRESH_UPDATE
ActiveTickServerRequestor::SendATQuoteStreamRequest
virtual ACTIVETICKSERVERAPI_API void ActiveTickStreamListener::OnATStreamTopMarketMoversUpdate ( LPATMARKET_MOVERS_STREAM_UPDATE  pUpdate)
inlineprotectedvirtual

Virtual method which is called by ActiveTick API when market movers message is received for subscribed symbol.

Parameters
pUpdatePointer to ATMARKET_MOVERS_STREAM_UPDATE containing market movers notification data.
See Also
ATMARKET_MOVERS_STREAM_UPDATE
ActiveTickServerRequestor::SendATQuoteStreamRequest
virtual ACTIVETICKSERVERAPI_API void ActiveTickStreamListener::OnATStreamTradeUpdate ( LPATQUOTESTREAM_TRADE_UPDATE  pUpdate)
inlineprotectedvirtual

Virtual method which is called by ActiveTick API when trade message is received for subscribed symbol.

Parameters
pUpdatePointer to ATQUOTESTREAM_TRADE_UPDATE containing trade notification data.
See Also
ATQUOTESTREAM_TRADE_UPDATE
ActiveTickServerRequestor::SendATQuoteStreamRequest

Friends And Related Function Documentation

friend class ActiveTickServerRequestor
friend
ACTIVETICKSERVERAPI_API bool ATInitAPI ( )
friend

Initialize ActiveTick's API. This function must be called before any other can be function called.

Note
Use ATShutdownAPI function to uninitialize.
Returns
BOOL Returns true if successful, false otherwise.
See Also
ATShutdownAPI
ACTIVETICKSERVERAPI_API bool ATShutdownAPI ( )
friend

Shut down ActiveTick's API and releases all resources.

Returns
true if successful or false otherwise.
See Also
ATInitAPI
friend class ServerConnection
friend
friend class StreamQueue
friend
friend class StreamSubscriptions
friend