TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
ttsdk::ITimeSalesEventHandler Class Referenceabstract

Interface for listening to time and sales subscription events. More...

#include <prices.h>

Public Member Functions

virtual ~ITimeSalesEventHandler (void) noexcept=default
 
virtual void OnTimeSalesUpdate (const uint64_t subId, const InstrumentPtr &instrument, const TimeSales &ts)=0
 Callback indicating.
 
virtual void OnError (const uint64_t subId, const InstrumentPtr &instrument, const SubscriptionError code, const char *error)=0
 Callback fired when an error occurs fulfilling a price subscription request.
 
virtual void OnDisconnect (const uint64_t subId, const InstrumentPtr &instrument, const PriceEventType type)=0
 Callback fired when an disconnection event happens.
 
virtual void OnUnsubscribed (const uint64_t subId)=0
 Callback fired when the unsubscribe request is complete and it is safe to.
 

Detailed Description

Interface for listening to time and sales subscription events.

Warning
Events are delivered on a thread managed by the SDK.

Definition at line 210 of file prices.h.

Constructor & Destructor Documentation

◆ ~ITimeSalesEventHandler()

virtual ttsdk::ITimeSalesEventHandler::~ITimeSalesEventHandler ( void )
virtualdefaultnoexcept

Member Function Documentation

◆ OnDisconnect()

virtual void ttsdk::ITimeSalesEventHandler::OnDisconnect ( const uint64_t subId,
const InstrumentPtr & instrument,
const PriceEventType type )
pure virtual

Callback fired when an disconnection event happens.

◆ OnError()

virtual void ttsdk::ITimeSalesEventHandler::OnError ( const uint64_t subId,
const InstrumentPtr & instrument,
const SubscriptionError code,
const char * error )
pure virtual

Callback fired when an error occurs fulfilling a price subscription request.

◆ OnTimeSalesUpdate()

virtual void ttsdk::ITimeSalesEventHandler::OnTimeSalesUpdate ( const uint64_t subId,
const InstrumentPtr & instrument,
const TimeSales & ts )
pure virtual

Callback indicating.

◆ OnUnsubscribed()

virtual void ttsdk::ITimeSalesEventHandler::OnUnsubscribed ( const uint64_t subId)
pure virtual

Callback fired when the unsubscribe request is complete and it is safe to.


The documentation for this class was generated from the following file: