ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
Loading...
Searching...
No Matches
itch::overlay::AddOrderView Class Reference

Lazy view of an Add Order (A) message. More...

#include <overlay.hpp>

+ Inheritance diagram for itch::overlay::AddOrderView:

Public Member Functions

auto order_reference_number () const noexcept -> std::uint64_t
 Day-unique reference number for the order.
 
auto buy_sell_indicator () const noexcept -> char
 'B' buy, 'S' sell.
 
auto shares () const noexcept -> std::uint32_t
 Displayed share quantity.
 
auto stock () const noexcept -> std::string_view
 Stock symbol, right padded with spaces.
 
auto price () const noexcept -> std::uint32_t
 Display price (4 implied decimals).
 
constexpr MessageView () noexcept=default
 Constructs an empty view with no underlying frame.
 
 MessageView (const std::byte *data, std::size_t size) noexcept
 Constructs a view over a raw ITCH message frame.
 
- Public Member Functions inherited from itch::overlay::MessageView
constexpr MessageView () noexcept=default
 Constructs an empty view with no underlying frame.
 
 MessageView (const std::byte *data, std::size_t size) noexcept
 Constructs a view over a raw ITCH message frame.
 
auto type () const noexcept -> char
 The one-byte message type.
 
auto stock_locate () const noexcept -> std::uint16_t
 The locate code identifying the security.
 
auto tracking_number () const noexcept -> std::uint16_t
 The Nasdaq internal tracking number.
 
auto timestamp () const noexcept -> std::uint64_t
 The message timestamp (nanoseconds past midnight).
 
auto size () const noexcept -> std::size_t
 The raw frame size in bytes.
 
auto data () const noexcept -> const std::byte *
 Pointer to the raw frame (the type byte).
 
template<typename FieldType >
auto read (std::size_t offset) const noexcept -> FieldType
 Reads an arbitrary integral field at a byte offset, big-endian.
 

Additional Inherited Members

- Protected Attributes inherited from itch::overlay::MessageView
const std::byte * m_data {nullptr}
 
std::size_t m_size {0}
 

Detailed Description

Lazy view of an Add Order (A) message.

Definition at line 149 of file overlay.hpp.

Member Function Documentation

◆ order_reference_number()

auto itch::overlay::AddOrderView::order_reference_number ( ) const -> std::uint64_t
inlinenoexcept

Day-unique reference number for the order.

Returns
Day-unique reference number for the order.

Definition at line 155 of file overlay.hpp.

◆ buy_sell_indicator()

auto itch::overlay::AddOrderView::buy_sell_indicator ( ) const -> char
inlinenoexcept

'B' buy, 'S' sell.

Returns
'B' buy, 'S' sell.

Definition at line 161 of file overlay.hpp.

◆ shares()

auto itch::overlay::AddOrderView::shares ( ) const -> std::uint32_t
inlinenoexcept

Displayed share quantity.

Returns
Displayed share quantity.

Definition at line 165 of file overlay.hpp.

◆ stock()

auto itch::overlay::AddOrderView::stock ( ) const -> std::string_view
inlinenoexcept

Stock symbol, right padded with spaces.

Returns
Stock symbol, right padded with spaces.

Definition at line 169 of file overlay.hpp.

References itch::overlay::MessageView::m_data, and itch::overlay::detail::read_stock().

◆ price()

auto itch::overlay::AddOrderView::price ( ) const -> std::uint32_t
inlinenoexcept

Display price (4 implied decimals).

Returns
Display price (4 implied decimals).

Definition at line 175 of file overlay.hpp.

◆ MessageView() [1/2]

constexpr itch::overlay::MessageView::MessageView ( )
constexprdefaultnoexcept

Constructs an empty view with no underlying frame.

◆ MessageView() [2/2]

itch::overlay::MessageView::MessageView ( const std::byte *  data,
std::size_t  size 
)
inlineexplicitnoexcept

Constructs a view over a raw ITCH message frame.

Parameters
dataPointer to the start of the frame (the type byte).
sizeSize of the frame in bytes.

Definition at line 97 of file overlay.hpp.


The documentation for this class was generated from the following file: