![]() |
B2BITS FIX Antenna C++ 2.33.0
|
Single instrument observer. More...
#include <B2BITS_BatsUnitService.h>
Classes | |
struct | InstrumentCtx |
Represents current state of instrument. More... | |
struct | OrderCtx |
Represents current state of a particular ordrer. More... | |
Service notifications | |
virtual void | onReset (ResetReason::Type rr)=0 |
Called on reset, might be either single symbol or whole unit reset. | |
virtual void | onSpinFinished () |
Called when recovery from Spin server is finished. | |
virtual void | onUnsubscribed () |
Called when listener is unsubscribed. | |
Auction updates | |
Auction update messages, these messages are always delivered | |
virtual void | onMessage (const AuctionUpdateMsg *msg, System::u32 seconds, Timestamp &ts) |
virtual void | onMessage (const AuctionSummaryMsg *msg, System::u32 seconds, Timestamp &ts) |
Raw PITCH messages | |||||||
The following raw PITCH messages are delivered only if UnitService::subscribeToInstrument has been called with
| |||||||
virtual void | onMessage (const AddOrderLongMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const AddOrderShortMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const AddOrderExpandedMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const DeleteMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const OrderExecutedMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const OrderExecutedAtPriceSizeMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const ReduceSizeLongMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const ReduceSizeShortMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const ModifyLongMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const ModifyShortMsg *msg, System::u32 seconds, Timestamp &ts, const OrderCtx &ctx) | ||||||
virtual void | onMessage (const TradingStatusMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const TradeExpandedMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const TradeLongMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
virtual void | onMessage (const TradeShortMsg *msg, System::u32 seconds, Timestamp &ts) | ||||||
Order book incremental updates | |||||||||||
The following updates are delivered only if UnitService::subscribeToInstrument has been called with
| |||||||||||
virtual void | addBookItem (const InstrumentCtx &iCtx, const OrderCtx &ctx, System::u32 orders, System::u16 level, Timestamp &ts)=0 | ||||||||||
virtual void | changeBookItem (const InstrumentCtx &iCtx, const OrderCtx &ctx, System::u32 orders, System::u16 level, Timestamp &ts)=0 | ||||||||||
virtual void | removeBookItem (const InstrumentCtx &iCtx, char side, System::u16 level, Timestamp &ts)=0 | ||||||||||
virtual void | onTrade (const InstrumentCtx &iCtx, Timestamp &ts) | ||||||||||
virtual void | onTradingStatus (const InstrumentCtx &iCtx, Timestamp &ts) | ||||||||||
Single instrument observer.
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Called on reset, might be either single symbol or whole unit reset.
|
inlinevirtual |
Called when recovery from Spin server is finished.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Called when listener is unsubscribed.
Listener is not used by service after this call, you may call delete this
from it. When service is being destroyed it automatically unsubscribes all listeners.
|
pure virtual |