OnixS C++ HKEX OMD-C Handler 1.0.0
API documentation
Loading...
Searching...
No Matches
StockConnectMarketTurnoverMsg Struct Reference

Public Member Functions

UInt16 msgSize () const noexcept
UInt16 msgType () const noexcept
StrRef stockConnectMarket () const noexcept
StrRef tradingDirection () const noexcept
Int64 buyTurnover () const noexcept
Int64 sellTurnover () const noexcept
Int64 buySellTurnover () const noexcept
 StockConnectMarketTurnoverMsg (const void *data, MessageSize size) noexcept
Public Member Functions inherited from BinaryMessage
 BinaryMessage () noexcept
 BinaryMessage (const void *data, MessageSize size) noexcept
 BinaryMessage (const BinaryMessage &other) noexcept
 operator bool () const noexcept
const void * binary () const noexcept
MessageSize binarySize () const noexcept
BinaryMessageoperator= (const BinaryMessage &other) noexcept

Static Public Member Functions

static void validateSize (MessageSize size)

Static Public Attributes

static constexpr MessageSize messageSize_ = 32

Additional Inherited Members

Public Types inherited from BinaryMessage
typedef MessageSize BinarySize
Protected Member Functions inherited from BinaryFields< BinaryMessage, MessageSize >
const SubMessage submessage (MessageSize offset, MessageSize size) const noexcept
FieldValue ordinary (MessageSize offset) const noexcept
const FieldValue & ordinaryRef (MessageSize offset) const noexcept
Enumeration::Enum enumeration (MessageSize offset) const noexcept
StrRef fixedStr (MessageSize offset) const noexcept

Detailed Description

Definition at line 36 of file StockConnectMarketTurnover.h.

Constructor & Destructor Documentation

◆ StockConnectMarketTurnoverMsg()

StockConnectMarketTurnoverMsg ( const void * data,
MessageSize size )
inlinenoexcept

Initializes instance over given memory block.

Definition at line 100 of file StockConnectMarketTurnover.h.

Member Function Documentation

◆ buySellTurnover()

Int64 buySellTurnover ( ) const
inlinenoexcept

Sum of the values of BuyTurnover and SellTurnover rounded down to integer.

Definition at line 83 of file StockConnectMarketTurnover.h.

◆ buyTurnover()

Int64 buyTurnover ( ) const
inlinenoexcept

Total turnover of Buy trades from the Northbound or Southbound trading (as specified in TradingDirection) under the Stock Connect Program rounded down to integer.

Definition at line 68 of file StockConnectMarketTurnover.h.

◆ msgSize()

UInt16 msgSize ( ) const
inlinenoexcept

Size of the message.

Definition at line 39 of file StockConnectMarketTurnover.h.

◆ msgType()

UInt16 msgType ( ) const
inlinenoexcept

Type of message.

Definition at line 46 of file StockConnectMarketTurnover.h.

◆ sellTurnover()

Int64 sellTurnover ( ) const
inlinenoexcept

Total turnover of Sell trades from the Northbound or Southbound trading (as specified in TradingDirection) under the Stock Connect Program rounded down to integer.

Definition at line 76 of file StockConnectMarketTurnover.h.

◆ stockConnectMarket()

StrRef stockConnectMarket ( ) const
inlinenoexcept

Markets connected under Stock Connect Program.

Definition at line 53 of file StockConnectMarketTurnover.h.

◆ tradingDirection()

StrRef tradingDirection ( ) const
inlinenoexcept

Trading Direction.

Definition at line 60 of file StockConnectMarketTurnover.h.

◆ validateSize()

void validateSize ( MessageSize size)
inlinestatic

Check the given size.

Definition at line 93 of file StockConnectMarketTurnover.h.

Member Data Documentation

◆ messageSize_

MessageSize messageSize_ = 32
staticconstexpr

Total message size.

Definition at line 90 of file StockConnectMarketTurnover.h.