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

Quote event is a snapshot of the best bid and ask prices, and other fields that change with each quote. More...

#include <Quote.hpp>

+ Inheritance diagram for dxfcpp::Quote:

Public Types

using Ptr = std::shared_ptr<Quote>
 The alias to a type of shared pointer to the Quote object.
 
using Unique = std::unique_ptr<Quote>
 The alias to a type of unique pointer to the Quote 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).
 
 Quote () noexcept=default
 Creates new quote event with default values.
 
 Quote (std::string eventSymbol) noexcept
 Creates new quote event with the specified event symbol.
 
QuotewithEventSymbol (const std::string &eventSymbol) noexcept
 Changes event's symbol and returns the current quote.
 
Quote::Ptr withEventSymbolShared (const std::string &eventSymbol) noexcept
 Changes event's symbol and returns a shared pointer to the current quote.
 
QuotewithEventTime (std::int64_t eventTime) noexcept
 Changes event's creation time and returns the current quote.
 
Quote::Ptr withEventTimeShared (std::int64_t eventTime) noexcept
 Changes event's creation time and returns a shared pointer to the current quote.
 
std::int32_t getSequence () const noexcept
 Returns sequence number of this quote to distinguish quotes that have the same time.
 
void setSequence (std::int32_t sequence) noexcept
 Changes sequence number of this quote.
 
QuotewithSequence (std::int32_t sequence) noexcept
 Changes sequence number of this quote and returns the current quote.
 
Quote::Ptr withSequenceShared (std::int32_t sequence) noexcept
 Changes sequence number of this quote and returns a shared pointer to the current quote.
 
std::int64_t getTime () const noexcept
 Returns time of the last bid or ask change.
 
std::int64_t getTimeNanos () const noexcept
 Returns time of the last bid or ask change in nanoseconds.
 
std::int32_t getTimeNanoPart () const noexcept
 Returns microseconds and nanoseconds part of time of the last bid or ask change.
 
void setTimeNanoPart (std::int32_t timeNanoPart) noexcept
 Changes microseconds and nanoseconds part of time of the last bid or ask change.
 
QuotewithTimeNanoPart (std::int32_t timeNanoPart) noexcept
 Changes microseconds and nanoseconds part of time of the last bid or ask change and returns the current quote.
 
Quote::Ptr withTimeNanoPartShared (std::int32_t timeNanoPart) noexcept
 Changes microseconds and nanoseconds part of time of the last bid or ask change and returns a shared pointer to the current quote.
 
std::int64_t getBidTime () const noexcept
 Returns time of the last bid change.
 
void setBidTime (std::int64_t bidTime) noexcept
 Changes time of the last bid change.
 
QuotewithBidTime (std::int64_t bidTime) noexcept
 Changes time of the last bid change and returns the current quote.
 
Quote::Ptr withBidTimeShared (std::int64_t bidTime) noexcept
 Changes time of the last bid change and returns a shared pointer to the current quote.
 
std::int16_t getBidExchangeCode () const noexcept
 Returns bid exchange code.
 
std::string getBidExchangeCodeString () const noexcept
 Returns bid exchange code as UTF8 string.
 
void setBidExchangeCode (char bidExchangeCode) noexcept
 Changes bid exchange code.
 
QuotewithBidExchangeCode (char bidExchangeCode) noexcept
 Changes bid exchange code and returns the current quote.
 
Quote::Ptr withBidExchangeCodeShared (char bidExchangeCode) noexcept
 Changes bid exchange code and returns a shared pointer to the current quote.
 
void setBidExchangeCode (std::int16_t bidExchangeCode) noexcept
 Changes bid exchange code.
 
QuotewithBidExchangeCode (std::int16_t bidExchangeCode) noexcept
 Changes bid exchange code and returns the current quote.
 
Quote::Ptr withBidExchangeCodeShared (std::int16_t bidExchangeCode) noexcept
 Changes bid exchange code and returns a shared pointer to the current quote.
 
double getBidPrice () const noexcept
 Returns bid price.
 
void setBidPrice (double bidPrice) noexcept
 Changes bid price.
 
QuotewithBidPrice (double bidPrice) noexcept
 Changes bid price and returns the current quote.
 
