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

ControlCommand::BaseFlow: a change of the base asset of spot instrument hdr.instrument on the accounts of pool hdr.venue (the primary) that the engine's fills and transfers do not explain ([engine] base_flows). More...

#include <fastmm/core/messages.hpp>

Public Attributes

EventHeader hdr
 
ControlCommand command
 
std::uint8_t flags
 kBooked
 
std::uint8_t pad0_ [6]
 
std::uint64_t arg
 
std::int64_t balance
 80
 
std::int64_t position
 88
 
FixedString< 8 > asset
 96
 
std::uint8_t pad_ [23]
 105 -> 128
 

Static Public Attributes

static constexpr std::uint8_t kBooked = 1
 

Detailed Description

ControlCommand::BaseFlow: a change of the base asset of spot instrument hdr.instrument on the accounts of pool hdr.venue (the primary) that the engine's fills and transfers do not explain ([engine] base_flows).

arg is the change (raw Qty, two's complement: negative left the accounts), balance the accounts' total of asset and position the position of the instrument(s) of that base before it (raw); kBooked: the position took it. The engine journals it as a record (kSynthetic); a replay finds it again.

Member Data Documentation

◆ kBooked

constexpr std::uint8_t fastmm::ControlBaseFlowMsg::kBooked = 1
staticconstexpr

◆ hdr

EventHeader fastmm::ControlBaseFlowMsg::hdr

◆ command

ControlCommand fastmm::ControlBaseFlowMsg::command

◆ flags

std::uint8_t fastmm::ControlBaseFlowMsg::flags

kBooked

◆ pad0_

std::uint8_t fastmm::ControlBaseFlowMsg::pad0_[6]

◆ arg

std::uint64_t fastmm::ControlBaseFlowMsg::arg

◆ balance

std::int64_t fastmm::ControlBaseFlowMsg::balance

80

◆ position

std::int64_t fastmm::ControlBaseFlowMsg::position

88

◆ asset

FixedString<8> fastmm::ControlBaseFlowMsg::asset

96

◆ pad_

std::uint8_t fastmm::ControlBaseFlowMsg::pad_[23]

105 -> 128