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

#include <tt_cplus_sdk.h>

Public Types

enum class  Status {
  INITIALIZED , READY , UNAUTHORIZED , RECOMMEND_UPDATE ,
  REQUIRES_UPDATE , FORCED_SHUTDOWN , SDKALGO_CONNECTED , EDGE_NOT_CONNECTED ,
  SDKALGO_NOT_CONNECTED , DOWN , INVALID_PRICE_CONFIG , ORDER_THROTTLE_LIMIT_EXCEEDED ,
  EDGE_DISCONNECTED
}
 

Public Member Functions

 IEventHandler ()
 
virtual ~IEventHandler ()
 
virtual void OnStatus (const Status status)=0
 
virtual void OnAccountStatus (const AccountConnectionStatus &connectionStatus)
 
virtual void OnInstrumentUpdated (InstrumentPtr, InstrumentPtr)
 
virtual void OnInstrumentDeleted (InstrumentPtr)
 
virtual void OnAlgoDefinitionUpdated (AlgoDefinitionPtr, AlgoDefinitionPtr)
 
virtual void OnAlgoDefinitionDeleted (AlgoDefinitionPtr)
 

Detailed Description

Definition at line 48 of file tt_cplus_sdk.h.

Member Enumeration Documentation

◆ Status

Enumerator
INITIALIZED 
READY 
UNAUTHORIZED 
RECOMMEND_UPDATE 
REQUIRES_UPDATE 
FORCED_SHUTDOWN 
SDKALGO_CONNECTED 
EDGE_NOT_CONNECTED 
SDKALGO_NOT_CONNECTED 
DOWN 
INVALID_PRICE_CONFIG 
ORDER_THROTTLE_LIMIT_EXCEEDED 
EDGE_DISCONNECTED 

Definition at line 51 of file tt_cplus_sdk.h.

Constructor & Destructor Documentation

◆ IEventHandler()

ttsdk::IEventHandler::IEventHandler ( )
inline

Definition at line 68 of file tt_cplus_sdk.h.

◆ ~IEventHandler()

virtual ttsdk::IEventHandler::~IEventHandler ( )
inlinevirtual

Definition at line 69 of file tt_cplus_sdk.h.

Member Function Documentation

◆ OnAccountStatus()

virtual void ttsdk::IEventHandler::OnAccountStatus ( const AccountConnectionStatus & connectionStatus)
inlinevirtual

Definition at line 71 of file tt_cplus_sdk.h.

◆ OnAlgoDefinitionDeleted()

virtual void ttsdk::IEventHandler::OnAlgoDefinitionDeleted ( AlgoDefinitionPtr )
inlinevirtual

Definition at line 75 of file tt_cplus_sdk.h.

◆ OnAlgoDefinitionUpdated()

virtual void ttsdk::IEventHandler::OnAlgoDefinitionUpdated ( AlgoDefinitionPtr ,
AlgoDefinitionPtr  )
inlinevirtual

Definition at line 74 of file tt_cplus_sdk.h.

◆ OnInstrumentDeleted()

virtual void ttsdk::IEventHandler::OnInstrumentDeleted ( InstrumentPtr )
inlinevirtual

Definition at line 73 of file tt_cplus_sdk.h.

◆ OnInstrumentUpdated()

virtual void ttsdk::IEventHandler::OnInstrumentUpdated ( InstrumentPtr ,
InstrumentPtr  )
inlinevirtual

Definition at line 72 of file tt_cplus_sdk.h.

◆ OnStatus()

virtual void ttsdk::IEventHandler::OnStatus ( const Status status)
pure virtual

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