4#include "fastmm/core/account_pool.hpp"
5#include "fastmm/core/balance_book.hpp"
7#include "fastmm/core/fx.hpp"
8#include "fastmm/core/perp_book.hpp"
10#include "fastmm/core/risk.hpp"
11#include "fastmm/core/thread_utils.hpp"
13#include "fastmm/core/underlying.hpp"
Fee rates per instrument, in centi-basis-points (integer) of the fill notional.
Definition strategy.hpp:16
constexpr Duration milliseconds(std::int64_t v) noexcept
Definition time.hpp:38
constexpr Duration seconds(std::int64_t v) noexcept
Definition time.hpp:41
QuoteManager (5.6): diffs the strategy's DesiredQuotes against the orders resting at the venue and em...
std::uint16_t session_epoch
Definition engine_config.hpp:24
Duration reject_log_interval
Risk rejects are logged at WARN: the first of each reason, then at most one line per reason per inter...
Definition engine_config.hpp:30
FeeTable fees
Maker/taker rates per instrument (fee_table, config/config.hpp), what StrategyContext::fees reports.
Definition engine_config.hpp:79
std::uint64_t rng_seed
Definition engine_config.hpp:23
Duration latency_publish_interval
Definition engine_config.hpp:27
Duration crossed_grace
Definition engine_config.hpp:26
UnderlyingPlan underlying
[risk.underlying]: the underlyings with a net position limit and their instruments (inactive: none).
Definition engine_config.hpp:82
PoolPlan pools
[venues.
Definition engine_config.hpp:92
RiskLimits risk
Definition engine_config.hpp:73
SpinMode spin_mode
Definition engine_config.hpp:72
std::uint64_t session_id
Definition engine_config.hpp:22
std::int64_t queue_conservatism_bps
[engine] queue_conservatism (a backtest: [backtest] queue_conservatism), in bps of 1: how much of a l...
Definition engine_config.hpp:59
Duration ack_timeout
[engine] ack_timeout_ms: an order still waiting for its ack this long is force-cancelled,...
Definition engine_config.hpp:48
Duration state_snapshot_interval
[strategy] state_snapshot_interval_s: with a journal, the strategy's state() and the positions are wr...
Definition engine_config.hpp:44
BalanceConfig balance
[risk] check_balance and the initial margin rates ([[instruments]] initial_margin) the balance check ...
Definition engine_config.hpp:85
PerpConfig perp
[accounting] mark, stale_mark_ms, stale_funding_ms: what a derivative's position is valued at and whe...
Definition engine_config.hpp:88
std::string state_file
[strategy] state_file / state_interval_s (strategies/hooks.hpp KeepsState): the engine takes the stra...
Definition engine_config.hpp:38
bool quoting_enabled
Definition engine_config.hpp:63
std::string initial_state
Definition engine_config.hpp:40
QuoteParams quotes
Definition engine_config.hpp:74
std::uint32_t max_events_per_step
Definition engine_config.hpp:25
Duration state_interval
Definition engine_config.hpp:39
Notional pnl_carry
Net PnL carried over from earlier sessions ([risk] max_loss is a budget for the deployment,...
Definition engine_config.hpp:62
Duration max_param_age
[strategy] max_param_age_ms: quoting is disabled before the first ParamUpdate and while none was appl...
Definition engine_config.hpp:33
std::uint32_t await_reconcile
Bit v: venue v's positions are not current until its first reconciliation ends.
Definition engine_config.hpp:70
FxPlan fx
[accounting]: the settlement currencies and their FX sources (inactive: nothing converted).
Definition engine_config.hpp:76
Duration flatten_interval
Operator flatten (ControlCommand::Flatten, the control socket's flatten): how often the engine looks ...
Definition engine_config.hpp:53
Duration flatten_timeout
Definition engine_config.hpp:54
std::int64_t flatten_slippage_bps
Definition engine_config.hpp:55
int cpu
Definition engine_config.hpp:71
Definition quote_manager.hpp:91
Definition risk_limits.hpp:17