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

Represents an extension of Order for the symbols traded on the Nuam Exchange. More...

#include <NuamOrder.hpp>

Inheritance diagram for NuamOrder:

Public Types

using Ptr = std::shared_ptr<NuamOrder>
 The alias to a type of shared pointer to the NuamOrder object.
using Unique = std::unique_ptr<NuamOrder>
 The alias to a type of unique pointer to the NuamOrder 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.
 NuamOrder () noexcept
 Creates new Nuam order event with default values.
 NuamOrder (StringParam eventSymbol)
 Creates new Nuam order event with the specified event symbol.
NuamOrder & withEventSymbol (StringParam eventSymbol) override
 Changes the event's symbol and returns the current Nuam order.
NuamOrder & withEventTime (std::int64_t eventTime) noexcept override
 Changes event's creation time and returns the current Nuam order.
NuamOrder & withSource (const OrderSource &source) noexcept override
 Changes event's source and returns the current Nuam order.
NuamOrder & withEventFlags (std::int32_t eventFlags) noexcept override
 Changes transactional event flags and returns the current Nuam order.
NuamOrder & withEventFlags (const EventFlagsMask &eventFlags) noexcept override
 Changes transactional event flags and returns the current Nuam order.
NuamOrder & withIndex (std::int64_t index) override
 Changes unique per-symbol index of this Nuam order and returns it.
NuamOrder & withTime (std::int64_t time) noexcept override
 Changes time of this Nuam order and returns it.
NuamOrder & withTimeNanoPart (std::int32_t timeNanoPart) noexcept override
 Changes microseconds and nanoseconds time part of this Nuam order.
NuamOrder & withSequence (std::int32_t sequence) override
 Changes sequence number of this Nuam order.
NuamOrder & withTimeNanos (std::int64_t timeNanos) noexcept override
 Changes time of this Nuam order and returns it.
NuamOrder & withAction (const OrderAction &action) noexcept override
 Changes an action of this Nuam order and returns it.
NuamOrder & withActionTime (std::int64_t actionTime) noexcept override
 Changes time of the last action and returns current Nuam order.
NuamOrder & withOrderId (std::int64_t orderId) noexcept override
 Changes order ID.
NuamOrder & withAuxOrderId (std::int64_t auxOrderId) noexcept override
 Changes auxiliary order ID.
NuamOrder & withPrice (double price) noexcept override
 Changes price of this Nuam order.
NuamOrder & withSize (double size) noexcept override
 Changes size of this Nuam order.
NuamOrder & withExecutedSize (double executedSize) noexcept override
 Changes executed size of this Nuam order.
NuamOrder & withCount (std::int64_t count) noexcept override
 Changes a number of individual orders in this aggregate order.
NuamOrder & withTradeId (std::int64_t tradeId) noexcept override
 Changes trade ID.
NuamOrder & withTradePrice (double tradePrice) noexcept override
 Changes trade price.
NuamOrder & withTradeSize (double tradeSize) noexcept override
 Changes trade size.
NuamOrder & withExchangeCode (char exchangeCode) override
 Changes exchange code of this Nuam order.
NuamOrder & withExchangeCode (std::int16_t exchangeCode) override
 Changes exchange code of this Nuam order.
NuamOrder & withOrderSide (const Side &side) noexcept override
 Changes side of this Nuam order.
NuamOrder & withScope (const Scope &scope) noexcept override
 Changes scope of this Nuam order.
NuamOrder & withMarketMaker (StringParam marketMaker) override
 Changes market maker or other aggregate identifier of this Nuam order.
template<OptionalString S>
NuamOrder & withMarketMaker (S &&marketMaker) noexcept
 Changes the market maker or the other aggregate identifier of this order, or makes it null with std::nullopt.
std::int32_t getActorId () const noexcept
 Returns the actor identifier for the user sending the request.
void setActorId (std::int32_t actorId) noexcept
 Changes the actor identifier for the user sending the request.
NuamOrder & withActorId (std::int32_t actorId) noexcept
 Changes the actor identifier for the user sending the request.
std::int32_t getParticipantId () const noexcept
 Returns the ID of the participant the actor belongs to.
void setParticipantId (std::int32_t participantId) noexcept
 Changes the ID of the participant the actor belongs to.
NuamOrder & withParticipantId (std::int32_t participantId) noexcept
 Changes the ID of the participant the actor belongs to.
std::int32_t getSubmitterId () const noexcept
 Returns the ID of the actor that submitted the message that changed the order.
void setSubmitterId (std::int32_t submitterId) noexcept
 Changes the ID of the actor that submitted the message that changed the order.
NuamOrder & withSubmitterId (std::int32_t submitterId) noexcept
 Changes the ID of the actor that submitted the message that changed the order.
std::int32_t getOnBehalfOfSubmitterId () const noexcept
 Returns the ID of the actor that submitted the order message on behalf of someone else.
void setOnBehalfOfSubmitterId (std::int32_t onBehalfOfSubmitterId) noexcept
 Changes the ID of the actor that submitted the order message on behalf of someone else.
NuamOrder & withOnBehalfOfSubmitterId (std::int32_t onBehalfOfSubmitterId) noexcept
 Changes the ID of the actor that submitted the order message on behalf of someone else.
const std::string & getClientOrderId () const &noexcept
 Returns the client-generated order identity.
const std::optional< std::string > & getClientOrderIdOpt () const &noexcept
 Returns the client-generated order identity.
void setClientOrderId (StringParam clientOrderId)
 Changes the client-generated order identity.
template<OptionalString S>
void setClientOrderId (S &&clientOrderId) noexcept
 Changes the client-generated order identity, or makes it null with std::nullopt.
NuamOrder & withClientOrderId (StringParam clientOrderId)
 Changes the client-generated order identity.
template<OptionalString S>
NuamOrder & withClientOrderId (S &&clientOrderId) noexcept
 Changes the client-generated order identity, or makes it null with std::nullopt.
const std::string & getCustomerAccount () const &noexcept
 Returns the account to use for this order.
const std::optional< std::string > & getCustomerAccountOpt () const &noexcept
 Returns the account to use for this order.
void setCustomerAccount (StringParam customerAccount)
 Changes the account to use for this order.
template<OptionalString S>
void setCustomerAccount (S &&customerAccount) noexcept
 Changes the account to use for this order, or makes it null with std::nullopt.
NuamOrder & withCustomerAccount (StringParam customerAccount)
 Changes the account to use for this order.
template<OptionalString S>
NuamOrder & withCustomerAccount (S &&customerAccount) noexcept
 Changes the account to use for this order, or makes it null with std::nullopt.
const std::string & getCustomerInfo () const &noexcept
 Returns the free-text information filled in by the client entering the transaction.
const std::optional< std::string > & getCustomerInfoOpt () const &noexcept
 Returns the free-text information filled in by the client entering the transaction.
void setCustomerInfo (StringParam customerInfo)
 Changes the free-text information filled in by the client entering the transaction.
template<OptionalString S>
void setCustomerInfo (S &&customerInfo) noexcept
 Changes the free-text information filled in by the client, or makes it null with std::nullopt.
NuamOrder & withCustomerInfo (StringParam customerInfo)
 Changes the free-text information filled in by the client entering the transaction.
template<OptionalString S>
NuamOrder & withCustomerInfo (S &&customerInfo) noexcept
 Changes the free-text information filled in by the client, or makes it null with std::nullopt.
const std::string & getExchangeInfo () const &noexcept
 Returns the exchange-specific information that can be included with an order (it may contain unprintable characters).
const std::optional< std::string > & getExchangeInfoOpt () const &noexcept
 Returns the exchange-specific information that can be included with an order (it may contain unprintable characters).
void setExchangeInfo (StringParam exchangeInfo)
 Changes the exchange-specific information that can be included with an order (it may contain unprintable characters).
template<OptionalString S>
void setExchangeInfo (S &&exchangeInfo) noexcept
 Changes the exchange-specific information of the order, or makes it null with std::nullopt.
NuamOrder & withExchangeInfo (StringParam exchangeInfo)
 Changes the exchange-specific information that can be included with an order (it may contain unprintable characters).
template<OptionalString S>
NuamOrder & withExchangeInfo (S &&exchangeInfo) noexcept
 Changes the exchange-specific information of the order, or makes it null with std::nullopt.
const NuamTimeInForceType & getTimeInForce () const &noexcept
 Returns the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.
void setTimeInForce (const NuamTimeInForceType &timeInForce) noexcept
 Changes the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.
NuamOrder & withTimeInForce (const NuamTimeInForceType &timeInForce) noexcept
 Changes the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.
std::int32_t getTimeInForceData () const noexcept
 Returns the additional data of the time in force, used for the time validities that require it.
void setTimeInForceData (std::int32_t timeInForceData) noexcept
 Changes the additional data of the time in force, used for the time validities that require it.
NuamOrder & withTimeInForceData (std::int32_t timeInForceData) noexcept
 Changes the additional data of the time in force, used for the time validities that require it.
std::int32_t getTriggerOrderBookId () const noexcept
 Returns the ID of the order book the order will trigger on.
void setTriggerOrderBookId (std::int32_t triggerOrderBookId) noexcept
 Changes the ID of the order book the order will trigger on.
NuamOrder & withTriggerOrderBookId (std::int32_t triggerOrderBookId) noexcept
 Changes the ID of the order book the order will trigger on.
double getTriggerPrice () const noexcept
 Returns the trigger price of the order.
void setTriggerPrice (double triggerPrice) noexcept
 Changes the trigger price of the order.
NuamOrder & withTriggerPrice (double triggerPrice) noexcept
 Changes the trigger price of the order.
std::int32_t getTriggerSessionType () const noexcept
 Returns the session type to trigger on.
void setTriggerSessionType (std::int32_t triggerSessionType) noexcept
 Changes the session type to trigger on.
NuamOrder & withTriggerSessionType (std::int32_t triggerSessionType) noexcept
 Changes the session type to trigger on.
const NuamOrderType & getOrderType () const &noexcept
 Returns the type of this order: limit, market, best order, etc.
void setOrderType (const NuamOrderType &orderType) noexcept
 Changes the type of this order: limit, market, best order, etc.
NuamOrder & withOrderType (const NuamOrderType &orderType) noexcept
 Changes the type of this order: limit, market, best order, etc.
double getOrderQuantity () const noexcept
 Returns the initial quantity of the order when it was entered (it can be changed later if the order is amended).
void setOrderQuantity (double orderQuantity) noexcept
 Changes the initial quantity of the order when it was entered (it can be changed later if the order is amended).
NuamOrder & withOrderQuantity (double orderQuantity) noexcept
 Changes the initial quantity of the order when it was entered (it can be changed later if the order is amended).
double getDisplayQuantity () const noexcept
 Returns the actual display quantity of a reserve order at the end of the transaction.
void setDisplayQuantity (double displayQuantity) noexcept
 Changes the actual display quantity of a reserve order at the end of the transaction.
NuamOrder & withDisplayQuantity (double displayQuantity) noexcept
 Changes the actual display quantity of a reserve order at the end of the transaction.
double getRefreshQuantity () const noexcept
 Returns the initial display quantity of a reserve order.
void setRefreshQuantity (double refreshQuantity) noexcept
 Changes the initial display quantity of a reserve order.
NuamOrder & withRefreshQuantity (double refreshQuantity) noexcept
 Changes the initial display quantity of a reserve order.
double getLeavesQuantity () const noexcept
 Returns the remaining (open) quantity of the order.
void setLeavesQuantity (double leavesQuantity) noexcept
 Changes the remaining (open) quantity of the order.
NuamOrder & withLeavesQuantity (double leavesQuantity) noexcept
 Changes the remaining (open) quantity of the order.
double getMatchedQuantity () const noexcept
 Returns the matched quantity within the transaction that updated the order.
void setMatchedQuantity (double matchedQuantity) noexcept
 Changes the matched quantity within the transaction that updated the order.
NuamOrder & withMatchedQuantity (double matchedQuantity) noexcept
 Changes the matched quantity within the transaction that updated the 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::NUAM_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 for the symbols traded on the Nuam Exchange.

It is the new Regional Holding that integrates the Santiago, Lima, and Colombia Stock Exchanges into a single market.

It includes the Nuam Exchange internal data, obtained directly from the matching engine, such as additional internal ids, customer additional info, extended matching options, info about triggers, the structure of quantity, etc., see the properties for details.

Java: NuamOrder

Nuam Flags

Nuam Flags from the Nuam Exchange are mapped to the access methods of this class as follows:

Properties

NuamOrder event has all the properties of Order and the following ones:

  • actorId - actor identifier for the user sending the request;
  • participantId - the ID of the participant the actor belongs to;
  • submitterId - the actor submitting the message that changed the order;
  • onBehalfOfSubmitterId - actor submitting an order message on behalf of someone else;
  • clientOrderId - a client generated order identity;
  • customerAccount - the account to use for this order;
  • customerInfo - a free text field filled in by the client entering the transaction;
  • exchangeInfo - exchange-specific information that can be included with an order, note that it may contain unprintable characters;
  • timeInForce - the duration an order remains active in the order book if it isn't fully executed;
  • timeInForceData - additional information for the time validities that require it;
  • triggerOrderBookId - the order book the order will trigger on;
  • triggerPrice - the trigger price of the order;
  • triggerSessionType - the session type to trigger on;
  • orderType - order type of the order: limit, market, best order, etc.;
  • orderQuantity - the initial quantity of the order when it was entered, it can be changed later if the order is amended;
  • displayQuantity - the actual display quantity of a reserve order at the end of the transaction;
  • refreshQuantity - the initial display quantity of a reserve order;
  • leavesQuantity - the remaining (open) quantity of the order;
  • matchedQuantity - the matched quantity within the transaction that updated the order.

Event flags, transactions and snapshots

Nuam order event sources provide a consistent view of the order book. Their updates may incorporate multiple changes to individual orders that have to be processed at the same time. The corresponding information is carried in eventFlags property.

See the "Event Flags" section of OrderBase class documentation for details.

Publishing order books

When publishing an order event with DXPublisher::publishEvents() method, least significant 32 bits of order index must be in a range of from 0 to std::numeric_limits<std::int32_t>::max() inclusive. Use ::setSource() method after ::setIndex() to properly include source identifier into the index.

A snapshot has to be published in the descending order of index, starting with an event with the largest index and marking it with EventFlag::SNAPSHOT_BEGIN bit in eventFlags, and finishing the snapshot with an event that has zero 32 least significant bits of index. EventFlag::SNAPSHOT_END bit in eventFlags is optional during publishing. It will be properly set on receiving end anyway.

Limitations

This event type cannot be used with DXFeed::getLastEvent() method.

Implementation details

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

Constructor & Destructor Documentation

◆ NuamOrder()

NuamOrder::NuamOrder ( StringParam eventSymbol)
explicit

Creates new Nuam order event with the specified event symbol.

Parameters
eventSymbolThe event symbol.

Member Function Documentation

◆ assign()

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

Replaces the contents of the event.

Parameters
eventthe event to use as a source.

Reimplemented from MarketEvent.

References Order::assign().

◆ freeGraal()

void NuamOrder::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()

NuamOrder::Ptr NuamOrder::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

◆ getActorId()

std::int32_t NuamOrder::getActorId ( ) const
noexcept

Returns the actor identifier for the user sending the request.

Returns
the actor identifier for the user sending the request.

◆ getClientOrderId()

const std::string & NuamOrder::getClientOrderId ( ) const &
noexcept

Returns the client-generated order identity.

Returns
the client-generated order identity or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getClientOrderIdOpt()

const std::optional< std::string > & NuamOrder::getClientOrderIdOpt ( ) const &
noexcept

Returns the client-generated order identity.

Returns
the client-generated order identity or std::nullopt.

◆ getCustomerAccount()

const std::string & NuamOrder::getCustomerAccount ( ) const &
noexcept

Returns the account to use for this order.

Returns
the account to use for this order or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getCustomerAccountOpt()

const std::optional< std::string > & NuamOrder::getCustomerAccountOpt ( ) const &
noexcept

Returns the account to use for this order.

Returns
the account to use for this order or std::nullopt.

◆ getCustomerInfo()

const std::string & NuamOrder::getCustomerInfo ( ) const &
noexcept

Returns the free-text information filled in by the client entering the transaction.

Returns
the free-text information filled in by the client entering the transaction or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getCustomerInfoOpt()

const std::optional< std::string > & NuamOrder::getCustomerInfoOpt ( ) const &
noexcept

Returns the free-text information filled in by the client entering the transaction.

Returns
the free-text information filled in by the client entering the transaction or std::nullopt.

◆ getDisplayQuantity()

double NuamOrder::getDisplayQuantity ( ) const
noexcept

Returns the actual display quantity of a reserve order at the end of the transaction.

Returns
the actual display quantity of a reserve order at the end of the transaction.

◆ getExchangeInfo()

const std::string & NuamOrder::getExchangeInfo ( ) const &
noexcept

Returns the exchange-specific information that can be included with an order (it may contain unprintable characters).

Returns
the exchange-specific information that can be included with an order (it may contain unprintable characters) or dxfcpp::String::NUL (std::string{"<null>"}).

◆ getExchangeInfoOpt()

const std::optional< std::string > & NuamOrder::getExchangeInfoOpt ( ) const &
noexcept

Returns the exchange-specific information that can be included with an order (it may contain unprintable characters).

Returns
the exchange-specific information that can be included with an order (it may contain unprintable characters) or std::nullopt.

◆ getLeavesQuantity()

double NuamOrder::getLeavesQuantity ( ) const
noexcept

Returns the remaining (open) quantity of the order.

Returns
the remaining (open) quantity of the order.

◆ getMatchedQuantity()

double NuamOrder::getMatchedQuantity ( ) const
noexcept

Returns the matched quantity within the transaction that updated the order.

Returns
the matched quantity within the transaction that updated the order.

◆ getOnBehalfOfSubmitterId()

std::int32_t NuamOrder::getOnBehalfOfSubmitterId ( ) const
noexcept

Returns the ID of the actor that submitted the order message on behalf of someone else.

Returns
the ID of the actor that submitted the order message on behalf of someone else.

◆ getOrderQuantity()

double NuamOrder::getOrderQuantity ( ) const
noexcept

Returns the initial quantity of the order when it was entered (it can be changed later if the order is amended).

Returns
the initial quantity of the order when it was entered (it can be changed later if the order is amended).

◆ getOrderType()

const NuamOrderType & NuamOrder::getOrderType ( ) const &
noexcept

Returns the type of this order: limit, market, best order, etc.

Returns
the type of this order: limit, market, best order, etc..

◆ getParticipantId()

std::int32_t NuamOrder::getParticipantId ( ) const
noexcept

Returns the ID of the participant the actor belongs to.

Returns
the ID of the participant the actor belongs to.

◆ getRefreshQuantity()

double NuamOrder::getRefreshQuantity ( ) const
noexcept

Returns the initial display quantity of a reserve order.

Returns
the initial display quantity of a reserve order.

◆ getSubmitterId()

std::int32_t NuamOrder::getSubmitterId ( ) const
noexcept

Returns the ID of the actor that submitted the message that changed the order.

Returns
the ID of the actor that submitted the message that changed the order.

◆ getTimeInForce()

const NuamTimeInForceType & NuamOrder::getTimeInForce ( ) const &
noexcept

Returns the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.

Returns
the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.

◆ getTimeInForceData()

std::int32_t NuamOrder::getTimeInForceData ( ) const
noexcept

Returns the additional data of the time in force, used for the time validities that require it.

Returns
the additional data of the time in force, used for the time validities that require it.

◆ getTriggerOrderBookId()

std::int32_t NuamOrder::getTriggerOrderBookId ( ) const
noexcept

Returns the ID of the order book the order will trigger on.

Returns
the ID of the order book the order will trigger on.

◆ getTriggerPrice()

double NuamOrder::getTriggerPrice ( ) const
noexcept

Returns the trigger price of the order.

Returns
the trigger price of the order.

◆ getTriggerSessionType()

std::int32_t NuamOrder::getTriggerSessionType ( ) const
noexcept

Returns the session type to trigger on.

Returns
the session type to trigger on.

◆ setActorId()

void NuamOrder::setActorId ( std::int32_t actorId)
noexcept

Changes the actor identifier for the user sending the request.

Parameters
actorIdthe actor identifier for the user sending the request.

◆ setClientOrderId() [1/2]

template<OptionalString S>
void NuamOrder::setClientOrderId ( S && clientOrderId)
inlinenoexcept

Changes the client-generated order identity, or makes it null with std::nullopt.

setClientOrderId(other.getClientOrderIdOpt()) copies it from another event, null included.

Parameters
clientOrderIdthe client-generated order identity or std::nullopt.

◆ setClientOrderId() [2/2]

void NuamOrder::setClientOrderId ( StringParam clientOrderId)

Changes the client-generated order identity.

Parameters
clientOrderIdthe client-generated order identity.

◆ setCustomerAccount() [1/2]

template<OptionalString S>
void NuamOrder::setCustomerAccount ( S && customerAccount)
inlinenoexcept

Changes the account to use for this order, or makes it null with std::nullopt.

setCustomerAccount(other.getCustomerAccountOpt()) copies it from another event, null included.

Parameters
customerAccountthe account to use for this order or std::nullopt.

◆ setCustomerAccount() [2/2]

void NuamOrder::setCustomerAccount ( StringParam customerAccount)

Changes the account to use for this order.

Parameters
customerAccountthe account to use for this order.

◆ setCustomerInfo() [1/2]

template<OptionalString S>
void NuamOrder::setCustomerInfo ( S && customerInfo)
inlinenoexcept

Changes the free-text information filled in by the client, or makes it null with std::nullopt.

setCustomerInfo(other.getCustomerInfoOpt()) copies it from another event, null included.

Parameters
customerInfothe free-text information filled in by the client or std::nullopt.

◆ setCustomerInfo() [2/2]

void NuamOrder::setCustomerInfo ( StringParam customerInfo)

Changes the free-text information filled in by the client entering the transaction.

Parameters
customerInfothe free-text information filled in by the client entering the transaction.

◆ setDisplayQuantity()

void NuamOrder::setDisplayQuantity ( double displayQuantity)
noexcept

Changes the actual display quantity of a reserve order at the end of the transaction.

Parameters
displayQuantitythe actual display quantity of a reserve order at the end of the transaction.

◆ setExchangeInfo() [1/2]

template<OptionalString S>
void NuamOrder::setExchangeInfo ( S && exchangeInfo)
inlinenoexcept

Changes the exchange-specific information of the order, or makes it null with std::nullopt.

setExchangeInfo(other.getExchangeInfoOpt()) copies it from another event, null included.

Parameters
exchangeInfothe exchange-specific information of the order or std::nullopt.

◆ setExchangeInfo() [2/2]

void NuamOrder::setExchangeInfo ( StringParam exchangeInfo)

Changes the exchange-specific information that can be included with an order (it may contain unprintable characters).

Parameters
exchangeInfothe exchange-specific information that can be included with an order (it may contain unprintable characters).

◆ setLeavesQuantity()

void NuamOrder::setLeavesQuantity ( double leavesQuantity)
noexcept

Changes the remaining (open) quantity of the order.

Parameters
leavesQuantitythe remaining (open) quantity of the order.

◆ setMatchedQuantity()

void NuamOrder::setMatchedQuantity ( double matchedQuantity)
noexcept

Changes the matched quantity within the transaction that updated the order.

Parameters
matchedQuantitythe matched quantity within the transaction that updated the order.

◆ setOnBehalfOfSubmitterId()

void NuamOrder::setOnBehalfOfSubmitterId ( std::int32_t onBehalfOfSubmitterId)
noexcept

Changes the ID of the actor that submitted the order message on behalf of someone else.

Parameters
onBehalfOfSubmitterIdthe ID of the actor that submitted the order message on behalf of someone else.

◆ setOrderQuantity()

void NuamOrder::setOrderQuantity ( double orderQuantity)
noexcept

Changes the initial quantity of the order when it was entered (it can be changed later if the order is amended).

Parameters
orderQuantitythe initial quantity of the order when it was entered (it can be changed later if the order is amended).

◆ setOrderType()

void NuamOrder::setOrderType ( const NuamOrderType & orderType)
noexcept

Changes the type of this order: limit, market, best order, etc.

Parameters
orderTypethe type of this order: limit, market, best order, etc..

◆ setParticipantId()

void NuamOrder::setParticipantId ( std::int32_t participantId)
noexcept

Changes the ID of the participant the actor belongs to.

Parameters
participantIdthe ID of the participant the actor belongs to.

◆ setRefreshQuantity()

void NuamOrder::setRefreshQuantity ( double refreshQuantity)
noexcept

Changes the initial display quantity of a reserve order.

Parameters
refreshQuantitythe initial display quantity of a reserve order.

◆ setSubmitterId()

void NuamOrder::setSubmitterId ( std::int32_t submitterId)
noexcept

Changes the ID of the actor that submitted the message that changed the order.

Parameters
submitterIdthe ID of the actor that submitted the message that changed the order.

◆ setTimeInForce()

void NuamOrder::setTimeInForce ( const NuamTimeInForceType & timeInForce)
noexcept

Changes the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.

Parameters
timeInForcethe time in force of this order, that is how long the order remains active in the order book if it is not fully executed.

◆ setTimeInForceData()

void NuamOrder::setTimeInForceData ( std::int32_t timeInForceData)
noexcept

Changes the additional data of the time in force, used for the time validities that require it.

Parameters
timeInForceDatathe additional data of the time in force, used for the time validities that require it.

◆ setTriggerOrderBookId()

void NuamOrder::setTriggerOrderBookId ( std::int32_t triggerOrderBookId)
noexcept

Changes the ID of the order book the order will trigger on.

Parameters
triggerOrderBookIdthe ID of the order book the order will trigger on.

◆ setTriggerPrice()

void NuamOrder::setTriggerPrice ( double triggerPrice)
noexcept

Changes the trigger price of the order.

Parameters
triggerPricethe trigger price of the order.

◆ setTriggerSessionType()

void NuamOrder::setTriggerSessionType ( std::int32_t triggerSessionType)
noexcept

Changes the session type to trigger on.

Parameters
triggerSessionTypethe session type to trigger on.

◆ toGraal()

void * NuamOrder::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 NuamOrder::toString ( ) const
overridevirtual

Returns a string representation of the current object.

Returns
a string representation

Reimplemented from EventType.

◆ withAction()

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

Changes an action of this Nuam order and returns it.

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

Reimplemented from Order.

◆ withActionTime()

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

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

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

Reimplemented from Order.

◆ withActorId()

NuamOrder & NuamOrder::withActorId ( std::int32_t actorId)
noexcept

Changes the actor identifier for the user sending the request.

Returns the current Nuam order.

Parameters
actorIdthe actor identifier for the user sending the request.
Returns
The current Nuam order.

◆ withAuxOrderId()

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

Changes auxiliary order ID.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withClientOrderId() [1/2]

template<OptionalString S>
NuamOrder & NuamOrder::withClientOrderId ( S && clientOrderId)
inlinenoexcept

Changes the client-generated order identity, or makes it null with std::nullopt.

Returns the current order.

Parameters
clientOrderIdthe client-generated order identity or std::nullopt.
Returns
The current order.

◆ withClientOrderId() [2/2]

NuamOrder & NuamOrder::withClientOrderId ( StringParam clientOrderId)

Changes the client-generated order identity.

Returns the current Nuam order.

Parameters
clientOrderIdthe client-generated order identity.
Returns
The current Nuam order.

◆ withCount()

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

Changes a number of individual orders in this aggregate order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withCustomerAccount() [1/2]

template<OptionalString S>
NuamOrder & NuamOrder::withCustomerAccount ( S && customerAccount)
inlinenoexcept

Changes the account to use for this order, or makes it null with std::nullopt.

Returns the current order.

Parameters
customerAccountthe account to use for this order or std::nullopt.
Returns
The current order.

◆ withCustomerAccount() [2/2]

