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

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

#include <Summary.hpp>

+ Inheritance diagram for dxfcpp::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 dxfcpp::MarketEvent
using Ptr = std::shared_ptr<MarketEvent>
 The alias to a type of shared pointer to the MarketEvent object.
 
- Public Types inherited from dxfcpp::EventTypeWithSymbol< std::string >
using Ptr
 The alias to a type of shared pointer to the EventTypeWithSymbol's child object.
 
- Public Types inherited from dxfcpp::EventType
using Ptr = std::shared_ptr<EventType>
 The alias to a type of shared pointer to the EventType object.
 
- Public Types inherited from dxfcpp::SharedEntity
using Ptr = std::shared_ptr<SharedEntity>
 The alias to a type of shared pointer to the SharedEntity object.
 
- Public Types inherited from dxfcpp::LastingEvent
using Ptr = std::shared_ptr<LastingEvent>
 The alias to a type of shared pointer to the LastingEvent object.
 

Public Member Functions

voidtoGraal () const noexcept 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 dxfcpp::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 dxfcpp::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 dxfcpp::Entity
virtual ~Entity () noexcept=default
 The default virtual d-tor.
 

Static Public Member Functions

static void freeGraal (void *graalNative) noexcept
 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 dxfcpp::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()

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

Creates new summary event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ freeGraal()

void dxfcpp::Summary::freeGraal ( void * graalNative)
staticnoexcept

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

Parameters
graalNativeThe pointer to the dxFeed Graal SDK structure.

◆ getDayClosePrice()

double dxfcpp::Summary::getDayClosePrice ( ) const
inlinenoexcept

Returns the last (close) price for the day.

Returns
the last (close) price for the day.

◆ getDayClosePriceType()

const PriceType & dxfcpp::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 dxfcpp::Summary::getDayHighPrice ( ) const
inlinenoexcept

Returns the maximal (high) price for the day.

Returns
the maximal (high) price for the day.

◆ getDayId()

std::int32_t dxfcpp::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 dxfcpp::Summary::getDayLowPrice ( ) const
inlinenoexcept

Returns the minimal (low) price for the day.

Returns
the minimal (low) price for the day.

◆ getDayOpenPrice()

double dxfcpp::Summary::getDayOpenPrice ( ) const
inlinenoexcept

Returns the first (open) price for the day.

Returns
the first (open) price for the day.

◆ getOpenInterest()

std::int64_t dxfcpp::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 dxfcpp::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 & dxfcpp::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 dxfcpp::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 dxfcpp::Summary::getPrevDayVolume ( ) const
inlinenoexcept

Returns total volume traded for the previous day.

Returns
total volume traded for the previous day.

◆ setDayClosePrice()

void dxfcpp::Summary::setDayClosePrice ( double dayClosePrice)
inlinenoexcept

Changes the last (close) price for the day.

Parameters
dayClosePricethe last (close) price for the day.

◆ setDayClosePriceType()

void dxfcpp::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 dxfcpp::Summary::setDayHighPrice ( double dayHighPrice)
inlinenoexcept

Changes the maximal (high) price for the day.

Parameters
dayHighPricethe maximal (high) price for the day.

◆ setDayId()

void dxfcpp::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 dxfcpp::Summary::setDayLowPrice ( double dayLowPrice)
inlinenoexcept

Changes the minimal (low) price for the day.

Parameters
dayLowPricethe minimal (low) price for the day.

◆ setDayOpenPrice()

void dxfcpp::Summary::setDayOpenPrice ( double dayOpenPrice)
inlinenoexcept

Changes the first (open) price for the day.

Parameters
dayOpenPricethe first (open) price for the day.

◆ setOpenInterest()

void dxfcpp::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 dxfcpp::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 dxfcpp::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 dxfcpp::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 dxfcpp::Summary::setPrevDayVolume ( double prevDayVolume)
inlinenoexcept

Changes total volume traded for the previous day.

Parameters
prevDayVolumetotal volume traded for the previous day.

◆ toGraal()

void * dxfcpp::Summary::toGraal ( ) const
overridevirtualnoexcept

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 dxfcpp::EventType.

◆ toString()

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

Returns a string representation of the current object.

Returns
a string representation

Reimplemented from dxfcpp::EventType.