Interface for listening to time and sales subscription events.
More...
#include <prices.h>
Interface for listening to time and sales subscription events.
- Warning
- Events are delivered on a thread managed by the SDK.
Definition at line 212 of file prices.h.
◆ ~ITimeSalesEventHandler()
| virtual ttsdk::ITimeSalesEventHandler::~ITimeSalesEventHandler |
( |
void | | ) |
|
|
virtualdefaultnoexcept |
◆ 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 |
◆ 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: