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

An operator's limits command the engine applied (ControlCommand::SetLimits or SetUnderlyingLimit): the [risk] limits and check_balance before and after it, or one underlying's max_net. More...

#include <fastmm/core/record_stream.hpp>

Public Types

enum  Kind : std::uint8_t { kRisk = 0 , kUnderlying = 1 }
 

Public Attributes

RecordHeader hdr
 
RiskLimits before
 64
 
RiskLimits after
 160
 
std::int64_t underlying_before
 256 kUnderlying: max_net, raw Qty in base units
 
std::int64_t underlying_after
 264
 
FixedString< 8 > underlying
 272 kUnderlying: the base asset
 
std::uint8_t kind
 
std::uint8_t forced
 
std::uint8_t check_balance_before
 
std::uint8_t check_balance_after
 
std::uint8_t pad_ [320 - 276 - sizeof(FixedString< 8 >)]
 

Detailed Description

An operator's limits command the engine applied (ControlCommand::SetLimits or SetUnderlyingLimit): the [risk] limits and check_balance before and after it, or one underlying's max_net.

forced: it turned a limit off (fastmm-ctl limits --force).

Member Enumeration Documentation

◆ Kind

enum fastmm::LimitsRecord::Kind : std::uint8_t
Enumerator
kRisk 
kUnderlying 

Member Data Documentation

◆ hdr

RecordHeader fastmm::LimitsRecord::hdr

◆ before

RiskLimits fastmm::LimitsRecord::before

64

◆ after

RiskLimits fastmm::LimitsRecord::after

160

◆ underlying_before

std::int64_t fastmm::LimitsRecord::underlying_before

256 kUnderlying: max_net, raw Qty in base units

◆ underlying_after

std::int64_t fastmm::LimitsRecord::underlying_after

264

◆ underlying

FixedString<8> fastmm::LimitsRecord::underlying

272 kUnderlying: the base asset

◆ kind

std::uint8_t fastmm::LimitsRecord::kind

◆ forced

std::uint8_t fastmm::LimitsRecord::forced

◆ check_balance_before

std::uint8_t fastmm::LimitsRecord::check_balance_before

◆ check_balance_after

std::uint8_t fastmm::LimitsRecord::check_balance_after

◆ pad_

std::uint8_t fastmm::LimitsRecord::pad_[320 - 276 - sizeof(FixedString< 8 >)]