NuamOrder & NuamOrder::withCustomerAccount ( StringParam customerAccount)

Changes the account to use for this order.

Returns the current Nuam order.

Parameters
customerAccountthe account to use for this order.
Returns
The current Nuam order.

◆ withCustomerInfo() [1/2]

template<OptionalString S>
NuamOrder & NuamOrder::withCustomerInfo ( S && customerInfo)
inlinenoexcept

Changes the free-text information filled in by the client, or makes it null with std::nullopt.

Returns the current order.

Parameters
customerInfothe free-text information filled in by the client or std::nullopt.
Returns
The current order.

◆ withCustomerInfo() [2/2]

NuamOrder & NuamOrder::withCustomerInfo ( StringParam customerInfo)

Changes the free-text information filled in by the client entering the transaction.

Returns the current Nuam order.

Parameters
customerInfothe free-text information filled in by the client entering the transaction.
Returns
The current Nuam order.

◆ withDisplayQuantity()

NuamOrder & NuamOrder::withDisplayQuantity ( double displayQuantity)
noexcept

Changes the actual display quantity of a reserve order at the end of the transaction.

Returns the current Nuam order.

Parameters
displayQuantitythe actual display quantity of a reserve order at the end of the transaction.
Returns
The current Nuam order.

◆ withEventFlags() [1/2]

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

Changes transactional event flags and returns the current Nuam order.

See EventFlag "Event Flags" section.

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

Reimplemented from Order.

References Order::withEventFlags().

◆ withEventFlags() [2/2]

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

Changes transactional event flags and returns the current Nuam order.

See EventFlag "Event Flags" section.

Parameters
eventFlagstransactional event flags.
Returns
The current Nuam order.

Reimplemented from Order.

References Order::withEventFlags().

◆ withEventSymbol()

NuamOrder & NuamOrder::withEventSymbol ( StringParam eventSymbol)
overridevirtual

Changes the event's symbol and returns the current Nuam order.

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

Reimplemented from Order.

◆ withEventTime()

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

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

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

Reimplemented from Order.

◆ withExchangeCode() [1/2]

NuamOrder & NuamOrder::withExchangeCode ( char exchangeCode)
overridevirtual

Changes exchange code of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withExchangeCode() [2/2]

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

Changes exchange code of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withExchangeInfo() [1/2]

template<OptionalString S>
NuamOrder & NuamOrder::withExchangeInfo ( S && exchangeInfo)
inlinenoexcept

Changes the exchange-specific information of the order, or makes it null with std::nullopt.

Returns the current order.

Parameters
exchangeInfothe exchange-specific information of the order or std::nullopt.
Returns
The current order.

◆ withExchangeInfo() [2/2]

NuamOrder & NuamOrder::withExchangeInfo ( StringParam exchangeInfo)

Changes the exchange-specific information that can be included with an order (it may contain unprintable characters).

Returns the current Nuam order.

Parameters
exchangeInfothe exchange-specific information that can be included with an order (it may contain unprintable characters).
Returns
The current Nuam order.

◆ withExecutedSize()

NuamOrder & NuamOrder::withExecutedSize ( double executedSize)
overridevirtualnoexcept

Changes executed size of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withIndex()

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

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

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

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

Reimplemented from Order.

◆ withLeavesQuantity()

NuamOrder & NuamOrder::withLeavesQuantity ( double leavesQuantity)
noexcept

Changes the remaining (open) quantity of the order.

Returns the current Nuam order.

Parameters
leavesQuantitythe remaining (open) quantity of the order.
Returns
The current Nuam order.

◆ withMarketMaker() [1/2]

template<OptionalString S>
NuamOrder & NuamOrder::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]

NuamOrder & NuamOrder::withMarketMaker ( StringParam marketMaker)
overridevirtual

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

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withMatchedQuantity()

NuamOrder & NuamOrder::withMatchedQuantity ( double matchedQuantity)
noexcept

Changes the matched quantity within the transaction that updated the order.

Returns the current Nuam order.

Parameters
matchedQuantitythe matched quantity within the transaction that updated the order.
Returns
The current Nuam order.

◆ withOnBehalfOfSubmitterId()

NuamOrder & NuamOrder::withOnBehalfOfSubmitterId ( std::int32_t onBehalfOfSubmitterId)
noexcept

Changes the ID of the actor that submitted the order message on behalf of someone else.

Returns the current Nuam order.

Parameters
onBehalfOfSubmitterIdthe ID of the actor that submitted the order message on behalf of someone else.
Returns
The current Nuam order.

◆ withOrderId()

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

Changes order ID.

Returns the current Nuam order.

Parameters
orderIdThe order ID.
Returns
The current Nuam order.

Reimplemented from Order.

◆ withOrderQuantity()

NuamOrder & NuamOrder::withOrderQuantity ( double orderQuantity)
noexcept

