dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
ImbalanceSide Struct Reference

Side of an order imbalance. More...

#include <ImbalanceSide.hpp>

Inheritance diagram for ImbalanceSide:

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< ImbalanceSide, 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 ImbalanceSide UNDEFINED {0, "UNDEFINED"}
 Side is undefined, unknown or inapplicable.
static const DXFCPP_EXPORT ImbalanceSide BUY {1, "BUY"}
 Buy side (bid) imbalance.
static const DXFCPP_EXPORT ImbalanceSide SELL {2, "SELL"}
 Sell side (ask or offer) imbalance.
static const DXFCPP_EXPORT ImbalanceSide NO_IMBALANCE {3, "NO_IMBALANCE"}
 No order imbalance exists.
static const DXFCPP_EXPORT ImbalanceSide INSUFFICIENT_ORDERS {4, "INSUFFICIENT_ORDERS"}
 Insufficient orders to calculate imbalance.
static const DXFCPP_EXPORT ImbalanceSide PAUSED {5, "PAUSED"}
 Imbalance calculation is paused.
static const DXFCPP_EXPORT std::span< const std::reference_wrapper< const ImbalanceSide > > ALL {ALL_ELEMENTS}
 All elements of the enum (constant-initialized).

Additional Inherited Members

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

Detailed Description

Side of an order imbalance.

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

◆ INSUFFICIENT_ORDERS

const ImbalanceSide ImbalanceSide::INSUFFICIENT_ORDERS {4, "INSUFFICIENT_ORDERS"}
staticconstinit

Insufficient orders to calculate imbalance.

Applicable only to NASDAQ and OTC Markets exchanges.

◆ PAUSED

const ImbalanceSide ImbalanceSide::PAUSED {5, "PAUSED"}
staticconstinit

Imbalance calculation is paused.

Applicable only to NASDAQ exchange.