Quote::Ptr withBidPriceShared (double bidPrice) noexcept
 Changes bid price and returns a shared pointer to the current quote.
 
double getBidSize () const noexcept
 Returns bid size.
 
void setBidSize (double bidSize) noexcept
 Changes bid size.
 
QuotewithBidSize (double bidSize) noexcept
 Changes bid size and returns the current quote.
 
Quote::Ptr withBidSizeShared (double bidSize) noexcept
 Changes bid size and returns a shared pointer to the current quote.
 
std::int64_t getAskTime () const noexcept
 Returns time of the last ask change.
 
void setAskTime (std::int64_t askTime) noexcept
 Changes time of the last ask change.
 
QuotewithAskTime (std::int64_t askTime) noexcept
 Changes time of the last ask change and returns the current quote.
 
Quote::Ptr withAskTimeShared (std::int64_t askTime) noexcept
 Changes time of the last ask change and returns a shared pointer to the current quote.
 
std::int16_t getAskExchangeCode () const noexcept
 Returns ask exchange code.
 
std::string getAskExchangeCodeString () const noexcept
 Returns ask exchange code as UTF8 string.
 
void setAskExchangeCode (char askExchangeCode) noexcept
 Changes ask exchange code.
 
QuotewithAskExchangeCode (char askExchangeCode) noexcept
 Changes ask exchange code and returns the current quote.
 
Quote::Ptr withAskExchangeCodeShared (char askExchangeCode) noexcept
 Changes ask exchange code and returns a shared pointer to the current quote.
 
void setAskExchangeCode (std::int16_t askExchangeCode) noexcept
 Changes ask exchange code.
 
QuotewithAskExchangeCode (std::int16_t askExchangeCode) noexcept
 Changes ask exchange code and returns the current quote.
 
Quote::Ptr withAskExchangeCodeShared (std::int16_t askExchangeCode) noexcept
 Changes ask exchange code and returns a shared pointer to the current quote.
 
double getAskPrice () const
 Returns ask price.
 
void setAskPrice (double askPrice)
 Changes ask price.
 
QuotewithAskPrice (double askPrice) noexcept
 Changes ask price and returns the current quote.
 
Quote::Ptr withAskPriceShared (double askPrice) noexcept
 Changes ask price and returns a shared pointer to the current quote.
 
double getAskSize () const
 Returns ask size.
 
void setAskSize (double askSize)
 Changes ask size.
 
QuotewithAskSize (double askSize) noexcept
 Changes ask size and returns the current quote.
 
Quote::Ptr withAskSizeShared (double askSize) noexcept
 Changes ask size and returns a shared pointer to the current quote.
 
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 constexpr std::uint32_t MAX_SEQUENCE = (1U << 22U) - 1U
 Maximum allowed sequence value.
 
static const EventTypeEnumTYPE = EventTypeEnum::QUOTE
 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

Quote event is a snapshot of the best bid and ask prices, and other fields that change with each quote.

It represents the most recent information that is available about the best quote on the market at any given moment of time.

Bid corresponds to the best (maximal price) order to buy, ask corresponds to the best (minimal price) order to sell.

Constructor & Destructor Documentation

◆ Quote()

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

Creates new quote event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ freeGraal()

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

◆ getAskExchangeCode()

std::int16_t dxfcpp::Quote::getAskExchangeCode ( ) const
noexcept

Returns ask exchange code.

Returns
The ask exchange code.

◆ getAskExchangeCodeString()

std::string dxfcpp::Quote::getAskExchangeCodeString ( ) const
noexcept

Returns ask exchange code as UTF8 string.

Returns
The ask exchange code as UTF8 string.

◆ getAskPrice()

double dxfcpp::Quote::getAskPrice ( ) const
inline

Returns ask price.

Returns
The ask price.

◆ getAskSize()

double dxfcpp::Quote::getAskSize ( ) const
inline

Returns ask size.

Returns
The ask size

◆ getAskTime()

std::int64_t dxfcpp::Quote::getAskTime ( ) const
inlinenoexcept

Returns time of the last ask change.

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

This time is always transmitted with seconds precision, so the result of this method is usually a multiple of 1000.

Returns
The time of the last ask change.

◆ getBidExchangeCode()

