4#include "fastmm/core/account_pool.hpp"
5#include "fastmm/core/balance_book.hpp"
8#include "fastmm/core/fill_cluster.hpp"
9#include "fastmm/core/fx.hpp"
10#include "fastmm/core/hazard.hpp"
11#include "fastmm/core/perp_book.hpp"
12#include "fastmm/core/pool_homes.hpp"
14#include "fastmm/core/risk.hpp"
15#include "fastmm/core/thread_utils.hpp"
17#include "fastmm/core/underlying.hpp"
18#include "fastmm/core/windows.hpp"
The capacity price ([capacity]): every action that uses an order slot is a purchase.
Fee rates per instrument, in centi-basis-points (integer) of the fill notional.
Definition strategy.hpp:23
constexpr Duration milliseconds(std::int64_t v) noexcept
Definition time.hpp:38
constexpr BaseFlows base_flows_of(std::string_view s) noexcept
The value of [engine] base_flows ("off", "report", "adjust"; anything else is off).
Definition engine_config.hpp:37
@ Off
none was asked for in this session
BaseFlows
[engine] base_flows: what the engine does with a change of a spot instrument's base asset that neithe...
Definition engine_config.hpp:31
@ Report
logged and journaled; the position stays
@ Adjust
... and the position takes it, valued at the mid
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...
Definition capacity_price.hpp:77
FillClusterConfig fill_cluster
[risk] fill_cluster_names, fill_cluster_window_ms, fill_cluster_hold_ms: quote fills on one side over...
Definition engine_config.hpp:128
std::uint16_t session_epoch
Definition engine_config.hpp:44
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:54
std::vector< std::int64_t > markout_ms
[engine] markout_ms: after each fill the record stream gets the instrument's mid at the fill and at e...
Definition engine_config.hpp:75
std::vector< std::string > venue_names
The venues' names ([venues.
Definition engine_config.hpp:121
FeeTable fees
Maker/taker rates per instrument (fee_table, config/config.hpp), what StrategyContext::fees reports.
Definition engine_config.hpp:141
WindowsConfig windows
[[windows]]: recurring windows that pull a scope's quotes or hold it reduce-only while open,...
Definition engine_config.hpp:135
std::uint64_t rng_seed
Definition engine_config.hpp:43
Duration latency_publish_interval
Definition engine_config.hpp:47
Duration crossed_grace
Definition engine_config.hpp:46
UnderlyingPlan underlying
[risk.underlying]: the underlyings with a net position limit and their instruments (inactive: none).
Definition engine_config.hpp:144
PoolPlan pools
[venues.
Definition engine_config.hpp:154
RiskLimits risk
Definition engine_config.hpp:124
SpinMode spin_mode
Definition engine_config.hpp:123
std::uint64_t session_id
Definition engine_config.hpp:42
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:102
bool publish_live
The monitors' snapshots (live_stats(), the latency percentiles) are published every latency_publish_i...
Definition engine_config.hpp:51
Duration ack_timeout
[engine] ack_timeout_ms: an order still waiting for its ack this long is force-cancelled,...
Definition engine_config.hpp:79
BalanceConfig balance
[risk] check_balance and the initial margin rates ([[instruments]] initial_margin) the balance check ...
Definition engine_config.hpp:147
std::uint32_t initial_state_version
The state_version initial_state was written with (the state file's head, a checkpoint's record): a ba...
Definition engine_config.hpp:67
PerpConfig perp
[accounting] mark, stale_mark_ms, stale_funding_ms: what a derivative's position is valued at and whe...
Definition engine_config.hpp:150
std::string state_file
[strategy] state_file / state_interval_s (strategies/hooks.hpp KeepsState): the engine takes the stra...
Definition engine_config.hpp:62
bool quoting_enabled
Definition engine_config.hpp:106
std::string initial_state
Definition engine_config.hpp:64
QuoteParams quotes
Definition engine_config.hpp:136
std::uint32_t max_events_per_step
Definition engine_config.hpp:45
HazardConfig hazard
[[risk.hazard]]: groups of instruments with a hazard score per side; evidence that takes it to the gr...
Definition engine_config.hpp:132
Duration state_interval
Definition engine_config.hpp:63
Notional pnl_carry
Net PnL carried over from earlier sessions ([risk] max_loss is a budget for the deployment,...
Definition engine_config.hpp:105
bool base_flows_from_zero
Definition engine_config.hpp:98
Duration base_flows_settle
Definition engine_config.hpp:97
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:57
BaseFlows base_flows
[engine] base_flows, base_flows_settle_s, base_flows_from: for every base asset of the spot instrumen...
Definition engine_config.hpp:96
std::uint32_t await_reconcile
Bit v: venue v's positions are not current until its first reconciliation ends.
Definition engine_config.hpp:118
bool reduce_only
[risk] reduce_only: the session starts in reduce-only mode for every instrument (ControlCommand::Redu...
Definition engine_config.hpp:109
FxPlan fx
[accounting]: the settlement currencies and their FX sources (inactive: nothing converted).
Definition engine_config.hpp:138
Duration flatten_interval
Operator flatten (ControlCommand::Flatten, the control socket's flatten): how often the engine looks ...
Definition engine_config.hpp:84
Duration flatten_timeout
Definition engine_config.hpp:85
std::int64_t flatten_slippage_bps
Definition engine_config.hpp:86
int cpu
Definition engine_config.hpp:122
CapacityConfig capacity
[capacity]: the price of an order slot (core/capacity_price.hpp); mode off: none.
Definition engine_config.hpp:159
PoolHomesPlan homes
[venues.
Definition engine_config.hpp:157
std::uint32_t reduce_only_venues
[venues.<x>] reduce_only: ... for the instruments of these venues, bit per venue id.
Definition engine_config.hpp:111
bool cancel_unknown_own
[engine] cancel_unknown = "own": an open order a reconciliation (or an ack) reports that the OMS does...
Definition engine_config.hpp:90
Duration checkpoint_interval
[engine] checkpoint_s: with a journal, a checkpoint is written to it this often (StrategyStateMsg Kin...
Definition engine_config.hpp:72
Definition quote_manager.hpp:159
Definition risk_limits.hpp:18