|
The following raw PITCH messages are delivered only if UnitService::subscribeToInstrument has been called with dispatchMessages = true
- Parameters
-
| msg | Raw PITCH message |
| seconds | Last BATS Unit timestamp, sent via Bats::TimeMsg message |
| ctx | This value represents current state of this order, before message msg is applied |
|
| 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) |
| |
|
The following updates are delivered only if UnitService::subscribeToInstrument has been called with depth > 0
- Parameters
-
| iCtx | Current instrument context |
| ctx | This value represents aggregate state on this price level |
| orders | Number of orders on this price level |
| level | Price level > 0, top level = 1 |
| side | 'B' or 'S' side |
|
| 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.