std::int16_t dxfcpp::Quote::getBidExchangeCode ( ) const
noexcept

Returns bid exchange code.

Returns
The bid exchange code.

◆ getBidExchangeCodeString()

std::string dxfcpp::Quote::getBidExchangeCodeString ( ) const
noexcept

Returns bid exchange code as UTF8 string.

Returns
The bid exchange code as UTF8 string.

◆ getBidPrice()

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

Returns bid price.

Returns
The bid price.

◆ getBidSize()

double dxfcpp::Quote::getBidSize ( ) const
inlinenoexcept

Returns bid size.

Returns
The bid size

◆ getBidTime()

std::int64_t dxfcpp::Quote::getBidTime ( ) const
inlinenoexcept

Returns time of the last bid change.

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

This time is always transmitted with seconds precision, so the result of this method is usually a multiple of 1000.

Returns
The time of the last bid change.

◆ getSequence()

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

Returns sequence number of this quote to distinguish quotes 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 Quote::MAX_SEQUENCE.

Returns
sequence of this quote.

◆ getTime()

std::int64_t dxfcpp::Quote::getTime ( ) const
inlinenoexcept

Returns time of the last bid or ask change.

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

Returns
The time of the last bid or ask change.

◆ getTimeNanoPart()

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

Returns microseconds and nanoseconds part of time of the last bid or ask change.

Returns
The microseconds and nanoseconds part of time of the last bid or ask change.

◆ getTimeNanos()

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

Returns time of the last bid or ask change in nanoseconds.

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

Returns
The time of the last bid or ask change in nanoseconds.

◆ setAskExchangeCode() [1/2]

void dxfcpp::Quote::setAskExchangeCode ( char askExchangeCode)
noexcept

Changes ask exchange code.

Parameters
askExchangeCodeThe ask exchange code.

◆ setAskExchangeCode() [2/2]

void dxfcpp::Quote::setAskExchangeCode ( std::int16_t askExchangeCode)
noexcept

Changes ask exchange code.

Parameters
askExchangeCodeThe ask exchange code.

◆ setAskPrice()

void dxfcpp::Quote::setAskPrice ( double askPrice)
inline

Changes ask price.

Parameters
askPriceThe ask price.

◆ setAskSize()

void dxfcpp::Quote::setAskSize ( double askSize)
inline

Changes ask size.

Parameters
askSizeThe ask size.

◆ setAskTime()

void dxfcpp::Quote::setAskTime ( std::int64_t askTime)
inlinenoexcept

Changes time of the last ask change.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Parameters
askTimeThe time of the last ask change.

◆ setBidExchangeCode() [1/2]

void dxfcpp::Quote::setBidExchangeCode ( char bidExchangeCode)
noexcept

Changes bid exchange code.

Parameters
bidExchangeCodeThe bid exchange code.

◆ setBidExchangeCode() [2/2]

void dxfcpp::Quote::setBidExchangeCode ( std::int16_t bidExchangeCode)
noexcept

Changes bid exchange code.

Parameters
bidExchangeCodebid exchange code.

◆ setBidPrice()

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

Changes bid price.

Parameters
bidPriceThe bid price.

◆ setBidSize()

void dxfcpp::Quote::setBidSize ( double bidSize)
inlinenoexcept

Changes bid size.

Parameters
bidSizeThe bid size.

◆ setBidTime()

void dxfcpp::Quote::setBidTime ( std::int64_t bidTime)
inlinenoexcept

Changes time of the last bid change.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Parameters
bidTimeThe time of the last bid change.

◆ setSequence()

void dxfcpp::Quote::setSequence ( std::int32_t sequence)
inlinenoexcept

Changes sequence number of this quote.

Parameters
sequenceThe sequence.
See also
Quote::getSequence()

◆ setTimeNanoPart()

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

Changes microseconds and nanoseconds part of time of the last bid or ask change.

This method changes Quote::getTimeNanos() result.

Parameters
timeNanoPartThe microseconds and nanoseconds part of time of the last bid or ask change.

◆ toGraal()

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

Returns a string representation of the current object.

Returns
A string representation.

Reimplemented from dxfcpp::EventType.

◆ withAskExchangeCode() [1/2]

