Type of orders on the Nuam Market.
More...
#include <NuamOrderType.hpp>
|
| template<Integral OtherCodeType> |
| constexpr | Enum (OtherCodeType code, std::string_view name) noexcept |
| | Creates an element of the enum.
|
| 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 const DXFCPP_EXPORT NuamOrderType | UNDEFINED {0, "UNDEFINED"} |
| | The order type is undefined, unknown or inapplicable.
|
|
static const DXFCPP_EXPORT NuamOrderType | LIMIT {1, "LIMIT"} |
| | The order must execute within a limit price.
|
|
static const DXFCPP_EXPORT NuamOrderType | MARKET {2, "MARKET"} |
| | The order can execute at any price.
|
| static const DXFCPP_EXPORT NuamOrderType | MARKET_TO_LIMIT {3, "MARKET_TO_LIMIT"} |
| | The order is first executed as a market order.
|
|
static const DXFCPP_EXPORT NuamOrderType | BEST_ORDER {4, "BEST_ORDER"} |
| | The order is entered without a price and if there is a best price on the same side of the order book (BBO), the order will be given this price and added to the order book.
|
| static const DXFCPP_EXPORT NuamOrderType | IMBALANCE {5, "IMBALANCE"} |
| | Imbalance orders only participate in auctions and only of there is a surplus on the same side as the imbalance order.
|
|
static const DXFCPP_EXPORT std::span< const std::reference_wrapper< const NuamOrderType > > | ALL {ALL_ELEMENTS} |
| | All elements of the enum (constant-initialized).
|
|
| static const NuamOrderType & | valueOf (OtherCodeType code) noexcept |
| | Returns enum element by integer code bit pattern.
|
| constexpr | Enum (OtherCodeType code, std::string_view name) noexcept |
| | Creates an element of the enum.
|
Type of orders on the Nuam Market.
Java: NuamOrderType
◆ Enum()
template<Integral OtherCodeType>
| Enum< Child, Code >::Enum |
( |
OtherCodeType | code, |
|
|
std::string_view | name ) |
|
inlineconstexprnoexcept |
Creates an element of the enum.
- Parameters
-
| code | The element code. |
| name | The element name with static storage duration (a string literal). |
◆ IMBALANCE
Imbalance orders only participate in auctions and only of there is a surplus on the same side as the imbalance order.
Imbalance orders are not part of the EP calculation.
◆ MARKET_TO_LIMIT
| const NuamOrderType NuamOrderType::MARKET_TO_LIMIT {3, "MARKET_TO_LIMIT"} |
|
staticconstinit |
The order is first executed as a market order.
If it cannot be fully executed, any remaining quantity is then converted into a limit order, with the execution price serving as the limit.