dxFeed Graal CXX API
|
Represents an indexed collection of up-to-date information about some condition or state of an external entity that updates in real-time. More...
#include <IndexedEvent.hpp>
Public Types | |
using | Ptr = std::shared_ptr<IndexedEvent> |
The alias to a type of shared pointer to the IndexedEvent object. | |
Public Member Functions | |
virtual const IndexedEventSource & | getSource () const &noexcept=0 |
Returns the source of this event. | |
virtual std::int32_t | getEventFlags () const noexcept=0 |
Returns transactional event flags. | |
virtual EventFlagsMask | getEventFlagsMask () const noexcept=0 |
Returns transactional event flags. | |
virtual void | setEventFlags (std::int32_t eventFlags) noexcept=0 |
Changes transactional event flags. | |
virtual void | setEventFlags (const EventFlagsMask &eventFlags) noexcept=0 |
Changes transactional event flags. | |
virtual std::int64_t | getIndex () const noexcept=0 |
Returns unique per-symbol index of this event. | |
virtual void | setIndex (std::int64_t index)=0 |
Changes unique per-symbol index of this event. | |
Static Public Attributes | |
static const EventFlag | TX_PENDING = EventFlag::TX_PENDING |
0x01 - A bitmask to get transaction pending indicator from the value of eventFlags property. | |
static const EventFlag | REMOVE_EVENT = EventFlag::REMOVE_EVENT |
0x02 - A bitmask to get removal indicator from the value of eventFlags property. | |
static const EventFlag | SNAPSHOT_BEGIN = EventFlag::SNAPSHOT_BEGIN |
0x04 - A bitmask to get snapshot begin indicator from the value of eventFlags property. | |
static const EventFlag | SNAPSHOT_END = EventFlag::SNAPSHOT_END |
0x08 - A bitmask to get snapshot end indicator from the value of eventFlags property. | |
static const EventFlag | SNAPSHOT_SNIP = EventFlag::SNAPSHOT_SNIP |
0x10 - A bitmask to get snapshot snip indicator from the value of eventFlags property. | |
static const EventFlag | SNAPSHOT_MODE = EventFlag::SNAPSHOT_MODE |
0x40 - A bitmask to set snapshot mode indicator into the value of eventFlags property. | |
Represents an indexed collection of up-to-date information about some condition or state of an external entity that updates in real-time.
For example, Order represents an order to buy or to sell some market instrument that is currently active on a market exchange and multiple orders are active for each symbol at any given moment in time. Candle represent snapshots of aggregate information about trading over a specific time period and there are multiple periods available. The Candle is also an example of TimeSeriesEvent that is a more specific event type.
Index for each event is available via index property. Indexed events retain information about multiple events per symbol based on the event index and are conflated based on the event index. Last indexed event for each symbol and index is always delivered to event listeners on subscription, but intermediate (next-to-last) events for each symbol+index pair are not queued anywhere, they are simply discarded as stale events. More recent events represent an up-to-date information about some external entity.
Some indexed events, like Order, support multiple sources of information for the same symbol. The event source is available via source property. The value of source property is always DEFAULT for time-series events and other singe-sourced events like Series, that do not support this feature.
See also the "Event Flags" section
|
pure virtualnoexcept |
Returns transactional event flags.
See EventFlag "Event Flags" section.
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, and Underlying.
|
pure virtualnoexcept |
Returns transactional event flags.
See EventFlag "Event Flags" section.
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, and Underlying.
|
pure virtualnoexcept |
Returns unique per-symbol index of this event.
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, TimeSeriesEvent, and Underlying.
|
pure virtualnoexcept |
Returns the source of this event.
Implemented in Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, TimeSeriesEvent, and Underlying.
|
pure virtualnoexcept |
Changes transactional event flags.
See EventFlag "Event Flags" section.
eventFlags | transactional event flags' mask. |
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, and Underlying.
|
pure virtualnoexcept |
Changes transactional event flags.
See EventFlag "Event Flags" section.
eventFlags | transactional event flags. |
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, and Underlying.
|
pure virtual |
Changes unique per-symbol index of this event.
index | unique per-symbol index of this event. |
Implemented in Candle, Greeks, OptionSale, OrderBase, Series, TheoPrice, TimeAndSale, and Underlying.
|
static |
0x02
- A bitmask to get removal indicator from the value of eventFlags property.
|
static |
0x04
- A bitmask to get snapshot begin indicator from the value of eventFlags property.
|
static |
0x08
- A bitmask to get snapshot end indicator from the value of eventFlags property.
|
static |
0x40
- A bitmask to set snapshot mode indicator into the value of eventFlags property.
This flag is intended for publishing only.
|
static |
0x10
- A bitmask to get snapshot snip indicator from the value of eventFlags property.
|
static |
0x01
- A bitmask to get transaction pending indicator from the value of eventFlags property.