FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::InstrumentRulesMsg Struct Reference

A venue changed an instrument's trading rules or trading status while the session ran (EventType::InstrumentRules): the connector read them again (venues/instrument_rules.hpp) and found them different from the last it reported. More...

#include <fastmm/core/messages.hpp>

Public Attributes

EventHeader hdr
 
Price tick
 64
 
Qty lot
 72
 
Qty min_qty
 80
 
Qty max_qty
 88
 
Notional min_notional
 96
 
Notional max_notional
 104
 
TradingStatus status
 112
 
std::uint8_t changed
 113
 
std::uint8_t cause
 114
 
std::uint8_t pad_ [13]
 -> 128
 

Static Public Attributes

static constexpr std::uint8_t kTick = 1U << 0
 
static constexpr std::uint8_t kLot = 1U << 1
 
static constexpr std::uint8_t kMinQty = 1U << 2
 
static constexpr std::uint8_t kMaxQty = 1U << 3
 
static constexpr std::uint8_t kMinNotional = 1U << 4
 
static constexpr std::uint8_t kMaxNotional = 1U << 5
 
static constexpr std::uint8_t kStatus = 1U << 6
 
static constexpr std::uint8_t kRefresh = 0
 
static constexpr std::uint8_t kRefusal = 1
 

Detailed Description

A venue changed an instrument's trading rules or trading status while the session ran (EventType::InstrumentRules): the connector read them again (venues/instrument_rules.hpp) and found them different from the last it reported.

It rides the order ring, which drops nothing, and the journal, so a replay changes the rules at the same engine time. changed names the fields that differ; the engine takes those and leaves the rest of the instrument as it is, so a field the session kept from its configuration ([venues.<name>] rules_mismatch = "warn") stays until the venue changes it. A zero max_qty or max_notional is no limit, as in Instrument. cause kRefresh: the periodic read; kRefusal: a read after the venue refused an order for its rules or status

Member Data Documentation

◆ kTick

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kTick = 1U << 0
staticconstexpr

◆ kLot

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kLot = 1U << 1
staticconstexpr

◆ kMinQty

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kMinQty = 1U << 2
staticconstexpr

◆ kMaxQty

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kMaxQty = 1U << 3
staticconstexpr

◆ kMinNotional

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kMinNotional = 1U << 4
staticconstexpr

◆ kMaxNotional

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kMaxNotional = 1U << 5
staticconstexpr

◆ kStatus

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kStatus = 1U << 6
staticconstexpr

◆ kRefresh

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kRefresh = 0
staticconstexpr

◆ kRefusal

constexpr std::uint8_t fastmm::InstrumentRulesMsg::kRefusal = 1
staticconstexpr

◆ hdr

EventHeader fastmm::InstrumentRulesMsg::hdr

◆ tick

Price fastmm::InstrumentRulesMsg::tick

64

◆ lot

Qty fastmm::InstrumentRulesMsg::lot

72

◆ min_qty

Qty fastmm::InstrumentRulesMsg::min_qty

80

◆ max_qty

Qty fastmm::InstrumentRulesMsg::max_qty

88

◆ min_notional

Notional fastmm::InstrumentRulesMsg::min_notional

96

◆ max_notional

Notional fastmm::InstrumentRulesMsg::max_notional

104

◆ status

TradingStatus fastmm::InstrumentRulesMsg::status

112

◆ changed

std::uint8_t fastmm::InstrumentRulesMsg::changed

113

◆ cause

std::uint8_t fastmm::InstrumentRulesMsg::cause

114

◆ pad_

std::uint8_t fastmm::InstrumentRulesMsg::pad_[13]

-> 128