dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
AnalyticOrder Class Referencefinal

Represents an extension of Order introducing analytic information, e.g. More...

#include <AnalyticOrder.hpp>

Inheritance diagram for AnalyticOrder:

Public Types

using Ptr = std::shared_ptr<AnalyticOrder>
 The alias to a type of shared pointer to the AnalyticOrder object.
using Unique = std::unique_ptr<AnalyticOrder>
 The alias to a type of unique pointer to the AnalyticOrder object.
Public Types inherited from Order
using Ptr = std::shared_ptr<Order>
 The alias to a type of shared pointer to the Order object.
using Unique = std::unique_ptr<Order>
 The alias to a type of unique pointer to the Order 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.
 AnalyticOrder () noexcept
 Creates new analytic order event with default values.
 AnalyticOrder (StringParam eventSymbol)
 Creates a new analytic order event with the specified event symbol.
AnalyticOrder & withEventSymbol (StringParam eventSymbol) override
 Changes an event's symbol and returns the current analytic order.
AnalyticOrder & withEventTime (std::int64_t eventTime) noexcept override
 Changes the event's creation time and returns the current analytic order.
AnalyticOrder & withSource (const OrderSource &source) noexcept override
 Changes an event's source and returns the current analytic order.
AnalyticOrder & withEventFlags (std::int32_t eventFlags) noexcept override
 Changes transactional event flags and returns the current analytic order.
AnalyticOrder & withEventFlags (const EventFlagsMask &eventFlags) noexcept override
 Changes transactional event flags and returns the current analytic order.
AnalyticOrder & withIndex (std::int64_t index) override
 Changes the unique per-symbol index of this analytic order and returns it.
AnalyticOrder & withTime (std::int64_t time) noexcept override
 Changes time of this analytic order and returns it.
AnalyticOrder & withTimeNanoPart (std::int32_t timeNanoPart) noexcept override
 Changes microseconds and nanoseconds time part of this analytic order.
AnalyticOrder & withSequence (std::int32_t sequence) override
 Changes sequence number of this analytic order.
AnalyticOrder & withTimeNanos (std::int64_t timeNanos) noexcept override
 Changes time of this analytic order and returns it.
AnalyticOrder & withAction (const OrderAction &action) noexcept override
 Changes the action of this analytic order and returns it.
AnalyticOrder & withActionTime (std::int64_t actionTime) noexcept override
 Changes time of the last action and returns the current analytic order.
AnalyticOrder & withOrderId (std::int64_t orderId) noexcept override
 Changes order ID.
AnalyticOrder & withAuxOrderId (std::int64_t auxOrderId) noexcept override
 Changes auxiliary order ID.
AnalyticOrder & withPrice (double price) noexcept override
 Changes price of this analytic order.
AnalyticOrder & withSize (double size) noexcept override
 Changes size of this analytic order.
AnalyticOrder & withExecutedSize (double executedSize) noexcept override
 Changes executed size of this analytic order.
AnalyticOrder & withCount (std::int64_t count) noexcept override
 Changes the number of individual orders in this aggregate order.
AnalyticOrder & withTradeId (std::int64_t tradeId) noexcept override
 Changes trade ID.
AnalyticOrder & withTradePrice (double tradePrice) noexcept override
 Changes trade price.
AnalyticOrder & withTradeSize (double tradeSize) noexcept override
 Changes trade size.
AnalyticOrder & withExchangeCode (char exchangeCode) override
 Changes exchange code of this analytic order.
AnalyticOrder & withExchangeCode (std::int16_t exchangeCode) override
 Changes exchange code of this analytic order.
AnalyticOrder & withOrderSide (const Side &side) noexcept override
 Changes side of this analytic order.
AnalyticOrder & withScope (const Scope &scope) noexcept override
 Changes the scope of this analytic order.
AnalyticOrder & withMarketMaker (StringParam marketMaker) override
 Changes market maker or other aggregate identifier of this analytic order.
template<OptionalString S>
AnalyticOrder & withMarketMaker (S &&marketMaker) noexcept
 Changes the market maker or the other aggregate identifier of this order, or makes it null with std::nullopt.
double getIcebergPeakSize () const noexcept
 Returns iceberg peak size of this analytic order.
void setIcebergPeakSize (double icebergPeakSize) noexcept
 Changes iceberg peak size of this analytic order.
AnalyticOrder & withIcebergPeakSize (double icebergPeakSize) noexcept
 Changes iceberg peak size and returns the current analytic order.
double getIcebergHiddenSize () const noexcept
 Returns iceberg hidden size of this analytic order.
void setIcebergHiddenSize (double icebergHiddenSize) noexcept
 Changes iceberg hidden size of this analytic order.
AnalyticOrder & withIcebergHiddenSize (double icebergHiddenSize) noexcept
 Changes iceberg hidden size and returns the current analytic order.
double getIcebergExecutedSize () const noexcept
 Returns iceberg executed size of this analytic order.
void setIcebergExecutedSize (double icebergExecutedSize) noexcept
 Changes the iceberg executed size of this analytic order.
AnalyticOrder & withIcebergExecutedSize (double icebergExecutedSize) noexcept
 Changes iceberg executed size and returns the current analytic order.
const IcebergType & getIcebergType () const &noexcept
 Returns iceberg type of this analytic order.
void setIcebergType (const IcebergType &icebergType) noexcept
 Changes iceberg type of this analytic order.
AnalyticOrder & withIcebergType (const IcebergType &icebergType) noexcept
 Changes an iceberg type and returns the current analytic order.
std::string toString () const override
 Returns a string representation of the current object.
Public Member Functions inherited from Order
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.
 Order () noexcept
 Creates new order event with default values.
 Order (StringParam eventSymbol)
 Creates a new order event with the specified event symbol.
const std::string & getMarketMaker () const &noexcept
 Returns market maker or other aggregate identifier of this order.
const std::optional< std::string > & getMarketMakerOpt () const &noexcept
 Returns market maker or other aggregate identifier of this order.
void setMarketMaker (StringParam marketMaker)
 Changes market maker or other aggregate identifier of this order.
template<OptionalString S>
void setMarketMaker (S &&marketMaker) noexcept
 Changes the market maker or the other aggregate identifier of this order, or makes it null with std::nullopt.
template<OptionalString S>
Order & withMarketMaker (S &&marketMaker) noexcept
 Changes the market maker or the other aggregate identifier of this order, 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 OrderBase
void assign (std::shared_ptr< EventType > event) override
 Replaces the contents of the event.
 OrderBase () noexcept
 Creates new order event with default values.
 OrderBase (StringParam eventSymbol)
 Creates a new order event with the specified event symbol.
const OrderSource & getSource () const &override
 Returns source of this event.
void setSource (const OrderSource &source) noexcept
 Changes 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.
void setIndex (std::int64_t index) override
 Changes the unique per-symbol index of this order.
std::int64_t getIndex () const noexcept override
 Returns a unique per-symbol index of this order.
std::int64_t getTimeSequence () const noexcept
 Returns time and sequence of this order packaged into a single long value.
void setTimeSequence (std::int64_t timeSequence) noexcept
 Changes time and sequence of this order.
std::int64_t getTime () const noexcept
 Returns time of this order.
void setTime (std::int64_t time) noexcept
 Changes time of this order.
void setTimeNanoPart (std::int32_t timeNanoPart) noexcept
 Changes microseconds and nanoseconds time part of this order.
std::int32_t getTimeNanoPart () const noexcept
 Returns microseconds and nanoseconds time part of this order.
std::int32_t getSequence () const noexcept
 Returns sequence number of this order to distinguish orders that have the same time.
void setSequence (std::int32_t sequence)
 Changes sequence number of this order.
std::int64_t getTimeNanos () const noexcept
 Returns time of this order in nanoseconds.
void setTimeNanos (std::int64_t timeNanos) noexcept
 Changes time of this order.
const OrderAction & getAction () const &noexcept
 Returns order action if available, otherwise - OrderAction::UNDEFINED.
void setAction (const OrderAction &action) noexcept
 Changes action of this order.
std::int64_t getActionTime () const noexcept
 Returns time of the last action.
void setActionTime (std::int64_t actionTime) noexcept
 Changes time of the last action.
std::int64_t getOrderId () const noexcept
 Returns order ID if available.
void setOrderId (std::int64_t orderId) noexcept
 Changes order ID.
std::int64_t getAuxOrderId () const noexcept
 Returns auxiliary order ID if available:
void setAuxOrderId (std::int64_t auxOrderId) noexcept
 Changes auxiliary order ID.
double getPrice () const noexcept
 Returns price of this order.
void setPrice (double price) noexcept
 Changes price of this order.
double getSize () const noexcept
 Returns size of this order.
void setSize (double size) noexcept
 Changes size of this order.
bool hasSize () const noexcept
 Returns true if this order has some size (sizeAsDouble is neither 0 nor NaN).
double getExecutedSize () const noexcept
 Returns executed size of this order.
void setExecutedSize (double executedSize) noexcept
 Changes executed size of this order.
std::int64_t getCount () const noexcept
 Returns the number of individual orders in this aggregate order.
void setCount (std::int64_t count) noexcept
 Changes the number of individual orders in this aggregate order.
std::int64_t getTradeId () const noexcept
 Returns trade (order execution) ID for events containing trade-related action.
void setTradeId (std::int64_t tradeId) noexcept
 Changes trade ID.
double getTradePrice () const noexcept
 Returns trade price for events containing trade-related action.
void setTradePrice (double tradePrice) noexcept
 Changes trade price.
double getTradeSize () const noexcept
 Returns trade size for events containing trade-related action.
void setTradeSize (double tradeSize) noexcept
 Changes trade size.
std::int16_t getExchangeCode () const noexcept
 Returns exchange code of this order.
std::string getExchangeCodeString () const noexcept
 Returns exchange code of this order as UTF8 string.
void setExchangeCode (char exchangeCode)
 Changes exchange code of this order.
void setExchangeCode (std::int16_t exchangeCode)
 Changes exchange code of this order.
const Side & getOrderSide () const &noexcept
 Returns side of this order.
void setOrderSide (const Side &side) noexcept
 Changes side of this order.
const Scope & getScope () const &noexcept
 Returns scope of this order.
void setScope (const Scope &scope) noexcept
 Changes scope of this order.
std::string baseFieldsToString () const
 Returns string representation of this order event's fields.
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 Member Functions inherited from Order
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::ANALYTIC_ORDER
 Type identifier and additional information about the current event class.
Static Public Attributes inherited from Order
static const EventTypeEnum & TYPE = EventTypeEnum::ORDER
 Type identifier and additional information about the current event class.
Static Public Attributes inherited from OrderBase
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.

Detailed Description

Represents an extension of Order introducing analytic information, e.g.

adding to this order iceberg related information (icebergPeakSize, icebergHiddenSize, icebergExecutedSize). The collection of analytic order events of a symbol represents the most recent analytic information that is available about orders on the market at any given moment of time.

Analytic order is similar to a regular Order. In addition, this event has few additional properties:

  • icebergPeakSize - the size of the peak, i.e. the visible part of the iceberg, that is being continually refilled until the order is fully traded or cancelled;
  • icebergHiddenSize - the prediction of the current hidden size of the iceberg, as inferred by the model;
  • icebergExecutedSize - the executed size of the iceberg order. For IcebergType::SYNTHETIC type represents the total executed size of all orders composing the current iceberg;
  • AnalyticOrder::getIcebergType() - type of the iceberg, either native (exchange-managed) or synthetic (managed outside the exchange).

Implementation details

This event is implemented on top of QDS records AnalyticOrder#<source-id>, where <source-id> is up to 4 ASCII characters with a mnemonic for the source like "GLBX".

Constructor & Destructor Documentation

◆ AnalyticOrder()

AnalyticOrder::AnalyticOrder ( StringParam eventSymbol)
explicit

Creates a new analytic order event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ assign()

void AnalyticOrder::assign ( std::shared_ptr< EventType > event)
overridevirtual

Replaces the contents of the event.

Parameters
eventthe event to use as a source.

Reimplemented from EventType.

References Order::assign().

◆ freeGraal()

void AnalyticOrder::freeGraal ( void * graalNative)
static

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

Parameters
graalNativeThe pointer to the dxFeed Graal SDK structure.
Exceptions
InvalidArgumentException

◆ fromGraal()

std::shared_ptr< AnalyticOrder > AnalyticOrder::fromGraal ( void * graalNative)
static

Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.

Parameters
graalNativeThe pointer to the dxFeed Graal SDK structure.
Returns
The object of the current type.
Exceptions
InvalidArgumentException

◆ getIcebergExecutedSize()

double AnalyticOrder::getIcebergExecutedSize ( ) const
noexcept

Returns iceberg executed size of this analytic order.

Returns
The iceberg executed size of this analytic order.

◆ getIcebergHiddenSize()

double AnalyticOrder::getIcebergHiddenSize ( ) const
noexcept

Returns iceberg hidden size of this analytic order.

Returns
iceberg hidden size of this analytic order.

◆ getIcebergPeakSize()

double AnalyticOrder::getIcebergPeakSize ( ) const
noexcept

Returns iceberg peak size of this analytic order.

Returns
iceberg peak size of this analytic order.

◆ getIcebergType()

const IcebergType & AnalyticOrder::getIcebergType ( ) const &
noexcept

Returns iceberg type of this analytic order.

Returns
iceberg type of this analytic order.

◆ setIcebergExecutedSize()

void AnalyticOrder::setIcebergExecutedSize ( double icebergExecutedSize)
noexcept

Changes the iceberg executed size of this analytic order.

Parameters
icebergExecutedSizeThe iceberg executed size of this analytic order.

◆ setIcebergHiddenSize()

void AnalyticOrder::setIcebergHiddenSize ( double icebergHiddenSize)
noexcept

Changes iceberg hidden size of this analytic order.

Parameters
icebergHiddenSizeiceberg hidden size of this analytic order.

◆ setIcebergPeakSize()

void AnalyticOrder::setIcebergPeakSize ( double icebergPeakSize)
noexcept

Changes iceberg peak size of this analytic order.

Parameters
icebergPeakSizeiceberg peak size of this analytic order.

◆ setIcebergType()

void AnalyticOrder::setIcebergType ( const IcebergType & icebergType)
noexcept

Changes iceberg type of this analytic order.

Parameters
icebergTypeiceberg type of this analytic order.

◆ toGraal()

void * AnalyticOrder::toGraal ( ) const
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.

Returns
The pointer to the filled dxFeed Graal SDK structure

Implements EventType.

◆ toString()

std::string AnalyticOrder::toString ( ) const
overridevirtual

Returns a string representation of the current object.

Returns
a string representation

Reimplemented from SharedEntity.

◆ withAction()

AnalyticOrder & AnalyticOrder::withAction ( const OrderAction & action)
overridevirtualnoexcept

Changes the action of this analytic order and returns it.

Parameters
actionThe side of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withActionTime()

AnalyticOrder & AnalyticOrder::withActionTime ( std::int64_t actionTime)
overridevirtualnoexcept

Changes time of the last action and returns the current analytic order.

Parameters
actionTimeThe last order action time.
Returns
The current analytic order.

Reimplemented from Order.

◆ withAuxOrderId()

AnalyticOrder & AnalyticOrder::withAuxOrderId ( std::int64_t auxOrderId)
overridevirtualnoexcept

Changes auxiliary order ID.

Returns the current analytic order.

Parameters
auxOrderIdThe auxiliary order ID.
Returns
The current analytic order.

Reimplemented from Order.

◆ withCount()

AnalyticOrder & AnalyticOrder::withCount ( std::int64_t count)
overridevirtualnoexcept

Changes the number of individual orders in this aggregate order.

Returns the current analytic order.

Parameters
countThe number of individual orders in this aggregate order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withEventFlags() [1/2]

AnalyticOrder & AnalyticOrder::withEventFlags ( const EventFlagsMask & eventFlags)
overridevirtualnoexcept

Changes transactional event flags and returns the current analytic order.

See EventFlag "Event Flags" section.

Parameters
eventFlagstransactional event flags' mask.
Returns
The current analytic order.

Reimplemented from Order.

References Order::withEventFlags().

◆ withEventFlags() [2/2]

AnalyticOrder & AnalyticOrder::withEventFlags ( std::int32_t eventFlags)
overridevirtualnoexcept

Changes transactional event flags and returns the current analytic order.

See EventFlag "Event Flags" section.

Parameters
eventFlagstransactional event flags.
Returns
The current analytic order.

Reimplemented from Order.

References Order::withEventFlags().

◆ withEventSymbol()

AnalyticOrder & AnalyticOrder::withEventSymbol ( StringParam eventSymbol)
overridevirtual

Changes an event's symbol and returns the current analytic order.

Parameters
eventSymbolThe symbol of this event.
Returns
The current analytic order.

Reimplemented from Order.

◆ withEventTime()

AnalyticOrder & AnalyticOrder::withEventTime ( std::int64_t eventTime)
overridevirtualnoexcept

Changes the event's creation time and returns the current analytic order.

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

Reimplemented from Order.

◆ withExchangeCode() [1/2]

AnalyticOrder & AnalyticOrder::withExchangeCode ( char exchangeCode)
overridevirtual

Changes exchange code of this analytic order.

Returns the current analytic order.

Parameters
exchangeCodeThe exchange code of this analytic order.
Returns
The current analytic order.
Exceptions
InvalidArgumentExceptionif the exchange code is not a 7-bit character.

Reimplemented from Order.

◆ withExchangeCode() [2/2]

AnalyticOrder & AnalyticOrder::withExchangeCode ( std::int16_t exchangeCode)
overridevirtual

Changes exchange code of this analytic order.

Returns the current analytic order.

Parameters
exchangeCodeThe exchange code of this analytic order.
Returns
The current analytic order.
Exceptions
InvalidArgumentExceptionif the exchange code is not a 7-bit character.

Reimplemented from Order.

◆ withExecutedSize()

AnalyticOrder & AnalyticOrder::withExecutedSize ( double executedSize)
overridevirtualnoexcept

Changes executed size of this analytic order.

Returns the current analytic order.

Parameters
executedSizeThe executed size of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withIcebergExecutedSize()

AnalyticOrder & AnalyticOrder::withIcebergExecutedSize ( double icebergExecutedSize)
noexcept

Changes iceberg executed size and returns the current analytic order.

Parameters
icebergExecutedSizeiceberg executed size of this analytic order.
Returns
The current analytic order.

◆ withIcebergHiddenSize()

AnalyticOrder & AnalyticOrder::withIcebergHiddenSize ( double icebergHiddenSize)
noexcept

Changes iceberg hidden size and returns the current analytic order.

Parameters
icebergHiddenSizeiceberg hidden size of this analytic order.
Returns
The current analytic order.

◆ withIcebergPeakSize()

AnalyticOrder & AnalyticOrder::withIcebergPeakSize ( double icebergPeakSize)
noexcept

Changes iceberg peak size and returns the current analytic order.

Parameters
icebergPeakSizeiceberg peak size of this analytic order.
Returns
The current analytic order.

◆ withIcebergType()

AnalyticOrder & AnalyticOrder::withIcebergType ( const IcebergType & icebergType)
noexcept

Changes an iceberg type and returns the current analytic order.

Parameters
icebergTypeiceberg type of this analytic order.
Returns
The current analytic order.

◆ withIndex()

AnalyticOrder & AnalyticOrder::withIndex ( std::int64_t index)
overridevirtual

Changes the unique per-symbol index of this analytic order and returns it.

Note that this method also changes source, whose id occupies the highest bits of index. Use OrderBase::setSource() after invocation of this method to set the desired value of a source.

Parameters
indexunique per-symbol index of this analytic order.
Returns
The current analytic order.
Exceptions
InvalidArgumentExceptionif the index is negative.

Reimplemented from Order.

◆ withMarketMaker() [1/2]

template<OptionalString S>
AnalyticOrder & AnalyticOrder::withMarketMaker ( S && marketMaker)
inlinenoexcept

Changes the market maker or the other aggregate identifier of this order, or makes it null with std::nullopt.

Returns the current order.

Parameters
marketMakerthe market maker or the other aggregate identifier of this order or std::nullopt.
Returns
The current order.

◆ withMarketMaker() [2/2]

AnalyticOrder & AnalyticOrder::withMarketMaker ( StringParam marketMaker)
overridevirtual

Changes market maker or other aggregate identifier of this analytic order.

Returns the current analytic order.

Parameters
marketMakerThe market maker or another aggregate identifier of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withOrderId()

AnalyticOrder & AnalyticOrder::withOrderId ( std::int64_t orderId)
overridevirtualnoexcept

Changes order ID.

Returns the current analytic order.

Parameters
orderIdThe order ID.
Returns
The current analytic order.

Reimplemented from Order.

◆ withOrderSide()

AnalyticOrder & AnalyticOrder::withOrderSide ( const Side & side)
overridevirtualnoexcept

Changes side of this analytic order.

Returns the current analytic order.

Parameters
sideThe side of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withPrice()

AnalyticOrder & AnalyticOrder::withPrice ( double price)
overridevirtualnoexcept

Changes price of this analytic order.

Returns the current analytic order.

Parameters
priceThe price of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withScope()

AnalyticOrder & AnalyticOrder::withScope ( const Scope & scope)
overridevirtualnoexcept

Changes the scope of this analytic order.

Returns the current analytic order.

Parameters
scopeThe scope of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withSequence()

AnalyticOrder & AnalyticOrder::withSequence ( std::int32_t sequence)
overridevirtual

Changes sequence number of this analytic order.

Returns the current analytic order.

Parameters
sequencethe sequence.
Returns
The current analytic order.
See also
OrderBase::getSequence()

Reimplemented from Order.

◆ withSize()

AnalyticOrder & AnalyticOrder::withSize ( double size)
overridevirtualnoexcept

Changes size of this analytic order.

Returns the current analytic order.

Parameters
sizeThe size of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withSource()

AnalyticOrder & AnalyticOrder::withSource ( const OrderSource & source)
overridevirtualnoexcept

Changes an event's source and returns the current analytic order.

This method changes the highest bits of the index of this event.

Parameters
sourcesource of this event.
Returns
The current analytic order.

Reimplemented from Order.

References Order::withSource().

◆ withTime()

AnalyticOrder & AnalyticOrder::withTime ( std::int64_t time)
overridevirtualnoexcept

Changes time of this analytic order and returns it.

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

Parameters
timetime of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withTimeNanoPart()

AnalyticOrder & AnalyticOrder::withTimeNanoPart ( std::int32_t timeNanoPart)
overridevirtualnoexcept

Changes microseconds and nanoseconds time part of this analytic order.

Returns the current analytic order.

Parameters
timeNanoPartmicroseconds and nanoseconds time part of this analytic order.
Returns
The current analytic order.

Reimplemented from Order.

◆ withTimeNanos()

AnalyticOrder & AnalyticOrder::withTimeNanos ( std::int64_t timeNanos)
overridevirtualnoexcept

Changes time of this analytic order and returns it.

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

Parameters
timeNanosThe time of this analytic order in nanoseconds.
Returns
The current analytic order.

Reimplemented from Order.

◆ withTradeId()

AnalyticOrder & AnalyticOrder::withTradeId ( std::int64_t tradeId)
overridevirtualnoexcept

Changes trade ID.

Returns the current analytic order.

Parameters
tradeIdThe trade ID.
Returns
The current analytic order.

Reimplemented from Order.

◆ withTradePrice()

AnalyticOrder & AnalyticOrder::withTradePrice ( double tradePrice)
overridevirtualnoexcept

Changes trade price.

Returns the current analytic order.

Parameters
tradePriceThe trade price.
Returns
The current analytic order.

Reimplemented from Order.

◆ withTradeSize()

AnalyticOrder & AnalyticOrder::withTradeSize ( double tradeSize)
overridevirtualnoexcept

Changes trade size.

Returns the current analytic order.

Parameters
tradeSizeThe trade size.
Returns
The current analytic order.

Reimplemented from Order.