Changes the initial quantity of the order when it was entered (it can be changed later if the order is amended).

Returns the current Nuam order.

Parameters
orderQuantitythe initial quantity of the order when it was entered (it can be changed later if the order is amended).
Returns
The current Nuam order.

◆ withOrderSide()

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

Changes side of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withOrderType()

NuamOrder & NuamOrder::withOrderType ( const NuamOrderType & orderType)
noexcept

Changes the type of this order: limit, market, best order, etc.

Returns the current Nuam order.

Parameters
orderTypethe type of this order: limit, market, best order, etc..
Returns
The current Nuam order.

◆ withParticipantId()

NuamOrder & NuamOrder::withParticipantId ( std::int32_t participantId)
noexcept

Changes the ID of the participant the actor belongs to.

Returns the current Nuam order.

Parameters
participantIdthe ID of the participant the actor belongs to.
Returns
The current Nuam order.

◆ withPrice()

NuamOrder & NuamOrder::withPrice ( double price)
overridevirtualnoexcept

Changes price of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withRefreshQuantity()

NuamOrder & NuamOrder::withRefreshQuantity ( double refreshQuantity)
noexcept

Changes the initial display quantity of a reserve order.

Returns the current Nuam order.

Parameters
refreshQuantitythe initial display quantity of a reserve order.
Returns
The current Nuam order.

◆ withScope()

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

Changes scope of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withSequence()

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

Changes sequence number of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withSize()

NuamOrder & NuamOrder::withSize ( double size)
overridevirtualnoexcept

Changes size of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withSource()

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

Changes event's source and returns the current Nuam order.

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

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

Reimplemented from Order.

References Order::withSource().

◆ withSubmitterId()

NuamOrder & NuamOrder::withSubmitterId ( std::int32_t submitterId)
noexcept

Changes the ID of the actor that submitted the message that changed the order.

Returns the current Nuam order.

Parameters
submitterIdthe ID of the actor that submitted the message that changed the order.
Returns
The current Nuam order.

◆ withTime()

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

Changes time of this Nuam order and returns it.

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

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

Reimplemented from Order.

◆ withTimeInForce()

NuamOrder & NuamOrder::withTimeInForce ( const NuamTimeInForceType & timeInForce)
noexcept

Changes the time in force of this order, that is how long the order remains active in the order book if it is not fully executed.

Returns the current Nuam order.

Parameters
timeInForcethe time in force of this order, that is how long the order remains active in the order book if it is not fully executed.
Returns
The current Nuam order.

◆ withTimeInForceData()

NuamOrder & NuamOrder::withTimeInForceData ( std::int32_t timeInForceData)
noexcept

Changes the additional data of the time in force, used for the time validities that require it.

Returns the current Nuam order.

Parameters
timeInForceDatathe additional data of the time in force, used for the time validities that require it.
Returns
The current Nuam order.

◆ withTimeNanoPart()

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

Changes microseconds and nanoseconds time part of this Nuam order.

Returns the current Nuam order.

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

Reimplemented from Order.

◆ withTimeNanos()

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

Changes time of this Nuam order and returns it.

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

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

Reimplemented from Order.

◆ withTradeId()

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

Changes trade ID.

Returns the current Nuam order.

Parameters
tradeIdThe trade ID.
Returns
The current Nuam order.

Reimplemented from Order.

◆ withTradePrice()

NuamOrder & NuamOrder::withTradePrice ( double tradePrice)
overridevirtualnoexcept

Changes trade price.

Returns the current Nuam order.

Parameters
tradePriceThe trade price.
Returns
The current Nuam order.

Reimplemented from Order.

◆ withTradeSize()

NuamOrder & NuamOrder::withTradeSize ( double tradeSize)
overridevirtualnoexcept

Changes trade size.

Returns the current Nuam order.

Parameters
tradeSizeThe trade size.
Returns
The current Nuam order.

Reimplemented from Order.

◆ withTriggerOrderBookId()

NuamOrder & NuamOrder::withTriggerOrderBookId ( std::int32_t triggerOrderBookId)
noexcept

Changes the ID of the order book the order will trigger on.

Returns the current Nuam order.

Parameters
triggerOrderBookIdthe ID of the order book the order will trigger on.
Returns
The current Nuam order.

◆ withTriggerPrice()

NuamOrder & NuamOrder::withTriggerPrice ( double triggerPrice)
noexcept

Changes the trigger price of the order.

Returns the current Nuam order.

Parameters
triggerPricethe trigger price of the order.
Returns
The current Nuam order.

◆ withTriggerSessionType()

NuamOrder & NuamOrder::withTriggerSessionType ( std::int32_t triggerSessionType)
noexcept

Changes the session type to trigger on.

Returns the current Nuam order.

Parameters
triggerSessionTypethe session type to trigger on.
Returns
The current Nuam order.