Interface for listening to price subscription events.
More...
#include <prices.hpp>
Interface for listening to price subscription events.
- Warning
- Events are delivered on a thread managed by the SDK. Failure to release back to the SDK may impact subsequent delivery times.
Definition at line 175 of file prices.hpp.
◆ ~PriceEventListener()
virtual tt_core_sdk::PriceEventListener::~PriceEventListener |
( |
void |
| ) |
|
|
virtualdefaultnoexcept |
◆ OnError()
virtual void tt_core_sdk::PriceEventListener::OnError |
( |
const std::string & |
error | ) |
|
|
pure virtual |
Callback fired when an error occurs fulfilling a price subscription request.
- Parameters
-
[in] | error | Message indicating the cause of the failure. |
◆ OnPriceUpdate()
virtual void tt_core_sdk::PriceEventListener::OnPriceUpdate |
( |
const PriceSnap & |
snap | ) |
|
|
pure virtual |
Callback delivering price updates.
- Parameters
-
[in] | snap | Current snapshot of the market |
- Note
- Only updates matching the price subscription filter are delivered.
◆ OnTimeSalesUpdate()
virtual void tt_core_sdk::PriceEventListener::OnTimeSalesUpdate |
( |
const TimeSale & |
ts | ) |
|
|
pure virtual |
Callback delivering Time and Sales updates.
- Parameters
-
[in] | ts | Time and Sales update |
- Note
- Filter must contain PRICE_FILTER_TIME_SALES bit to receive events
The documentation for this class was generated from the following file: