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

Time and Sale represents a trade or other market event with price, like market open/close price, etc. More...

#include <TimeAndSale.hpp>

+ Inheritance diagram for dxfcpp::TimeAndSale:

Public Types

using Ptr = std::shared_ptr<TimeAndSale>
 The alias to a type of shared pointer to the TimeAndSale object.
 
using Unique = std::unique_ptr<TimeAndSale>
 The alias to a type of unique pointer to the TimeAndSale 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::TimeSeriesEvent
using Ptr = std::shared_ptr<TimeSeriesEvent>
 The alias to a type of shared pointer to the TimeSeriesEvent object.
 
- Public Types inherited from dxfcpp::IndexedEvent
using Ptr = std::shared_ptr<IndexedEvent>
 The alias to a type of shared pointer to the IndexedEvent object.
 

Public Member Functions

voidtoGraal () const noexcept override
 Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
 
 TimeAndSale () noexcept=default
 Creates new time and sale event with default values.
 
 TimeAndSale (std::string eventSymbol) noexcept
 Creates new time and sale event with the specified event symbol.
 
const IndexedEventSourcegetSource () const &noexcept override
 Returns the source of this event.
 
std::int32_t getEventFlags () const noexcept override
 Returns transactional event flags.
 
EventFlagsMask getEventFlagsMask () const noexcept override
 Returns transactional event flags.
 
void setEventFlags (std::int32_t eventFlags) noexcept override
 Changes transactional event flags.
 
void setEventFlags (const EventFlagsMask &eventFlags) noexcept override
 Changes transactional event flags.
 
std::int64_t getIndex () const noexcept override
 Returns unique per-symbol index of this event.
 
void setIndex (std::int64_t index) noexcept override
 Changes unique per-symbol index of this event.
 
std::int64_t getTime () const noexcept override
 Returns timestamp of the event in milliseconds.
 
void setTime (std::int64_t time) noexcept
 Changes timestamp of the event in milliseconds.
 
std::int64_t getTimeNanos () const noexcept
 Returns time of the original event in nanoseconds.
 
void setTimeNanos (std::int64_t timeNanos) noexcept
 Changes time of the original event.
 
void setTimeNanoPart (std::int32_t timeNanoPart) noexcept
 Changes microseconds and nanoseconds time part of the original event.
 
std::int32_t getTimeNanoPart () const noexcept
 Returns microseconds and nanoseconds time part of the original event.
 
std::int32_t getSequence () const noexcept
 Returns the sequence number of this event to distinguish events that have the same time.
 
void setSequence (int sequence) noexcept
 Changes sequence number of this event.
 
std::int16_t getExchangeCode () const noexcept
 Returns exchange code of this time and sale event.
 
std::string getExchangeCodeString () const noexcept
 Returns exchange code of this time and sale event as UTF8 string.
 
void setExchangeCode (char exchangeCode) noexcept
 Changes exchange code of this time and sale event.
 
void setExchangeCode (std::int16_t exchangeCode) noexcept
 Changes exchange code of this time and sale event.
 
double getPrice () const noexcept
 Returns price of this time and sale event.
 
void setPrice (double price) noexcept
 Changes price of this time and sale event.
 
double getSize () const noexcept
 Returns size of this time and sale event.
 
void setSize (double size) noexcept
 Changes size of this time and sale event.
 
double getBidPrice () const noexcept
 Returns the current bid price on the market when this time and sale event had occurred.
 
void setBidPrice (double bidPrice) noexcept
 Changes the current bid price on the market when this time and sale event had occurred.
 
double getAskPrice () const noexcept
 Returns the current ask price on the market when this time and sale event had occurred.
 
void setAskPrice (double askPrice) noexcept
 Changes price of this time and sale event.the current ask price on the market when this time and sale event had occurred.
 
const std::string & getExchangeSaleConditions () const &noexcept
 Returns sale conditions provided for this event by data feed.
 
const std::optional< std::string > & getExchangeSaleConditionsOpt () const &noexcept
 Returns sale conditions provided for this event by data feed.
 
void setExchangeSaleConditions (std::string exchangeSaleConditions) noexcept
 Changes sale conditions provided for this event by data feed.
 
char getTradeThroughExempt () const noexcept
 Returns TradeThroughExempt flag of this time and sale event.
 
void setTradeThroughExempt (char tradeThroughExempt) noexcept
 Changes TradeThroughExempt flag of this time and sale event.
 
const SidegetAggressorSide () const &noexcept
 Returns aggressor side of this time and sale event.
 
void setAggressorSide (const Side &side) noexcept
 Changes aggressor side of this time and sale event.
 
bool isSpreadLeg () const noexcept
 Returns whether this event represents a spread leg.
 
void setSpreadLeg (bool spreadLeg) noexcept
 Changes whether this event represents a spread leg.
 
bool isExtendedTradingHours () const noexcept
 Returns whether this event represents an extended trading hours sale.
 
void setExtendedTradingHours (bool extendedTradingHours) noexcept
 Changes whether this event represents an extended trading hours sale.
 
bool isValidTick () const noexcept
 Returns whether this event represents a valid intraday tick.
 
void setValidTick (bool validTick) noexcept
 Changes whether this event represents a valid intraday tick.
 
const TimeAndSaleTypegetType () const &noexcept
 Returns type of this time and sale event.
 
void setType (const TimeAndSaleType &type) noexcept
 Changes type of this time and sale event.
 
bool isNew () const noexcept
 Returns whether this is a new event (not cancellation or correction).
 
bool isCorrection () const noexcept
 Returns whether this is a correction of a previous event.
 
bool isCancel () const noexcept
 Returns whether this is a cancellation of a previous event.
 
const std::string & getBuyer () const &noexcept
 Returns buyer of this time and sale event.
 
const std::optional< std::string > & getBuyerOpt () const &noexcept
 Returns buyer of this time and sale event.
 
void setBuyer (std::string buyer) noexcept
 Changes buyer of this time and sale event.
 
const std::string & getSeller () const &noexcept
 Returns seller of this time and sale event.
 
const std::optional< std::string > & getSellerOpt () const &noexcept
 Returns seller of this time and sale event.
 
void setSeller (std::string seller) noexcept
 Changes seller of this time and sale event.
 
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.
 
- Public Member Functions inherited from dxfcpp::TimeSeriesEvent
const IndexedEventSourcegetSource () const &noexcept override
 Returns the source identifier for this event, which is always DEFAULT for time-series events.
 
std::int64_t getIndex () const noexcept override
 Returns unique per-symbol index of this event.
 
virtual std::int64_t getEventId () const noexcept
 Returns unique per-symbol index of this event.
 

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 constexpr std::uint32_t MAX_SEQUENCE = (1U << 22U) - 1U
 Maximum allowed sequence value.
 
static const EventTypeEnumTYPE = EventTypeEnum::TIME_AND_SALE
 Type identifier and additional information about the current event class.
 
- Static Public Attributes inherited from dxfcpp::IndexedEvent
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.
 

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

Time and Sale represents a trade or other market event with price, like market open/close price, etc.

Time and Sales are intended to provide information about trades in a continuous time slice (unlike Trade events which are supposed to provide snapshot about the current last trade).

Time and Sale events have unique index which can be used for later correction/cancellation processing.

Some time and sale sources provide a consistent view of the set of known time and sales for a given time range when used with DXFeedTimeSeriesSubscription}. The corresponding information is carried in eventFlags property. The logic behind this property is detailed in IndexedEvent class documentation. Multiple event sources for the same symbol are not supported for time and sales, thus source property is always DEFAULT.

Regular subscription via DXFeedSubscription produces a stream of time and sale events as they happen and their eventFlags are always zero.

Publishing of time and sales events follows the general rules explained in TimeSeriesEvent class documentation.

This event is implemented on top of QDS record TimeAndSale.

Constructor & Destructor Documentation

◆ TimeAndSale()

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

Creates new time and sale event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ freeGraal()

void dxfcpp::TimeAndSale::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.

◆ getAggressorSide()

const Side & dxfcpp::TimeAndSale::getAggressorSide ( ) const &
inlinenoexcept

Returns aggressor side of this time and sale event.

Returns
aggressor side of this time and sale event.

◆ getAskPrice()

double dxfcpp::TimeAndSale::getAskPrice ( ) const
inlinenoexcept

Returns the current ask price on the market when this time and sale event had occurred.

Returns
the current ask price on the market when this time and sale event had occurred.

◆ getBidPrice()

double dxfcpp::TimeAndSale::getBidPrice ( ) const
inlinenoexcept

Returns the current bid price on the market when this time and sale event had occurred.

Returns
the current bid price on the market when this time and sale event had occurred.

◆ getBuyer()

const std::string & dxfcpp::TimeAndSale::getBuyer ( ) const &
inlinenoexcept

Returns buyer of this time and sale event.

Returns
buyer of this time and sale event or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getBuyerOpt()

const std::optional< std::string > & dxfcpp::TimeAndSale::getBuyerOpt ( ) const &
inlinenoexcept

Returns buyer of this time and sale event.

Returns
buyer of this time and sale event or std::nullopt

◆ getEventFlags()

std::int32_t dxfcpp::TimeAndSale::getEventFlags ( ) const
inlineoverridevirtualnoexcept

Returns transactional event flags.

See EventFlag "Event Flags" section.

Returns
The transactional event flags.

Implements dxfcpp::IndexedEvent.

◆ getEventFlagsMask()

EventFlagsMask dxfcpp::TimeAndSale::getEventFlagsMask ( ) const
inlineoverridevirtualnoexcept

Returns transactional event flags.

See EventFlag "Event Flags" section.

Returns
The transactional event flags' mask.

Implements dxfcpp::IndexedEvent.

◆ getExchangeCode()

std::int16_t dxfcpp::TimeAndSale::getExchangeCode ( ) const
inlinenoexcept

Returns exchange code of this time and sale event.

Returns
exchange code of this time and sale event.

◆ getExchangeCodeString()

std::string dxfcpp::TimeAndSale::getExchangeCodeString ( ) const
inlinenoexcept

Returns exchange code of this time and sale event as UTF8 string.

Returns
exchange code of this time and sale event as UTF8 string.

◆ getExchangeSaleConditions()

const std::string & dxfcpp::TimeAndSale::getExchangeSaleConditions ( ) const &
inlinenoexcept

Returns sale conditions provided for this event by data feed.

This field format is specific for every particular data feed.

Returns
sale conditions or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getExchangeSaleConditionsOpt()

const std::optional< std::string > & dxfcpp::TimeAndSale::getExchangeSaleConditionsOpt ( ) const &
inlinenoexcept

Returns sale conditions provided for this event by data feed.

This field format is specific for every particular data feed.

Returns
sale conditions or std::nullopt

◆ getIndex()

std::int64_t dxfcpp::TimeAndSale::getIndex ( ) const
inlineoverridevirtualnoexcept

Returns unique per-symbol index of this event.

The index is composed of time and sequence. Changing either time or sequence changes event index.

Returns
unique index of this event.

Implements dxfcpp::IndexedEvent.

◆ getPrice()

double dxfcpp::TimeAndSale::getPrice ( ) const
inlinenoexcept

Returns price of this time and sale event.

Returns
price of this time and sale event.

◆ getSeller()

const std::string & dxfcpp::TimeAndSale::getSeller ( ) const &
inlinenoexcept

Returns seller of this time and sale event.

Returns
seller of this time and sale event or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getSellerOpt()

const std::optional< std::string > & dxfcpp::TimeAndSale::getSellerOpt ( ) const &
inlinenoexcept

Returns seller of this time and sale event.

Returns
seller of this time and sale event or std::nullopt

◆ getSequence()

std::int32_t dxfcpp::TimeAndSale::getSequence ( ) const
inlinenoexcept

Returns the sequence number of this event to distinguish events that have the same time.

This sequence number does not have to be unique and does not need to be sequential. Sequence can range from 0 to MAX_SEQUENCE.

Returns
The sequence number of this event

◆ getSize()

double dxfcpp::TimeAndSale::getSize ( ) const
inlinenoexcept

Returns size of this time and sale event.

Returns
size of this time and sale event.

◆ getSource()

const IndexedEventSource & dxfcpp::TimeAndSale::getSource ( ) const &
inlineoverridevirtualnoexcept

Returns the source of this event.

Returns
The source of this event.

Implements dxfcpp::IndexedEvent.

◆ getTime()

std::int64_t dxfcpp::TimeAndSale::getTime ( ) const
inlineoverridevirtualnoexcept

Returns timestamp of the event in milliseconds.

Returns
timestamp of the event in milliseconds

Implements dxfcpp::TimeSeriesEvent.

◆ getTimeNanoPart()

std::int32_t dxfcpp::TimeAndSale::getTimeNanoPart ( ) const
inlinenoexcept

Returns microseconds and nanoseconds time part of the original event.

Returns
microseconds and nanoseconds time part of the original event.

◆ getTimeNanos()

std::int64_t dxfcpp::TimeAndSale::getTimeNanos ( ) const
inlinenoexcept

Returns time of the original event in nanoseconds.

Time is measured in nanoseconds between the current time and midnight, January 1, 1970 UTC.

Returns
time of the original event in nanoseconds.

◆ getTradeThroughExempt()

char dxfcpp::TimeAndSale::getTradeThroughExempt ( ) const
inlinenoexcept

Returns TradeThroughExempt flag of this time and sale event.

Returns
TradeThroughExempt flag of this time and sale event.

◆ getType()

const TimeAndSaleType & dxfcpp::TimeAndSale::getType ( ) const &
inlinenoexcept

Returns type of this time and sale event.

Returns
type of this time and sale event.

◆ isCancel()

bool dxfcpp::TimeAndSale::isCancel ( ) const
inlinenoexcept

Returns whether this is a cancellation of a previous event.

It is false for newly created time and sale event.

Returns
true if this is a cancellation of a previous event

◆ isCorrection()

bool dxfcpp::TimeAndSale::isCorrection ( ) const
inlinenoexcept

Returns whether this is a correction of a previous event.

It is false for newly created time and sale event.

Returns
true if this is a correction of a previous event

◆ isExtendedTradingHours()

bool dxfcpp::TimeAndSale::isExtendedTradingHours ( ) const
inlinenoexcept

Returns whether this event represents an extended trading hours sale.

Returns
true if this event represents an extended trading hours sale.

◆ isNew()

bool dxfcpp::TimeAndSale::isNew ( ) const
inlinenoexcept

Returns whether this is a new event (not cancellation or correction).

It is true for newly created time and sale event.

Returns
true if this is a new event (not cancellation or correction).

◆ isSpreadLeg()

bool dxfcpp::TimeAndSale::isSpreadLeg ( ) const
inlinenoexcept

Returns whether this event represents a spread leg.

Returns
true if this event represents a spread leg.

◆ isValidTick()

bool dxfcpp::TimeAndSale::isValidTick ( ) const
inlinenoexcept

Returns whether this event represents a valid intraday tick.

Note, that a correction for a previously distributed valid tick represents a new valid tick itself, but a cancellation of a previous valid tick does not.

Returns
true if this event represents a valid intraday tick.

◆ setAggressorSide()

void dxfcpp::TimeAndSale::setAggressorSide ( const Side & side)
inlinenoexcept

Changes aggressor side of this time and sale event.

Parameters
sideaggressor side of this time and sale event.

◆ setAskPrice()

void dxfcpp::TimeAndSale::setAskPrice ( double askPrice)
inlinenoexcept

Changes price of this time and sale event.the current ask price on the market when this time and sale event had occurred.

Parameters
askPricethe current ask price on the market when this time and sale event had occurred.

◆ setBidPrice()

void dxfcpp::TimeAndSale::setBidPrice ( double bidPrice)
inlinenoexcept

Changes the current bid price on the market when this time and sale event had occurred.

Parameters
bidPricethe current bid price on the market when this time and sale event had occurred.

◆ setBuyer()

void dxfcpp::TimeAndSale::setBuyer ( std::string buyer)
inlinenoexcept

Changes buyer of this time and sale event.

Parameters
buyerbuyer of this time and sale event.

◆ setEventFlags() [1/2]

void dxfcpp::TimeAndSale::setEventFlags ( const EventFlagsMask & eventFlags)
inlineoverridevirtualnoexcept

Changes transactional event flags.

See EventFlag "Event Flags" section.

Parameters
eventFlagstransactional event flags' mask.

Implements dxfcpp::IndexedEvent.

◆ setEventFlags() [2/2]

void dxfcpp::TimeAndSale::setEventFlags ( std::int32_t eventFlags)
inlineoverridevirtualnoexcept

Changes transactional event flags.

See EventFlag "Event Flags" section.

Parameters
eventFlagstransactional event flags.

Implements dxfcpp::IndexedEvent.

◆ setExchangeCode() [1/2]

void dxfcpp::TimeAndSale::setExchangeCode ( char exchangeCode)
noexcept

Changes exchange code of this time and sale event.

Parameters
exchangeCodeexchange code of this time and sale event.