Quote & dxfcpp::Quote::withAskExchangeCode ( char askExchangeCode)
inlinenoexcept

Changes ask exchange code and returns the current quote.

Parameters
askExchangeCodeThe ask exchange code.
Returns
The current quote

◆ withAskExchangeCode() [2/2]

Quote & dxfcpp::Quote::withAskExchangeCode ( std::int16_t askExchangeCode)
inlinenoexcept

Changes ask exchange code and returns the current quote.

Parameters
askExchangeCodeThe ask exchange code.
Returns
The current quote.

◆ withAskExchangeCodeShared() [1/2]

Quote::Ptr dxfcpp::Quote::withAskExchangeCodeShared ( char askExchangeCode)
inlinenoexcept

Changes ask exchange code and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
askExchangeCodeThe ask exchange code.
Returns
A shared pointer to the current quote.

◆ withAskExchangeCodeShared() [2/2]

Quote::Ptr dxfcpp::Quote::withAskExchangeCodeShared ( std::int16_t askExchangeCode)
inlinenoexcept

Changes ask exchange code and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
askExchangeCodeThe ask exchange code.
Returns
A shared pointer to the current quote.

◆ withAskPrice()

Quote & dxfcpp::Quote::withAskPrice ( double askPrice)
inlinenoexcept

Changes ask price and returns the current quote.

Parameters
askPriceThe ask price.
Returns
The current quote

◆ withAskPriceShared()

Quote::Ptr dxfcpp::Quote::withAskPriceShared ( double askPrice)
inlinenoexcept

Changes ask price and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
askPriceThe ask price.
Returns
A shared pointer to the current quote.

◆ withAskSize()

Quote & dxfcpp::Quote::withAskSize ( double askSize)
inlinenoexcept

Changes ask size and returns the current quote.

Parameters
askSizeThe ask size. @retrun The current quote.

◆ withAskSizeShared()

Quote::Ptr dxfcpp::Quote::withAskSizeShared ( double askSize)
inlinenoexcept

Changes ask size and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
askSizeThe ask size. @retrun A shared pointer to the current quote.

◆ withAskTime()

Quote & dxfcpp::Quote::withAskTime ( std::int64_t askTime)
inlinenoexcept

Changes time of the last ask change and returns the current quote.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Parameters
askTimeThe time of the last ask change.
Returns
The current quote.

◆ withAskTimeShared()

Quote::Ptr dxfcpp::Quote::withAskTimeShared ( std::int64_t askTime)
inlinenoexcept

Changes time of the last ask change and returns a shared pointer to the current quote.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
askTimeThe time of the last ask change.
Returns
A shared pointer to the current quote.

◆ withBidExchangeCode() [1/2]

Quote & dxfcpp::Quote::withBidExchangeCode ( char bidExchangeCode)
inlinenoexcept

Changes bid exchange code and returns the current quote.

Parameters
bidExchangeCodeThe bid exchange code.
Returns
The current quote

◆ withBidExchangeCode() [2/2]

Quote & dxfcpp::Quote::withBidExchangeCode ( std::int16_t bidExchangeCode)
inlinenoexcept

Changes bid exchange code and returns the current quote.

Parameters
bidExchangeCodeThe bid exchange code.
Returns
The current quote.

◆ withBidExchangeCodeShared() [1/2]

Quote::Ptr dxfcpp::Quote::withBidExchangeCodeShared ( char bidExchangeCode)
inlinenoexcept

Changes bid exchange code and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
bidExchangeCodeThe bid exchange code.
Returns
A shared pointer to the current quote.

◆ withBidExchangeCodeShared() [2/2]

Quote::Ptr dxfcpp::Quote::withBidExchangeCodeShared ( std::int16_t bidExchangeCode)
inlinenoexcept

Changes bid exchange code and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
bidExchangeCodeThe bid exchange code.
Returns
A shared pointer to the current quote.

◆ withBidPrice()

Quote & dxfcpp::Quote::withBidPrice ( double bidPrice)
inlinenoexcept

Changes bid price and returns the current quote.

Parameters
bidPriceThe bid price.
Returns
The current quote

◆ withBidPriceShared()

Quote::Ptr dxfcpp::Quote::withBidPriceShared ( double bidPrice)
inlinenoexcept

