|
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
|
RiskLimits: the pre-trade limits a session runs with ([risk] in the configuration), and RiskHeadroom, what they still admit (RiskEngine::headroom, StrategyContext::risk_headroom). More...
#include "fastmm/core/fixed_point.hpp"#include "fastmm/core/time.hpp"#include <cstdint>#include <limits>#include <string_view>#include <type_traits>Go to the source code of this file.
Classes | |
| struct | fastmm::RiskLimits |
| struct | fastmm::RiskHeadroom |
| How much more each limit admits for one instrument now: the largest order (or number of orders) that passes that limit's check at this instant, the others aside. More... | |
Namespaces | |
| namespace | fastmm |
Functions | |
| template<class F > | |
| constexpr void | fastmm::for_each_changed_limit (const RiskLimits &a, const RiskLimits &b, F &&f) |
Calls f(key, before, after) for each [risk] key whose value differs between a and b, in the order of the configuration reference, with the values as [risk] writes them: Qty or Notional, an integer (stale_md_ms in milliseconds) or a bool. | |
RiskLimits: the pre-trade limits a session runs with ([risk] in the configuration), and RiskHeadroom, what they still admit (RiskEngine::headroom, StrategyContext::risk_headroom).
Separate from risk.hpp so a message can carry them (core/messages.hpp: ControlLimitsMsg, the operator's limits command) without pulling in the whole risk engine.