dxFeed Graal CXX API
|
Profile information snapshot that contains security instrument description. More...
#include <Profile.hpp>
Public Types | |
using | Ptr = std::shared_ptr<Profile> |
The alias to a type of shared pointer to the Profile object. | |
using | Unique = std::unique_ptr<Profile> |
The alias to a type of unique pointer to the Profile 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 | |
void * | toGraal () const noexcept override |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
Profile () noexcept=default | |
Creates new profile event with default values. | |
Profile (std::string eventSymbol) noexcept | |
Creates new profile event with the specified event symbol. | |
const std::string & | getDescription () const &noexcept |
Returns description of the security instrument. | |
const std::optional< std::string > & | getDescriptionOpt () const &noexcept |
Returns description of the security instrument. | |
void | setDescription (std::string description) noexcept |
Changes description of the security instrument. | |
const ShortSaleRestriction & | getShortSaleRestriction () const &noexcept |
Returns short sale restriction of the security instrument. | |
void | setShortSaleRestriction (const ShortSaleRestriction &restriction) noexcept |
Changes short sale restriction of the security instrument. | |
bool | isShortSaleRestricted () const noexcept |
Returns short sale restriction status of the security instrument. | |
const TradingStatus & | getTradingStatus () const &noexcept |
Returns trading status of the security instrument. | |
void | setTradingStatus (const TradingStatus &status) noexcept |
Changes trading status of the security instrument. | |
bool | isTradingHalted () const noexcept |
Returns trading halt status of the security instrument. | |
const std::string & | getStatusReason () const &noexcept |
Returns description of the reason that trading was halted. | |
const std::optional< std::string > & | getStatusReasonOpt () const &noexcept |
Returns description of the reason that trading was halted. | |
void | setStatusReason (std::string statusReason) noexcept |
Changes description of the reason that trading was halted. | |
std::int64_t | getHaltStartTime () const noexcept |
Returns starting time of the trading halt interval. | |
void | setHaltStartTime (std::int64_t haltStartTime) noexcept |
Changes starting time of the trading halt interval. | |
std::int64_t | getHaltEndTime () const noexcept |
Returns ending time of the trading halt interval. | |
void | setHaltEndTime (std::int64_t haltEndTime) noexcept |
Changes ending time of the trading halt interval. | |
double | getHighLimitPrice () const noexcept |
Returns the maximal (high) allowed price. | |
void | setHighLimitPrice (double highLimitPrice) noexcept |
Changes the maximal (high) allowed price. | |
double | getLowLimitPrice () const noexcept |
Returns the minimal (low) allowed price. | |
void | setLowLimitPrice (double lowLimitPrice) noexcept |
Changes the minimal (low) allowed price. | |
double | getHigh52WeekPrice () const noexcept |
Returns the maximal (high) price in last 52 weeks. | |
void | setHigh52WeekPrice (double high52WeekPrice) noexcept |
Changes the maximal (high) price in last 52 weeks. | |
double | getLow52WeekPrice () const noexcept |
Returns the minimal (low) price in last 52 weeks. | |
void | setLow52WeekPrice (double low52WeekPrice) noexcept |
Changes the minimal (low) price in last 52 weeks. | |
double | getBeta () const noexcept |
Returns the correlation coefficient of the instrument to the S&P500 index. | |
void | setBeta (double beta) noexcept |
Changes the correlation coefficient of the instrument to the S&P500 index. | |
double | getEarningsPerShare () const noexcept |
Returns earnings per share (the company’s profits divided by the number of shares). | |
void | setEarningsPerShare (double earningsPerShare) noexcept |
Changes Earnings per share (the company’s profits divided by the number of shares). | |
double | getDividendFrequency () const noexcept |
Returns frequency of cash dividends payments per year (calculated). | |
void | setDividendFrequency (double dividendFrequency) noexcept |
Changes frequency of cash dividends payments per year. | |
double | getExDividendAmount () const noexcept |
Returns the amount of the last paid dividend. | |
void | setExDividendAmount (double exDividendAmount) noexcept |
Changes the amount of the last paid dividend. | |
std::int32_t | getExDividendDayId () const noexcept |
Returns identifier of the day of the last dividend payment (ex-dividend date). | |
void | setExDividendDayId (std::int32_t exDividendDayId) noexcept |
Changes identifier of the day of the last dividend payment (ex-dividend date). | |
double | getShares () const noexcept |
Returns the number of shares outstanding. | |
void | setShares (double shares) noexcept |
Changes the number of shares outstanding. | |
double | getFreeFloat () const noexcept |
Returns free-float - the number of shares outstanding that are available to the public for trade. | |
void | setFreeFloat (double freeFloat) noexcept |
Changes free-float - the number of shares outstanding that are available to the public for trade. | |
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 EventTypeEnum & | TYPE = EventTypeEnum::PROFILE |
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. | |
Profile information snapshot that contains security instrument description.
It represents the most recent information that is available about the traded security on the market at any given moment of time.
|
inlineexplicitnoexcept |
Creates new profile event with the specified event symbol.
eventSymbol | The event symbol. |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
|
inlinenoexcept |
Returns the correlation coefficient of the instrument to the S&P500 index.
|
inlinenoexcept |
Returns description of the security instrument.
std::string{"<null>"}
).
|
inlinenoexcept |
Returns description of the security instrument.
|
inlinenoexcept |
Returns frequency of cash dividends payments per year (calculated).
|
inlinenoexcept |
Returns earnings per share (the company’s profits divided by the number of shares).
|
inlinenoexcept |
Returns the amount of the last paid dividend.
|
inlinenoexcept |
Returns identifier of the day of the last dividend payment (ex-dividend date).
Identifier of the day is the number of days passed since January 1, 1970.
|
inlinenoexcept |
Returns free-float - the number of shares outstanding that are available to the public for trade.
|
inlinenoexcept |
Returns ending time of the trading halt interval.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
|
inlinenoexcept |
Returns starting time of the trading halt interval.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
|
inlinenoexcept |
Returns the maximal (high) price in last 52 weeks.
|
inlinenoexcept |
Returns the maximal (high) allowed price.
|
inlinenoexcept |
Returns the minimal (low) price in last 52 weeks.
|
inlinenoexcept |
Returns the minimal (low) allowed price.
|
inlinenoexcept |
Returns the number of shares outstanding.
|
inlinenoexcept |
Returns short sale restriction of the security instrument.
|
inlinenoexcept |
Returns description of the reason that trading was halted.
std::string{"<null>"}
).
|
inlinenoexcept |
Returns description of the reason that trading was halted.
|
inlinenoexcept |
Returns trading status of the security instrument.
|
inlinenoexcept |
Returns short sale restriction status of the security instrument.
true
if short sale of the security instrument is restricted.
|
inlinenoexcept |
Returns trading halt status of the security instrument.
true
if trading of the security instrument is halted. Changes the correlation coefficient of the instrument to the S&P500 index.
beta | the correlation coefficient of the instrument to the S&P500 index |
|
inlinenoexcept |
Changes description of the security instrument.
description | description of the security instrument. |
Changes frequency of cash dividends payments per year.
dividendFrequency | frequency of cash dividends payments per year |
Changes Earnings per share (the company’s profits divided by the number of shares).
earningsPerShare | earnings per share |
Changes the amount of the last paid dividend.
exDividendAmount | the amount of the last paid dividend |
|
inlinenoexcept |
Changes identifier of the day of the last dividend payment (ex-dividend date).
Identifier of the day is the number of days passed since January 1, 1970.
exDividendDayId | identifier of the day of the last dividend payment |
Changes free-float - the number of shares outstanding that are available to the public for trade.
freeFloat | the number of shares outstanding that are available to the public for trade |
|
inlinenoexcept |
Changes ending time of the trading halt interval.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
haltEndTime | ending time of the trading halt interval. |
|
inlinenoexcept |
Changes starting time of the trading halt interval.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
haltStartTime | starting time of the trading halt interval. |
Changes the maximal (high) price in last 52 weeks.
high52WeekPrice | the maximal (high) price in last 52 weeks. |
Changes the maximal (high) allowed price.
highLimitPrice | the maximal (high) allowed price. |
Changes the minimal (low) price in last 52 weeks.
low52WeekPrice | the minimal (low) price in last 52 weeks. |
Changes the minimal (low) allowed price.
lowLimitPrice | the minimal (low) allowed price. |
Changes the number of shares outstanding.
shares | shares outstanding. |
|
inlinenoexcept |
Changes short sale restriction of the security instrument.
restriction | short sale restriction of the security instrument. |
|
inlinenoexcept |
Changes description of the reason that trading was halted.
statusReason | description of the reason that trading was halted. |
|
inlinenoexcept |
Changes trading status of the security instrument.
status | trading status of the security instrument. |
|
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.
Implements dxfcpp::EventType.
|
overridevirtualnoexcept |
Returns a string representation of the current object.
Reimplemented from dxfcpp::EventType.