dxFeed Graal CXX API
|
Summary information snapshot about the trading session including session highs, lows, etc. More...
#include <Summary.hpp>
Public Types | |
using | Ptr = std::shared_ptr<Summary> |
The alias to a type of shared pointer to the Summary object. | |
using | Unique = std::unique_ptr<Summary> |
The alias to a type of unique pointer to the Summary object. | |
Public Types inherited from MarketEvent | |
using | Ptr = std::shared_ptr<MarketEvent> |
The alias to a type of shared pointer to the MarketEvent object. | |
Public Types inherited from EventTypeWithSymbol< std::string > | |
using | Ptr |
The alias to a type of shared pointer to the EventTypeWithSymbol's child object. | |
Public Types inherited from EventType | |
using | Ptr = std::shared_ptr<EventType> |
The alias to a type of shared pointer to the EventType object. | |
Public Types inherited from SharedEntity | |
using | Ptr = std::shared_ptr<SharedEntity> |
The alias to a type of shared pointer to the SharedEntity object. | |
Public Types inherited from LastingEvent | |
using | Ptr = std::shared_ptr<LastingEvent> |
The alias to a type of shared pointer to the LastingEvent object. | |
Public Member Functions | |
void * | toGraal () const override |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
Summary () noexcept=default | |
Creates new summary event with default values. | |
Summary (std::string eventSymbol) noexcept | |
Creates new summary event with the specified event symbol. | |
std::int32_t | getDayId () const noexcept |
Returns identifier of the day that this summary represents. | |
void | setDayId (std::int32_t dayId) noexcept |
Changes identifier of the day that this summary represents. | |
double | getDayOpenPrice () const noexcept |
Returns the first (open) price for the day. | |
void | setDayOpenPrice (double dayOpenPrice) noexcept |
Changes the first (open) price for the day. | |
double | getDayHighPrice () const noexcept |
Returns the maximal (high) price for the day. | |
void | setDayHighPrice (double dayHighPrice) noexcept |
Changes the maximal (high) price for the day. | |
double | getDayLowPrice () const noexcept |
Returns the minimal (low) price for the day. | |
void | setDayLowPrice (double dayLowPrice) noexcept |
Changes the minimal (low) price for the day. | |
double | getDayClosePrice () const noexcept |
Returns the last (close) price for the day. | |
void | setDayClosePrice (double dayClosePrice) noexcept |
Changes the last (close) price for the day. | |
const PriceType & | getDayClosePriceType () const &noexcept |
Returns the price type of the last (close) price for the day. | |
void | setDayClosePriceType (const PriceType &type) noexcept |
Changes the price type of the last (close) price for the day. | |
std::int32_t | getPrevDayId () const noexcept |
Returns identifier of the previous day that this summary represents. | |
void | setPrevDayId (std::int32_t prevDayId) noexcept |
Changes identifier of the previous day that this summary represents. | |
double | getPrevDayClosePrice () const noexcept |
Returns the last (close) price for the previous day. | |
void | setPrevDayClosePrice (double prevDayClosePrice) noexcept |
Changes the last (close) price for the previous day. | |
const PriceType & | getPrevDayClosePriceType () const &noexcept |
Returns the price type of the last (close) price for the previous day. | |
void | setPrevDayClosePriceType (const PriceType &type) noexcept |
Changes the price type of the last (close) price for the previous day. | |
double | getPrevDayVolume () const noexcept |
Returns total volume traded for the previous day. | |
void | setPrevDayVolume (double prevDayVolume) noexcept |
Changes total volume traded for the previous day. | |
std::int64_t | getOpenInterest () const noexcept |
Returns open interest of the symbol as the number of open contracts. | |
void | setOpenInterest (std::int64_t openInterest) noexcept |
Changes open interest of the symbol as the number of open contracts. | |
std::string | toString () const noexcept override |
Returns a string representation of the current object. | |
Public Member Functions inherited from MarketEvent | |
const std::string & | getEventSymbol () const &noexcept override |
Returns symbol of this event. | |
const std::optional< std::string > & | getEventSymbolOpt () const &noexcept override |
Returns symbol of this event. | |
void | setEventSymbol (const std::string &eventSymbol) noexcept override |
Changes symbol of this event. | |
std::int64_t | getEventTime () const noexcept override |
Returns time when event was created or zero when time is not available. | |
void | setEventTime (std::int64_t eventTime) noexcept override |
Changes event creation time. | |
Public Member Functions inherited from SharedEntity | |
template<typename T > | |
bool | is () const noexcept |
Checks that pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides. | |
template<typename T > | |
std::shared_ptr< T > | sharedAs () noexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T. | |
template<typename T > | |
std::shared_ptr< T > | sharedAs () const noexcept |
Returns a pointer to the current object wrapped in a smart pointer to type T. | |
Public Member Functions inherited from Entity | |
virtual | ~Entity () noexcept=default |
The default virtual d-tor. | |
Static Public Member Functions | |
static Ptr | fromGraal (void *graalNative) |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure. | |
static void | freeGraal (void *graalNative) |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
Static Public Attributes | |
static const EventTypeEnum & | TYPE = EventTypeEnum::SUMMARY |
Type identifier and additional information about the current event class. | |
Additional Inherited Members | |
Protected Member Functions inherited from MarketEvent | |
MarketEvent (std::string eventSymbol) noexcept | |
Protected constructor for concrete implementation classes that initializes eventSymbol property. | |
Summary information snapshot about the trading session including session highs, lows, etc.
It represents the most recent information that is available about the trading session in the market at any given moment of time.
|
inlineexplicitnoexcept |
Creates new summary event with the specified event symbol.
eventSymbol | The event symbol. |
|
static |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
|
static |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure.
graalNative | The pointer to the dxFeed Graal SDK structure. |
std::invalid_argument |
|
inlinenoexcept |
Returns the last (close) price for the day.
|
inlinenoexcept |
Returns the price type of the last (close) price for the day.
|
inlinenoexcept |
Returns the maximal (high) price for the day.
|
inlinenoexcept |
Returns identifier of the day that this summary represents.
Identifier of the day is the number of days passed since January 1, 1970.
|
inlinenoexcept |
Returns the minimal (low) price for the day.
|
inlinenoexcept |
Returns the first (open) price for the day.
|
inlinenoexcept |
Returns open interest of the symbol as the number of open contracts.
|
inlinenoexcept |
Returns the last (close) price for the previous day.
|
inlinenoexcept |
Returns the price type of the last (close) price for the previous day.
|
inlinenoexcept |
Returns identifier of the previous day that this summary represents.
Identifier of the day is the number of days passed since January 1, 1970.
|
inlinenoexcept |
Returns total volume traded for the previous day.
|
inlinenoexcept |
Changes the last (close) price for the day.
dayClosePrice | the last (close) price for the day. |
|
inlinenoexcept |
Changes the price type of the last (close) price for the day.
type | the price type of the last (close) price for the day. |
|
inlinenoexcept |
Changes the maximal (high) price for the day.
dayHighPrice | the maximal (high) price for the day. |
|
inlinenoexcept |
Changes identifier of the day that this summary represents.
Identifier of the day is the number of days passed since January 1, 1970.
dayId | identifier of the day that this summary represents. |
|
inlinenoexcept |
Changes the minimal (low) price for the day.
dayLowPrice | the minimal (low) price for the day. |
|
inlinenoexcept |
Changes the first (open) price for the day.
dayOpenPrice | the first (open) price for the day. |
|
inlinenoexcept |
Changes open interest of the symbol as the number of open contracts.
openInterest | open interest of the symbol as the number of open contracts. |
|
inlinenoexcept |
Changes the last (close) price for the previous day.
prevDayClosePrice | the last (close) price for the previous day. |
|
inlinenoexcept |
Changes the price type of the last (close) price for the previous day.
type | the price type of the last (close) price for the previous day. |
|
inlinenoexcept |
Changes identifier of the previous day that this summary represents.
Identifier of the day is the number of days passed since January 1, 1970.
prevDayId | identifier of the previous day that this summary represents. |
|
inlinenoexcept |
Changes total volume traded for the previous day.
prevDayVolume | total volume traded for the previous day. |
|
overridevirtual |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Fills the dxFeed Graal SDK structure's fields by the data of the current entity (recursively if necessary). Returns the pointer to the filled structure.
Implements EventType.
|
overridevirtualnoexcept |
Returns a string representation of the current object.
Reimplemented from EventType.