dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches

Action enum for the Full Order Book (FOB) Orders. More...

#include <OrderAction.hpp>

Inheritance diagram for OrderAction:

Public Member Functions

template<Integral OtherCodeType>
constexpr Enum (OtherCodeType code, std::string_view name) noexcept
 Creates an element of the enum.
Public Member Functions inherited from Enum< OrderAction, std::uint32_t >
constexpr std::uint32_t getCode () const noexcept
 Returns code that is used in flag bits.
std::string getName () const
 Returns the enum element name.
std::string toString () const
 Returns a string representation of an enum element.

Static Public Attributes

static const DXFCPP_EXPORT OrderAction UNDEFINED {0, "UNDEFINED"}
 Default enum value for orders that do not support "Full Order Book" and for backward compatibility - action must be derived from other Order fields.
static const DXFCPP_EXPORT OrderAction NEW {1, "NEW"}
 New Order is added to Order Book.
static const DXFCPP_EXPORT OrderAction REPLACE {2, "REPLACE"}
 Order is modified, and price-time-priority is not maintained (i.e.
static const DXFCPP_EXPORT OrderAction MODIFY {3, "MODIFY"}
 Order is modified without changing its price-time-priority (usually due to partial cancel by the user).
static const DXFCPP_EXPORT OrderAction DELETE {4, "DELETE"}
 Order is fully canceled and removed from Order Book.
static const DXFCPP_EXPORT OrderAction PARTIAL {5, "PARTIAL"}
 Size is changed (usually reduced) due to partial order execution.
static const DXFCPP_EXPORT OrderAction EXECUTE {6, "EXECUTE"}
 Order is fully executed and removed from the Order Book.
static const DXFCPP_EXPORT OrderAction TRADE {7, "TRADE"}
 Non-Book Trade - this Trade not refers to any entry in Order Book.
static const DXFCPP_EXPORT OrderAction BUST {8, "BUST"}
 Prior Trade/Order Execution bust.
static const DXFCPP_EXPORT std::span< const std::reference_wrapper< const OrderAction > > ALL {ALL_ELEMENTS}
 All elements of the enum (constant-initialized).

Additional Inherited Members

Static Public Member Functions inherited from Enum< OrderAction, std::uint32_t >
static const OrderAction & valueOf (OtherCodeType code) noexcept
 Returns enum element by integer code bit pattern.
Protected Member Functions inherited from Enum< OrderAction, std::uint32_t >
constexpr Enum (OtherCodeType code, std::string_view name) noexcept
 Creates an element of the enum.

Detailed Description

Action enum for the Full Order Book (FOB) Orders.

Action describes the business meaning of the Order event: whether an order was added or replaced, partially or fully executed, etc.

Member Function Documentation

◆ Enum()

template<Integral OtherCodeType>
Enum< Child, Code >::Enum ( OtherCodeType code,
std::string_view name )
inlineconstexprnoexcept

Creates an element of the enum.

Parameters
codeThe element code.
nameThe element name with static storage duration (a string literal).

Member Data Documentation

◆ BUST

const OrderAction OrderAction::BUST {8, "BUST"}
staticconstinit

Prior Trade/Order Execution bust.

Order's size and price will be equals to 0.

Full Order Book fields:

◆ DELETE

const OrderAction OrderAction::DELETE {4, "DELETE"}
staticconstinit

Order is fully canceled and removed from Order Book.

Order's size will be equal to 0.

Full Order Book fields:

  • orderId - always present
  • auxOrderId - ID of the new order replacing this order - if available.
  • Trade fields will be empty

◆ EXECUTE

const OrderAction OrderAction::EXECUTE {6, "EXECUTE"}
staticconstinit

Order is fully executed and removed from the Order Book.

Order's size will be equal to 0.

Full Order Book fields:

◆ MODIFY

const OrderAction OrderAction::MODIFY {3, "MODIFY"}
staticconstinit

Order is modified without changing its price-time-priority (usually due to partial cancel by the user).

Order's size will contain a new updated size.

Full Order Book fields:

◆ NEW

const OrderAction OrderAction::NEW {1, "NEW"}
staticconstinit

New Order is added to Order Book.

Full Order Book fields:

  • orderId - always present
  • auxOrderId - ID of the order replaced by this new order - if available.
  • Trade fields will be empty

◆ PARTIAL

const OrderAction OrderAction::PARTIAL {5, "PARTIAL"}
staticconstinit

Size is changed (usually reduced) due to partial order execution.

Order's size will be updated to show the current outstanding size.

Full Order Book fields:

◆ REPLACE

const OrderAction OrderAction::REPLACE {2, "REPLACE"}
staticconstinit

Order is modified, and price-time-priority is not maintained (i.e.

order has re-entered Order Book). Order symbol and side will remain the same.

Full Order Book fields:

◆ TRADE

const OrderAction OrderAction::TRADE {7, "TRADE"}
staticconstinit

Non-Book Trade - this Trade not refers to any entry in Order Book.

Order's size and price will be equals to 0.

Full Order Book fields:

◆ UNDEFINED

DXFCPP_BEGIN_NAMESPACE constinit const OrderAction OrderAction::UNDEFINED {0, "UNDEFINED"}
staticconstinit

Default enum value for orders that do not support "Full Order Book" and for backward compatibility - action must be derived from other Order fields.

All Full Order Book-related fields for this action will be empty.