ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
Loading...
Searching...
No Matches
b2bits::DefaultBookTraits Struct Reference

Default traits for order book. More...

Detailed Description

Default traits for order book.

Provides default type definitions for price, quantity, counters, and timestamps. Can be customized by providing alternative traits to Aggregator.

#include <core/src/Aggregator.h>

Public Types

using PriceType = std::int64_t
 Price type (typically fixed-point).
using QtyType = std::uint64_t
 Quantity type.
using CounterType = std::uint32_t
 Order counter type.
using SideType = char
 Side type ('B' or 'S').
using Timestamp = std::uint64_t
 Timestamp type (nanoseconds).

Static Public Member Functions

static constexpr char side2char (SideType s)
 Convert side type to character.

Member Typedef Documentation

◆ CounterType

Order counter type.

◆ PriceType

Price type (typically fixed-point).

◆ QtyType

using b2bits::DefaultBookTraits::QtyType = std::uint64_t

Quantity type.

◆ SideType

Side type ('B' or 'S').

◆ Timestamp

using b2bits::DefaultBookTraits::Timestamp = std::uint64_t

Timestamp type (nanoseconds).

Member Function Documentation

◆ side2char()

constexpr char b2bits::DefaultBookTraits::side2char ( SideType s)
inlinestaticconstexpr

Convert side type to character.

Parameters
sSide value
Returns
Side as character

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