#include <fastmm/config/config.hpp>
◆ LoadOptions
◆ load()
◆ parse()
| static Config fastmm::Config::parse |
( |
std::string_view |
toml, |
|
|
const LoadOptions & |
opts = LoadOptions{}, |
|
|
std::string_view |
source_name = "<string>" |
|
) |
| |
|
static |
◆ venue()
| const VenueSection * fastmm::Config::venue |
( |
std::string_view |
name | ) |
const |
|
noexcept |
◆ venue_id()
| VenueId fastmm::Config::venue_id |
( |
std::string_view |
name | ) |
const |
|
noexcept |
◆ pool_plan()
| PoolPlan fastmm::Config::pool_plan |
( |
| ) |
const |
|
noexcept |
The account pools ([venues.<x>] pool_of), by venue id; inactive without any.
◆ treasury_config()
| TreasuryConfig fastmm::Config::treasury_config |
( |
std::string_view |
primary | ) |
const |
The treasury of the pool whose primary is primary ([venues.
<primary>.treasury]), typed; a disabled one when the venue has none.
◆ risk_limits()
Typed views used to wire the engine.
◆ quote_params()
◆ log_level()
| LogLevel fastmm::Config::log_level |
( |
| ) |
const |
◆ mirror_level()
| LogLevel fastmm::Config::mirror_level |
( |
| ) |
const |
◆ status_interval_s()
| std::int64_t fastmm::Config::status_interval_s |
( |
bool |
to_file | ) |
const |
|
inlinenoexcept |
to_file: the log goes to a file (--log or [logging] file), where the default is 1 s.
◆ spin_mode()
| SpinMode fastmm::Config::spin_mode |
( |
| ) |
const |
◆ single_threaded()
| bool fastmm::Config::single_threaded |
( |
| ) |
const |
|
inlinenoexcept |
◆ redacted()
| std::string fastmm::Config::redacted |
( |
| ) |
const |
Dump with api_key/api_secret/api_passphrase masked; safe to log.
◆ effective_toml()
| std::string fastmm::Config::effective_toml |
( |
| ) |
const |
The configuration as parsed (after any changes made to this object, e.g.
command-line overrides) as complete TOML without api_key / api_secret / api_passphrase. Deterministic: equal configurations give equal text, and parsing the text gives an equal configuration. Journals embed it, and its hash is the journal header's config_hash.
◆ effective_hash()
| std::uint64_t fastmm::Config::effective_hash |
( |
| ) |
const |
|
inline |
◆ text_hash()
| static std::uint64_t fastmm::Config::text_hash |
( |
std::string_view |
text | ) |
|
|
staticnoexcept |
◆ engine
◆ venues
◆ instruments
◆ strategy
◆ risk
◆ gateway
◆ accounting
| AccountingSpec fastmm::Config::accounting |
[accounting]: the reporting currency and the FX source of each other settlement currency, read by fastmm-live, fastmm-gateway, the backtester and replay (build_fx_plan, core/fx.hpp).
◆ logging
◆ sim
◆ backtest
◆ storage
[storage]: the backend name and whatever keys that backend reads.
Free-form, like [sim] and [backtest]: a storage backend parses its own keys and the central schema knows none of them (docs/reference/storage.md).
◆ warnings
| std::vector<std::string> fastmm::Config::warnings |
◆ source
| std::string fastmm::Config::source |
◆ hash
| std::uint64_t fastmm::Config::hash = 0 |