Changes bid price and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
bidPriceThe bid price.
Returns
A shared pointer to the current quote.

◆ withBidSize()

Quote & dxfcpp::Quote::withBidSize ( double bidSize)
inlinenoexcept

Changes bid size and returns the current quote.

Parameters
bidSizeThe bid size. @retrun The current quote.

◆ withBidSizeShared()

Quote::Ptr dxfcpp::Quote::withBidSizeShared ( double bidSize)
inlinenoexcept

Changes bid size and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
bidSizeThe bid size. @retrun A shared pointer to the current quote.

◆ withBidTime()

Quote & dxfcpp::Quote::withBidTime ( std::int64_t bidTime)
inlinenoexcept

Changes time of the last bid change and returns the current quote.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Parameters
bidTimeThe time of the last bid change.
Returns
The current quote.

◆ withBidTimeShared()

Quote::Ptr dxfcpp::Quote::withBidTimeShared ( std::int64_t bidTime)
inlinenoexcept

Changes time of the last bid change and returns a shared pointer to the current quote.

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

You can set the actual millisecond-precision time here to publish event and the millisecond part will make the Quote::getTime() of this quote even precise up to a millisecond.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
bidTimeThe time of the last bid change.
Returns
A shared pointer to the current quote.

◆ withEventSymbol()

Quote & dxfcpp::Quote::withEventSymbol ( const std::string & eventSymbol)
inlinenoexcept

Changes event's symbol and returns the current quote.

Parameters
eventSymbolThe symbol of this event.
Returns
The current quote.

◆ withEventSymbolShared()

Quote::Ptr dxfcpp::Quote::withEventSymbolShared ( const std::string & eventSymbol)
inlinenoexcept

Changes event's symbol and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
eventSymbolThe symbol of this event.
Returns
A shared pointer to the current quote.

◆ withEventTime()

Quote & dxfcpp::Quote::withEventTime ( std::int64_t eventTime)
inlinenoexcept

Changes event's creation time and returns the current quote.

Parameters
eventTimethe difference, measured in milliseconds, between the event creation time and midnight, January 1, 1970 UTC.
Returns
The current quote.

◆ withEventTimeShared()

Quote::Ptr dxfcpp::Quote::withEventTimeShared ( std::int64_t eventTime)
inlinenoexcept

Changes event's creation time and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
eventTimethe difference, measured in milliseconds, between the event creation time and midnight, January 1, 1970 UTC.
Returns
A shared pointer to the current quote.

◆ withSequence()

Quote & dxfcpp::Quote::withSequence ( std::int32_t sequence)
inlinenoexcept

Changes sequence number of this quote and returns the current quote.

Parameters
sequenceThe sequence.
Returns
The current quote.
See also
Quote::getSequence()

◆ withSequenceShared()

Quote::Ptr dxfcpp::Quote::withSequenceShared ( std::int32_t sequence)
inlinenoexcept

Changes sequence number of this quote and returns a shared pointer to the current quote.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
sequenceThe sequence.
Returns
A shared pointer to the current quote.
See also
Quote::getSequence()

◆ withTimeNanoPart()

Quote & dxfcpp::Quote::withTimeNanoPart ( std::int32_t timeNanoPart)
inlinenoexcept

Changes microseconds and nanoseconds part of time of the last bid or ask change and returns the current quote.

This method changes Quote::getTimeNanos() result.

Parameters
timeNanoPartThe microseconds and nanoseconds part of time of the last bid or ask change.
Returns
The current quote.

◆ withTimeNanoPartShared()

Quote::Ptr dxfcpp::Quote::withTimeNanoPartShared ( std::int32_t timeNanoPart)
inlinenoexcept

Changes microseconds and nanoseconds part of time of the last bid or ask change and returns a shared pointer to the current quote.

This method changes Quote::getTimeNanos() result.

Warning
Please do not use this method unless the object was created with std::shared_ptr<Quote>(new Quote(...)) or std::make_shared<Quote>(...)
Parameters
timeNanoPartThe microseconds and nanoseconds part of time of the last bid or ask change.
Returns
A shared pointer to the current quote.

Member Data Documentation

◆ MAX_SEQUENCE

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

Maximum allowed sequence value.

See also
Quote::setSequence()