dxFeed Graal CXX API
Loading...
Searching...
No Matches
Summary Class Referencefinal

Summary information snapshot about the trading session including session highs, lows, etc. More...

#include <Summary.hpp>

+ Inheritance diagram for Summary:

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 PriceTypegetDayClosePriceType () 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 PriceTypegetPrevDayClosePriceType () 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 EventTypeEnumTYPE = 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Summary()

Summary::Summary ( std::string eventSymbol)
inlineexplicitnoexcept

Creates new summary event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ freeGraal()

void Summary::freeGraal ( void * graalNative)
static

Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).

Parameters
graalNativeThe pointer to the dxFeed Graal SDK structure.

◆ fromGraal()

std::shared_ptr< Summary > Summary::fromGraal ( void * graalNative)
static

Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure.

Parameters
graalNativeThe pointer to the dxFeed Graal SDK structure.
Returns
The object of current type.
Exceptions
std::invalid_argument

◆ getDayClosePrice()

double Summary::getDayClosePrice ( ) const
inlinenoexcept

Returns the last (close) price for the day.

Returns
the last (close) price for the day.

◆ getDayClosePriceType()

const PriceType & Summary::getDayClosePriceType ( ) const &
inlinenoexcept

Returns the price type of the last (close) price for the day.

Returns
the price type of the last (close) price for the day.

◆ getDayHighPrice()

double Summary::getDayHighPrice ( ) const
inlinenoexcept

Returns the maximal (high) price for the day.

Returns
the maximal (high) price for the day.

◆ getDayId()

std::int32_t Summary::getDayId ( ) const
inlinenoexcept

Returns identifier of the day that this summary represents.

Identifier of the day is the number of days passed since January 1, 1970.

Returns
identifier of the day that this summary represents.

◆ getDayLowPrice()

double Summary::getDayLowPrice ( ) const
inlinenoexcept

Returns the minimal (low) price for the day.

Returns
the minimal (low) price for the day.

◆ getDayOpenPrice()

double Summary::getDayOpenPrice ( ) const
inlinenoexcept

Returns the first (open) price for the day.

Returns
the first (open) price for the day.

◆ getOpenInterest()

std::int64_t Summary::getOpenInterest ( ) const
inlinenoexcept

Returns open interest of the symbol as the number of open contracts.

Returns
open interest of the symbol as the number of open contracts.

◆ getPrevDayClosePrice()

double Summary::getPrevDayClosePrice ( ) const
inlinenoexcept

Returns the last (close) price for the previous day.

Returns
the last (close) price for the previous day.

◆ getPrevDayClosePriceType()

const PriceType & Summary::getPrevDayClosePriceType ( ) const &
inlinenoexcept

Returns the price type of the last (close) price for the previous day.

Returns
the price type of the last (close) price for the previous day.

◆ getPrevDayId()

std::int32_t Summary::getPrevDayId ( ) const
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.

Returns
identifier of the previous day that this summary represents.

◆ getPrevDayVolume()

double Summary::getPrevDayVolume ( ) const
inlinenoexcept

Returns total volume traded for the previous day.

Returns
total volume traded for the previous day.

◆ setDayClosePrice()

void Summary::setDayClosePrice ( double dayClosePrice)
inlinenoexcept

Changes the last (close) price for the day.

Parameters
dayClosePricethe last (close) price for the day.

◆ setDayClosePriceType()

void Summary::setDayClosePriceType ( const PriceType & type)
inlinenoexcept

Changes the price type of the last (close) price for the day.

Parameters
typethe price type of the last (close) price for the day.

◆ setDayHighPrice()

void Summary::setDayHighPrice ( double dayHighPrice)
inlinenoexcept

Changes the maximal (high) price for the day.

Parameters
dayHighPricethe maximal (high) price for the day.

◆ setDayId()

void Summary::setDayId ( std::int32_t dayId)
inlinenoexcept

Changes identifier of the day that this summary represents.

Identifier of the day is the number of days passed since January 1, 1970.

Parameters
dayIdidentifier of the day that this summary represents.

◆ setDayLowPrice()

void Summary::setDayLowPrice ( double dayLowPrice)
inlinenoexcept

Changes the minimal (low) price for the day.

Parameters
dayLowPricethe minimal (low) price for the day.

◆ setDayOpenPrice()

void Summary::setDayOpenPrice ( double dayOpenPrice)
inlinenoexcept

Changes the first (open) price for the day.

Parameters
dayOpenPricethe first (open) price for the day.

◆ setOpenInterest()

void Summary::setOpenInterest ( std::int64_t openInterest)
inlinenoexcept

Changes open interest of the symbol as the number of open contracts.

Parameters
openInterestopen interest of the symbol as the number of open contracts.

◆ setPrevDayClosePrice()

void Summary::setPrevDayClosePrice ( double prevDayClosePrice)
inlinenoexcept

Changes the last (close) price for the previous day.

Parameters
prevDayClosePricethe last (close) price for the previous day.

◆ setPrevDayClosePriceType()

void Summary::setPrevDayClosePriceType ( const PriceType & type)
inlinenoexcept

Changes the price type of the last (close) price for the previous day.

Parameters
typethe price type of the last (close) price for the previous day.

◆ setPrevDayId()

void Summary::setPrevDayId ( std::int32_t prevDayId)
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.

Parameters
prevDayIdidentifier of the previous day that this summary represents.

◆ setPrevDayVolume()

void Summary::setPrevDayVolume ( double prevDayVolume)
inlinenoexcept

Changes total volume traded for the previous day.

Parameters
prevDayVolumetotal volume traded for the previous day.

◆ toGraal()

void * Summary::toGraal ( ) const
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.

Returns
The pointer to the filled dxFeed Graal SDK structure

Implements EventType.

◆ toString()

std::string Summary::toString ( ) const
overridevirtualnoexcept

Returns a string representation of the current object.

Returns
a string representation

Reimplemented from EventType.