|
dxFeed Graal CXX API v9.0.0
|
Option Sale event represents a trade or another market event with the price (for example, market open/close price, etc.) for each option symbol listed under the specified Underlying. More...
#include <OptionSale.hpp>
Public Types | |
| using | Ptr = std::shared_ptr<OptionSale> |
| The alias to a type of shared pointer to the OptionSale object. | |
| using | Unique = std::unique_ptr<OptionSale> |
| The alias to a type of unique pointer to the OptionSale 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 = std::shared_ptr<EventTypeWithSymbol<std::string>> |
| 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 IndexedEvent | |
| using | Ptr = std::shared_ptr<IndexedEvent> |
| The alias to a type of shared pointer to the IndexedEvent object. | |
Public Member Functions | |
| void * | toGraal () const override |
| Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
| void | assign (std::shared_ptr< EventType > event) override |
| Replaces the contents of the event. | |
| OptionSale () noexcept | |
| Creates new option sale event with default values. | |
| OptionSale (StringParam eventSymbol) | |
| Creates a new option sale event with the specified event symbol. | |
| OptionSale & | withEventSymbol (StringParam eventSymbol) |
| Changes an event's symbol and returns the current option sale. | |
| OptionSale & | withEventTime (std::int64_t eventTime) noexcept |
| Changes event's creation time and returns the current option sale. | |
| const IndexedEventSource & | getSource () 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. | |
| OptionSale & | withEventFlags (std::int32_t eventFlags) noexcept |
| Changes transactional event flags and returns the current option sale. | |
| void | setEventFlags (const EventFlagsMask &eventFlags) noexcept override |
| Changes transactional event flags. | |
| OptionSale & | withEventFlags (const EventFlagsMask &eventFlags) noexcept |
| Changes transactional event flags and returns the current option sale. | |
| std::int64_t | getIndex () const noexcept override |
| Returns a unique per-symbol index of this event. | |
| void | setIndex (std::int64_t index) override |
| Changes the unique per-symbol index of this event. | |
| OptionSale & | withIndex (std::int64_t index) noexcept |
| Changes unique per-symbol index of this event. | |
| std::int64_t | getTimeSequence () const noexcept |
| Returns time and sequence of this event packaged into a single long value. | |
| void | setTimeSequence (std::int64_t timeSequence) noexcept |
| Changes time and sequence of this event. | |
| OptionSale & | withTimeSequence (std::int64_t timeSequence) noexcept |
| Changes time and sequence of this event. | |
| std::int64_t | getTime () const noexcept |
| Returns time of this event. | |
| void | setTime (std::int64_t time) noexcept |
| Changes time of this event. | |
| OptionSale & | withTime (std::int64_t time) noexcept |
| Changes the 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. | |
| OptionSale & | withTimeNanos (std::int64_t timeNanos) noexcept |
| Changes the time of this option sale and returns it. | |
| void | setTimeNanoPart (std::int32_t timeNanoPart) noexcept |
| Changes microseconds and nanoseconds time part of the original event. | |
| OptionSale & | withTimeNanoPart (std::int32_t timeNanoPart) noexcept |
| Changes microseconds and nanoseconds time part of this option sale. | |
| 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 (std::int32_t sequence) |
| Changes sequence number of this event. | |
| OptionSale & | withSequence (std::int32_t sequence) |
| Changes sequence number of this event. | |
| std::int16_t | getExchangeCode () const noexcept |
| Returns exchange code of this option sale event. | |
| std::string | getExchangeCodeString () const noexcept |
| Returns exchange code of this option sale as UTF8 string. | |
| void | setExchangeCode (char exchangeCode) noexcept |
| Changes exchange code of this option sale event. | |
| OptionSale & | withExchangeCode (char exchangeCode) noexcept |
| Changes exchange code of this option sale event. | |
| void | setExchangeCode (std::int16_t exchangeCode) noexcept |
| Changes exchange code of this option sale event. | |
| OptionSale & | withExchangeCode (std::int16_t exchangeCode) noexcept |
| Changes exchange code of this option sale event. | |
| double | getPrice () const noexcept |
| Returns price of this option sale event. | |
| void | setPrice (double price) noexcept |
| Changes price of this option sale event. | |
| OptionSale & | withPrice (double price) noexcept |
| Changes price of this option sale event. | |
| double | getSize () const noexcept |
| Returns the size of this option sale event. | |
| void | setSize (double size) noexcept |
| Changes the size of this option sale event. | |
| OptionSale & | withSize (double size) noexcept |
| Changes the size of this option sale event. | |
| double | getBidPrice () const noexcept |
| Returns the current bid price on the market when this option sale event had occurred. | |
| void | setBidPrice (double bidPrice) noexcept |
| Changes the current bid price on the market when this option sale event had occurred. | |
| OptionSale & | withBidPrice (double bidPrice) noexcept |
| Changes the current bid price on the market when this option sale event had occurred. | |
| double | getAskPrice () const noexcept |
| Returns the current ask price on the market when this option sale event had occurred. | |
| void | setAskPrice (double askPrice) noexcept |
| Changes the current ask price on the market when this option sale event had occurred. | |
| OptionSale & | withAskPrice (double askPrice) noexcept |
| Changes the current ask price on the market when this option 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 (StringParam exchangeSaleConditions) |
| Changes sale conditions provided for this event by data feed. | |
| template<OptionalString S> | |
| void | setExchangeSaleConditions (S &&exchangeSaleConditions) noexcept |
| Changes the sale conditions, or makes it null with std::nullopt. | |
| OptionSale & | withExchangeSaleConditions (StringParam exchangeSaleConditions) |
| Changes sale conditions provided for this event by data feed. | |
| template<OptionalString S> | |
| OptionSale & | withExchangeSaleConditions (S &&exchangeSaleConditions) noexcept |
| Changes the sale conditions, or makes it null with std::nullopt. | |
| char | getTradeThroughExempt () const noexcept |
| Returns TradeThroughExempt flag of this option sale event. | |
| void | setTradeThroughExempt (char tradeThroughExempt) |
| Changes TradeThroughExempt flag of this option sale event. | |
| OptionSale & | withTradeThroughExempt (char tradeThroughExempt) |
| Changes TradeThroughExempt flag of this option sale event. | |
| const Side & | getAggressorSide () const &noexcept |
| Returns the aggressor side of this option sale event. | |
| void | setAggressorSide (const Side &side) noexcept |
| Changes aggressor side of this option sale event. | |
| OptionSale & | withAggressorSide (const Side &side) noexcept |
| Changes aggressor side of this option 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. | |
| OptionSale & | withSpreadLeg (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. | |
| OptionSale & | withExtendedTradingHours (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. | |
| OptionSale & | withValidTick (bool validTick) noexcept |
| Changes whether this event represents a valid intraday tick. | |
| const TimeAndSaleType & | getType () const &noexcept |
| Returns the type of this option sale event. | |
| void | setType (const TimeAndSaleType &type) noexcept |
| Changes the type of this option sale event. | |
| OptionSale & | withType (const TimeAndSaleType &type) noexcept |
| Changes the type of this option 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. | |
| double | getUnderlyingPrice () const noexcept |
| Returns the underlying price at the time of this option sale event. | |
| void | setUnderlyingPrice (double underlyingPrice) noexcept |
| Changes underlying price at the time of this option sale event. | |
| OptionSale & | withUnderlyingPrice (double underlyingPrice) noexcept |
| Changes underlying price at the time of this option sale event. | |
| double | getVolatility () const noexcept |
| Returns Black-Scholes implied volatility of the option at the time of this option sale event. | |
| void | setVolatility (double volatility) noexcept |
| Changes Black-Scholes implied volatility of the option at the time of this option sale event. | |
| OptionSale & | withVolatility (double volatility) noexcept |
| Changes Black-Scholes implied volatility of the option at the time of this option sale event. | |
| double | getDelta () const noexcept |
| Return option delta at the time of this option sale event. | |
| void | setDelta (double delta) noexcept |
| Changes option delta at the time of this option sale event. | |
| OptionSale & | withDelta (double delta) noexcept |
| Changes option delta at the time of this option sale event. | |
| const std::string & | getOptionSymbol () const &noexcept |
| Returns option symbol of this event. | |
| const std::optional< std::string > & | getOptionSymbolOpt () const &noexcept |
| Returns option symbol of this event. | |
| void | setOptionSymbol (StringParam optionSymbol) |
| Changes option symbol of this event. | |
| template<OptionalString S> | |
| void | setOptionSymbol (S &&optionSymbol) noexcept |
| Changes the option symbol of this event, or makes it null with std::nullopt. | |
| OptionSale & | withOptionSymbol (StringParam optionSymbol) |
| Changes option symbol of this event. | |
| template<OptionalString S> | |
| OptionSale & | withOptionSymbol (S &&optionSymbol) noexcept |
| Changes the option symbol of this event, or makes it null with std::nullopt. | |
| std::string | toString () const override |
| Returns a string representation of the current object. | |
| Public Member Functions inherited from MarketEvent | |
| const std::string & | getEventSymbol () const &noexcept override |
| Returns a symbol of this event. | |
| const std::optional< std::string > & | getEventSymbolOpt () const &noexcept override |
| Returns a symbol of this event. | |
| void | setEventSymbol (StringParam eventSymbol) override |
| Changes symbol of this event. | |
| std::int64_t | getEventTime () const noexcept override |
| Returns time when an 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 the object is of type T: its dynamic type is T or derived from T. | |
| template<typename T> | |
| std::shared_ptr< T > | sharedAs () noexcept |
| Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr. | |
| 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 or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr. | |
| Public Member Functions inherited from Entity | |
| virtual | ~Entity () noexcept |
| 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 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 EventTypeEnum & | TYPE = EventTypeEnum::OPTION_SALE |
| Type identifier and additional information about the current event class. | |
| static constexpr std::uint32_t | MAX_SEQUENCE = (1U << 22U) - 1U |
| Maximum allowed sequence value. | |
| Static Public Attributes inherited from IndexedEvent | |
| static const EventFlag | TX_PENDING {0x01u, "TX_PENDING"} |
| 0x01 - A bitmask to get transaction pending indicator from the value of eventFlags property. | |
| static const EventFlag | REMOVE_EVENT {0x02u, "REMOVE_EVENT"} |
| 0x02 - A bitmask to get removal indicator from the value of eventFlags property. | |
| static const EventFlag | SNAPSHOT_BEGIN {0x04u, "SNAPSHOT_BEGIN"} |
| 0x04 - A bitmask to get snapshot begin indicator from the value of eventFlags property. | |
| static const EventFlag | SNAPSHOT_END {0x08u, "SNAPSHOT_END"} |
| 0x08 - A bitmask to get snapshot end indicator from the value of eventFlags property. | |
| static const EventFlag | SNAPSHOT_SNIP {0x10u, "SNAPSHOT_SNIP"} |
| 0x10 - A bitmask to get snapshot snip indicator from the value of eventFlags property. | |
| static const EventFlag | SNAPSHOT_MODE {0x40u, "SNAPSHOT_MODE"} |
| 0x40 - A bitmask to set snapshot mode indicator into the value of eventFlags property. | |
Additional Inherited Members | |
| Protected Member Functions inherited from MarketEvent | |
| MarketEvent (StringParam eventSymbol) | |
| Protected constructor for concrete implementation classes that initializes eventSymbol property. | |
Option Sale event represents a trade or another market event with the price (for example, market open/close price, etc.) for each option symbol listed under the specified Underlying.
Option Sales are intended to provide information about option trades in a continuous time slice with the additional metrics, like Option Volatility, Option Delta, and Underlying Price.
Option Sale events have unique index which can be used for later correction/cancellation processing.
Option sale data source provides a consistent view of the set of known option sales. 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 option sale events, thus source property is always DEFAULT.
This event is implemented on top of QDS records OptionSale.
|
explicit |
Creates a new option sale event with the specified event symbol.
| eventSymbol | The event symbol. |
|
overridevirtual |
Replaces the contents of the event.
| event | the event to use as a source. |
Reimplemented from MarketEvent.
References MarketEvent::assign().
|
static |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
| graalNative | The pointer to the dxFeed Graal SDK structure. |
| InvalidArgumentException |
|
static |
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
| graalNative | The pointer to the dxFeed Graal SDK structure. |
| InvalidArgumentException |
|
noexcept |
Returns the aggressor side of this option sale event.
|
noexcept |
Returns the current ask price on the market when this option sale event had occurred.
|
noexcept |
Returns the current bid price on the market when this option sale event had occurred.
|
noexcept |
Return option delta at the time of this option sale event.
Delta is the first derivative of an option price by an underlying price.
|
overridevirtualnoexcept |
Returns transactional event flags.
See EventFlag "Event Flags" section.
Implements IndexedEvent.
|
overridevirtualnoexcept |
Returns transactional event flags.
See EventFlag "Event Flags" section.
Implements IndexedEvent.
|
noexcept |
Returns exchange code of this option sale event.
|
noexcept |
Returns exchange code of this option sale as UTF8 string.
|
noexcept |
Returns sale conditions provided for this event by data feed.
This field format is specific for every particular data feed.
|
noexcept |
Returns sale conditions provided for this event by data feed.
This field format is specific for every particular data feed.
|
overridevirtualnoexcept |
Returns a unique per-symbol index of this event.
The index is composed of time and sequence. Changing either time or sequence changes the event index.
Implements IndexedEvent.
|
noexcept |
Returns option symbol of this event.
|
noexcept |
Returns option symbol of this event.
|
noexcept |
Returns price of this option sale event.
|
noexcept |
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.
|
noexcept |
Returns the size of this option sale event.
|
overridevirtualnoexcept |
Returns the source of this event.
| InvalidArgumentException | if the source id of the event is not valid (see OrderBase::getSource()). |
Implements IndexedEvent.
References IndexedEventSource::DEFAULT.
|
noexcept |
Returns time of this event.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
|
noexcept |
Returns microseconds and nanoseconds time part of the original event.
|
noexcept |
Returns time of the original event in nanoseconds.
Time is measured in nanoseconds between the current time and midnight, January 1, 1970 UTC.
|
noexcept |
Returns time and sequence of this event packaged into a single long value.
|
noexcept |
Returns TradeThroughExempt flag of this option sale event.
|
noexcept |
Returns the type of this option sale event.
|
noexcept |
Returns the underlying price at the time of this option sale event.
|
noexcept |
Returns Black-Scholes implied volatility of the option at the time of this option sale event.
|
noexcept |
Returns whether this is a cancellation of a previous event.
It is false for a newly created option sale event.
|
noexcept |
Returns whether this is a correction of a previous event.
It is false for a newly created option sale event.
|
noexcept |
Returns whether this event represents an extended trading hours sale.
|
noexcept |
Returns whether this is a new event (not cancellation or correction).
It is true for a newly created option sale event.
|
noexcept |
Returns whether this event represents a spread leg.
|
noexcept |
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.
|
noexcept |
Changes aggressor side of this option sale event.
| side | aggressor side of this option sale event. |
|
noexcept |
Changes the current ask price on the market when this option sale event had occurred.
| askPrice | the current ask price on the market when this option sale event had occurred. |
|
noexcept |
Changes the current bid price on the market when this option sale event had occurred.
| bidPrice | the current bid price on the market when this option sale event had occurred. |
|
noexcept |
Changes option delta at the time of this option sale event.
| delta | option delta at the time of this option sale event. |
|
overridevirtualnoexcept |
Changes transactional event flags.
See EventFlag "Event Flags" section.
| eventFlags | transactional event flags' mask. |
Implements IndexedEvent.
Referenced by withEventFlags(), and withEventFlags().
|
overridevirtualnoexcept |
Changes transactional event flags.
See EventFlag "Event Flags" section.
| eventFlags | transactional event flags. |
Implements IndexedEvent.
|
noexcept |
Changes exchange code of this option sale event.
| exchangeCode | exchange code of this option sale event. |
|
noexcept |
Changes exchange code of this option sale event.
| exchangeCode | exchange code of this option sale event. |
|
inlinenoexcept |
Changes the sale conditions, or makes it null with std::nullopt.
setExchangeSaleConditions(other.getExchangeSaleConditionsOpt()) copies it from another event, null included.
| exchangeSaleConditions | the sale conditions or std::nullopt. |
| void OptionSale::setExchangeSaleConditions | ( | StringParam | exchangeSaleConditions | ) |
Changes sale conditions provided for this event by data feed.
| exchangeSaleConditions | sale conditions. |
|
noexcept |
Changes whether this event represents an extended trading hours sale.
| extendedTradingHours | true if this event represents an extended trading hours sale. |
|
overridevirtual |
Changes the 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.
| index | the event index. |
Implements IndexedEvent.
|
inlinenoexcept |
Changes the option symbol of this event, or makes it null with std::nullopt.
setOptionSymbol(other.getOptionSymbolOpt()) copies it from another event, null included.
| optionSymbol | the option symbol of this event or std::nullopt. |
| void OptionSale::setOptionSymbol | ( | StringParam | optionSymbol | ) |
Changes option symbol of this event.
| optionSymbol | option symbol of this event. |
|
noexcept |
Changes price of this option sale event.
| price | price of this option sale event. |
| void OptionSale::setSequence | ( | std::int32_t | sequence | ) |
Changes sequence number of this event.
| sequence | the sequence. |
| InvalidArgumentException |
|
noexcept |
Changes the size of this option sale event.
| size | size of this option sale event. |
|
noexcept |
Changes whether this event represents a spread leg.
| spreadLeg | true if this event represents a spread leg. |
|
noexcept |
Changes time of this event.
Time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
| time | time of this event. |
|
noexcept |
Changes microseconds and nanoseconds time part of the original event.
| timeNanoPart | microseconds and nanoseconds time part of the original event. |
|
noexcept |
Changes time of the original event.
Time is measured in nanoseconds between the current time and midnight, January 1, 1970 UTC.
| timeNanos | time of the original event in nanoseconds. |
|
noexcept |
| void OptionSale::setTradeThroughExempt | ( | char | tradeThroughExempt | ) |
Changes TradeThroughExempt flag of this option sale event.
| tradeThroughExempt | TradeThroughExempt flag of this option sale event. |
|
noexcept |
Changes the type of this option sale event.
| type | type of this option sale event. |
|
noexcept |
Changes underlying price at the time of this option sale event.
| underlyingPrice | underlying price at the time of this option sale event. |
|
noexcept |
Changes whether this event represents a valid intraday tick.
| validTick | true if this event represents a valid intraday tick. |
|
noexcept |
Changes Black-Scholes implied volatility of the option at the time of this option sale event.
| volatility | Black-Scholes implied volatility of the option at the time of this option sale event. |
|
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.
Implements EventType.
|
overridevirtual |
Returns a string representation of the current object.
Reimplemented from EventType.
|
noexcept |
Changes aggressor side of this option sale event.
Returns the current option sale.
| side | aggressor side of this option sale event. |
|
noexcept |
Changes the current ask price on the market when this option sale event had occurred.
Returns the current option sale.
| askPrice | the current ask price on the market when this option sale event had occurred. |
|
noexcept |
Changes the current bid price on the market when this option sale event had occurred.
Returns the current option sale.
| bidPrice | the current bid price on the market when this option sale event had occurred. |
|
noexcept |
Changes option delta at the time of this option sale event.
Returns the current option sale.
| delta | option delta at the time of this option sale event. |
|
noexcept |
Changes transactional event flags and returns the current option sale.
| eventFlags | transactional event flags' mask. |
References setEventFlags().
|
noexcept |
Changes transactional event flags and returns the current option sale.
See EventFlag "Event Flags" section.
| eventFlags | transactional event flags. |
References setEventFlags().
| OptionSale & OptionSale::withEventSymbol | ( | StringParam | eventSymbol | ) |
Changes an event's symbol and returns the current option sale.
| eventSymbol | The symbol of this event. |
|
noexcept |
Changes event's creation time and returns the current option sale.
| eventTime | the difference, measured in milliseconds, between the event creation time and midnight, January 1, 1970 UTC. |
|
noexcept |
Changes exchange code of this option sale event.
Returns the current option sale.
| exchangeCode | The exchange code of this option sale. |
|
noexcept |
Changes exchange code of this option sale event.
Returns the current order.
| exchangeCode | The exchange code of this option sale. |
|
inlinenoexcept |
Changes the sale conditions, or makes it null with std::nullopt.
Returns the current option sale.
| exchangeSaleConditions | the sale conditions or std::nullopt. |
| OptionSale & OptionSale::withExchangeSaleConditions | ( | StringParam | exchangeSaleConditions | ) |
Changes sale conditions provided for this event by data feed.
Returns the current option sale.
| exchangeSaleConditions | sale conditions. |
|
noexcept |
Changes whether this event represents an extended trading hours sale.
Returns the current option sale.
| extendedTradingHours | true if this event represents an extended trading hours sale. |
|
noexcept |
Changes unique per-symbol index of this event.
Returns the current option sale.
| index | unique per-symbol index of this option sale. |
|
inlinenoexcept |
Changes the option symbol of this event, or makes it null with std::nullopt.
Returns the current option sale.
| optionSymbol | the option symbol of this event or std::nullopt. |
| OptionSale & OptionSale::withOptionSymbol | ( | StringParam | optionSymbol | ) |
Changes option symbol of this event.
Returns the current option sale.
| optionSymbol | option symbol of this event. |
|
noexcept |
Changes price of this option sale event.
Returns the current option sale.
| price | The price of this option sale. |
| OptionSale & OptionSale::withSequence | ( | std::int32_t | sequence | ) |
Changes sequence number of this event.
Returns the current option sale.
| sequence | the sequence. |
|
noexcept |
Changes the size of this option sale event.
Returns the current option sale.
| size | size of this option sale event. |
|
noexcept |
Changes whether this event represents a spread leg.
Returns the current option sale.
| spreadLeg | true if this event represents a spread leg. |
|
noexcept |
Changes the timestamp of the event in milliseconds.
Returns the current option sale.
| time | timestamp of the event in milliseconds. |
|
noexcept |
Changes microseconds and nanoseconds time part of this option sale.
Returns the current option sale.
| timeNanoPart | microseconds and nanoseconds time part of this option sale. |
|
noexcept |
Changes the time of this option sale and returns it.
Time is measured in nanoseconds between the current time and midnight, January 1, 1970 UTC.
| timeNanos | The time of this option sale in nanoseconds. |
|
noexcept |
Changes time and sequence of this event.
Returns the current option sale.
| timeSequence | the time and sequence. |
| OptionSale & OptionSale::withTradeThroughExempt | ( | char | tradeThroughExempt | ) |
Changes TradeThroughExempt flag of this option sale event.
Returns the current option sale.
| tradeThroughExempt | TradeThroughExempt flag of this option sale event. |
|
noexcept |
Changes the type of this option sale event.
Returns the current option sale.
| type | type of this option sale event. |
|
noexcept |
Changes underlying price at the time of this option sale event.
Returns the current option sale.
| underlyingPrice | underlying price at the time of this option sale event. |
|
noexcept |
Changes whether this event represents a valid intraday tick.
Returns the current option sale.
| validTick | true if this event represents a valid intraday tick. |
|
noexcept |
Changes Black-Scholes implied volatility of the option at the time of this option sale event.
Returns the current option sale.
| volatility | Black-Scholes implied volatility of the option at the time of this option sale event. |
|
staticconstexpr |
Maximum allowed sequence value.