◆ setExchangeCode() [2/2]

void dxfcpp::TimeAndSale::setExchangeCode ( std::int16_t exchangeCode)
inlinenoexcept

Changes exchange code of this time and sale event.

Parameters
exchangeCodeexchange code of this time and sale event.

◆ setExchangeSaleConditions()

void dxfcpp::TimeAndSale::setExchangeSaleConditions ( std::string exchangeSaleConditions)
inlinenoexcept

Changes sale conditions provided for this event by data feed.

Parameters
exchangeSaleConditionssale conditions.

◆ setExtendedTradingHours()

void dxfcpp::TimeAndSale::setExtendedTradingHours ( bool extendedTradingHours)
inlinenoexcept

Changes whether this event represents an extended trading hours sale.

Parameters
extendedTradingHourstrue if this event represents an extended trading hours sale.

◆ setIndex()

void dxfcpp::TimeAndSale::setIndex ( std::int64_t index)
inlineoverridevirtualnoexcept

Changes unique per-symbol index of this event.

The index is composed of time and sequence and invocation of this method changes time and sequence. Do not use this method directly. Change time and/or sequence.

Parameters
indexthe event index.
See also
getIndex()

Implements dxfcpp::IndexedEvent.

◆ setPrice()

void dxfcpp::TimeAndSale::setPrice ( double price)
inlinenoexcept

Changes price of this time and sale event.

Parameters
priceprice of this time and sale event.

◆ setSeller()

void dxfcpp::TimeAndSale::setSeller ( std::string seller)
inlinenoexcept

Changes seller of this time and sale event.

Parameters
sellerseller of this time and sale event.

◆ setSequence()

void dxfcpp::TimeAndSale::setSequence ( int sequence)
inlinenoexcept

Changes sequence number of this event.

Parameters
sequencethe sequence.
See also
getSequence()

◆ setSize()

void dxfcpp::TimeAndSale::setSize ( double size)
inlinenoexcept

Changes size of this time and sale event.

Parameters
sizesize of this time and sale event.

◆ setSpreadLeg()

void dxfcpp::TimeAndSale::setSpreadLeg ( bool spreadLeg)
inlinenoexcept

Changes whether this event represents a spread leg.

Parameters
spreadLegtrue if this event represents a spread leg.

◆ setTime()

void dxfcpp::TimeAndSale::setTime ( std::int64_t time)
inlinenoexcept

Changes timestamp of the event in milliseconds.

Parameters
timetimestamp of the event in milliseconds.
See also
getTime()

◆ setTimeNanoPart()

void dxfcpp::TimeAndSale::setTimeNanoPart ( std::int32_t timeNanoPart)
inlinenoexcept

Changes microseconds and nanoseconds time part of the original event.

Parameters
timeNanoPartmicroseconds and nanoseconds time part of the original event.

◆ setTimeNanos()

void dxfcpp::TimeAndSale::setTimeNanos ( std::int64_t timeNanos)
inlinenoexcept

Changes time of the original event.

Time is measured in nanoseconds between the current time and midnight, January 1, 1970 UTC.

Parameters
timeNanostime of the original event in nanoseconds.

◆ setTradeThroughExempt()

void dxfcpp::TimeAndSale::setTradeThroughExempt ( char tradeThroughExempt)
inlinenoexcept

Changes TradeThroughExempt flag of this time and sale event.

Parameters
tradeThroughExemptTradeThroughExempt flag of this time and sale event.

◆ setType()

void dxfcpp::TimeAndSale::setType ( const TimeAndSaleType & type)
inlinenoexcept

Changes type of this time and sale event.

Parameters
typetype of this time and sale event.

◆ setValidTick()

void dxfcpp::TimeAndSale::setValidTick ( bool validTick)
inlinenoexcept

Changes whether this event represents a valid intraday tick.

Parameters
validTicktrue if this event represents a valid intraday tick.

◆ toGraal()

void * dxfcpp::TimeAndSale::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::TimeAndSale::toString ( ) const
overridevirtualnoexcept

Returns a string representation of the current object.

Returns
a string representation

Reimplemented from dxfcpp::EventType.

Member Data Documentation

◆ MAX_SEQUENCE

constexpr std::uint32_t dxfcpp::TimeAndSale::MAX_SEQUENCE = (1U << 22U) - 1U
staticconstexpr

Maximum allowed sequence value.

See also
setSequence()