Interface for listening to price subscription events.
virtual void OnUnsubscribed(const uint64_t subId)=0
Callback fired when the unsubscribe request is complete and it is safe to.
virtual void OnPriceUpdate(const uint64_t subId, const InstrumentPtr &instrument, const PriceSnap &snap)=0
Callback delivering price updates.
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 ~IPriceEventHandler(void) noexcept=default
Interface for listening to time and sales subscription events.
virtual ~ITimeSalesEventHandler(void) noexcept=default
virtual void OnDisconnect(const uint64_t subId, const InstrumentPtr &instrument, const PriceEventType type)=0
Callback fired when an disconnection event happens.
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 OnUnsubscribed(const uint64_t subId)=0
Callback fired when the unsubscribe request is complete and it is safe to.
@ UNKNOWN_SUBSCRIPTION_ID
@ EXCEEDED_MAX_SUBS_ALLOWED
@ INVALID_SUBSCRIPTION_PARAMETERS
@ DUPLICATE_SUBSCRIPTION_ID
@ PRODUCT_INFO_NOT_AVAILABLE
@ INVALID_INSTRUMENT_SYMBOL
double quantity
Total quantity at this level.
int32_t order_count
Number of orders that make up the total quantity.
double implied_quantity
Implied quantity contributing to the total quantity.
size_t count
Number of available price depth levels.
struct ttsdk::PriceSnap::DepthSnap::DepthLevel levels[MAX_DEPTH_LEVEL]
uint64_t instrument_id
Instrument Id for the trade.
uint64_t epoch_transact_time_nano
uint64_t conflation_no
App level conflation value.
uint64_t server_time
Price Server timestamp (mdrc_recv_time);.
uint64_t settlement_time
Settlement time in nanos past the epoch (U64NAN when unavailable)
double last_trade_price
Last traded price (NAN when unavailable)
ImpliedsSource implieds_source
DepthSnap asks
Price feed depth.
double ind_bid
Indicative Bid price (NAN when unavailable)
TradingStatus market_state
Market State.
double volume
Total contract volume.
uint64_t client_time
Client timestamp (client_recv_time);.
double close_price
Close price (NAN when unavailable)
SnapStatus simulated
status of the simulated subscription
uint64_t exchange_time
Exchange timestamp.
double ind_settle
Indicative values.
double settlement_price
Settlement price (NAN when unavailable)
PriceEventType event_type
Price snapshot properties.
uint64_t seq_no
Price snap sequence number.
double ind_quantity
Indicative quantity (NAN when unavailable)
SnapStatus direct
status of the direct subscription
double open_price
Price feed properties.
double open_interest
Open interest.
double high_price
High price (NAN when unavailable)
bool all_snaps_ready
helper bool indicates all requested data has been received and merged
double last_trade_quantity
Last traded quantity (NAN when unavailable)
uint64_t sdk_time
User listener timestamp (order_stimulus_received_algo)
double cum_last_trade_quantity
Cum Last traded quantity (NAN when unavailable)
double ind_price
Indicative price (NAN when unavailable)
static constexpr size_t MAX_DEPTH_LEVEL
Max supported levels of depth.
SnapStatus implied
status of the implied subscription
double low_price
Low price (NAN when unavailable)
uint64_t exchange_transact_time_ns
uint64_t epoch_transact_time_nano
Time and Sales trade properties.
uint64_t alternate_epoch_transact_time_nano
ttsdk::TradeIndicator indicator
ttsdk::TradeType trade_side
Trade Side.
ttsdk::TradeQualifier qualifier
Trade Qualifier.
double alternate_last_traded_quantity
ttsdk::ExchSupportedOTCTypes otc_type
double last_trade_quantity
Last traded quantity (NAN when unavailable)
double last_trade_price
Time and Sales feed properties.
double alternate_last_traded_price
Alternate trade information.
uint32_t ask_counterparty_id
uint32_t bid_counterparty_id
Time and Sales update data.
PriceEventType event_type
static constexpr size_t MAX_EVENTS
Max supported trades in one update.
uint64_t instrument_id
Instrument Id for the trade.
size_t count
Number of available T&S events.