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

#include <fastmm/config/config.hpp>

Public Attributes

std::string max_order_qty
 
std::string max_order_notional
 
std::string max_position
 
int max_open_orders = 0
 
int price_collar_bps = 0
 
int fat_finger_bps = 0
 
int stale_md_ms = 0
 
std::string max_loss
 
std::string max_loss_period = "total"
 The span max_loss is a budget for: "total" (every session since the kill file was cleared) or "utc_day" (from 00:00 UTC; a new day measures net PnL from zero again).
 
std::string max_gross_notional
 
std::string max_net_notional
 
int orders_per_sec = 0
 
int burst = 0
 
bool stp = true
 
int max_feed_lag_ms = 0
 0 = off
 
int fill_cluster_names = 0
 The fill-cluster guard (core/fill_cluster.hpp): names 0 = off.
 
int fill_cluster_window_ms = 500
 
int fill_cluster_hold_ms = 500
 
std::vector< HazardSection > hazard
 [[risk.hazard]]: the hazard groups (core/hazard.hpp); none: off.
 
bool check_balance = true
 refuse what the venue's balance cannot cover
 
bool allow_unlimited = false
 A keyed fastmm-live session starts without max_position (or max_order_notional) and max_loss only with this set.
 
bool reduce_only = false
 The session starts in reduce-only mode for every instrument (fastmm-ctl reduce-only off ends it).
 
UnderlyingSpec underlying
 [risk.underlying.
 

Member Data Documentation

◆ max_order_qty

std::string fastmm::RiskSection::max_order_qty

◆ max_order_notional

std::string fastmm::RiskSection::max_order_notional

◆ max_position

std::string fastmm::RiskSection::max_position

◆ max_open_orders

int fastmm::RiskSection::max_open_orders = 0

◆ price_collar_bps

int fastmm::RiskSection::price_collar_bps = 0

◆ fat_finger_bps

int fastmm::RiskSection::fat_finger_bps = 0

◆ stale_md_ms

int fastmm::RiskSection::stale_md_ms = 0

◆ max_loss

std::string fastmm::RiskSection::max_loss

◆ max_loss_period

std::string fastmm::RiskSection::max_loss_period = "total"

The span max_loss is a budget for: "total" (every session since the kill file was cleared) or "utc_day" (from 00:00 UTC; a new day measures net PnL from zero again).

◆ max_gross_notional

std::string fastmm::RiskSection::max_gross_notional

◆ max_net_notional

std::string fastmm::RiskSection::max_net_notional

◆ orders_per_sec

int fastmm::RiskSection::orders_per_sec = 0

◆ burst

int fastmm::RiskSection::burst = 0

◆ stp

bool fastmm::RiskSection::stp = true

◆ max_feed_lag_ms

int fastmm::RiskSection::max_feed_lag_ms = 0

0 = off

◆ fill_cluster_names

int fastmm::RiskSection::fill_cluster_names = 0

The fill-cluster guard (core/fill_cluster.hpp): names 0 = off.

◆ fill_cluster_window_ms

int fastmm::RiskSection::fill_cluster_window_ms = 500

◆ fill_cluster_hold_ms

int fastmm::RiskSection::fill_cluster_hold_ms = 500

◆ hazard

std::vector<HazardSection> fastmm::RiskSection::hazard

[[risk.hazard]]: the hazard groups (core/hazard.hpp); none: off.

◆ check_balance

bool fastmm::RiskSection::check_balance = true

refuse what the venue's balance cannot cover

◆ allow_unlimited

bool fastmm::RiskSection::allow_unlimited = false

A keyed fastmm-live session starts without max_position (or max_order_notional) and max_loss only with this set.

◆ reduce_only

bool fastmm::RiskSection::reduce_only = false

The session starts in reduce-only mode for every instrument (fastmm-ctl reduce-only off ends it).

◆ underlying

UnderlyingSpec fastmm::RiskSection::underlying

[risk.underlying.

<BASE>] max_net: net position per base asset over every instrument, base units.