13#include "fastmm/core/account_pool.hpp"
14#include "fastmm/core/balance_book.hpp"
17#include "fastmm/core/fill_cluster.hpp"
18#include "fastmm/core/fx.hpp"
19#include "fastmm/core/hazard.hpp"
21#include "fastmm/core/perp_book.hpp"
22#include "fastmm/core/pool_homes.hpp"
24#include "fastmm/core/risk.hpp"
25#include "fastmm/core/thread_utils.hpp"
26#include "fastmm/core/treasury.hpp"
27#include "fastmm/core/underlying.hpp"
28#include "fastmm/core/windows.hpp"
55 [[nodiscard]]
int line() const noexcept {
return line_; }
56 [[nodiscard]]
int col() const noexcept {
return col_; }
64 std::string
name =
"fastmm";
203 std::map<std::string, std::string>
homes;
280 std::map<std::string, std::string>
extra;
313 std::map<std::string, std::vector<std::string>>
groups;
316 std::map<std::string, ParamMap>
overrides;
336 std::map<std::string, double>
weights;
339 std::map<std::string, std::string>
assign;
342 std::vector<AbArmSection>
arms;
343 [[nodiscard]]
bool enabled() const noexcept {
return !
arms.empty(); }
353 std::string
side =
"both";
411 std::map<std::string, std::string>
shared;
414 [[nodiscard]]
bool any() const noexcept {
423struct CapacitySection {
456 std::string
level =
"info";
478 std::vector<std::pair<std::string, std::vector<std::string>>>
grid;
479 std::vector<std::map<std::string, std::string>>
points;
485struct GenericSection {
486 std::map<std::string, std::string>
values;
488 [[nodiscard]]
bool has(std::string_view key)
const {
return values.contains(std::string(key)); }
489 [[nodiscard]] std::string
get_string(std::string_view key, std::string_view def =
"")
const;
490 [[nodiscard]] std::int64_t
get_int(std::string_view key, std::int64_t def = 0)
const;
491 [[nodiscard]]
double get_double(std::string_view key,
double def = 0.0)
const;
492 [[nodiscard]]
bool get_bool(std::string_view key,
bool def =
false)
const;
507 std::string_view source_name =
"<string>");
510 std::vector<VenueSection>
venues;
541 [[nodiscard]] TreasuryConfig
treasury_config(std::string_view primary) const;
558 return to_file ? 1 : 10;
560 [[nodiscard]] SpinMode
spin_mode()
const;
564 [[nodiscard]] std::string
redacted()
const;
572 [[nodiscard]]
static std::uint64_t
text_hash(std::string_view text)
noexcept;
586 std::span<const std::string> venue_names);
592 std::span<const std::string> venue_names);
601 const std::vector<std::string>* venue_names =
nullptr);
607 const std::vector<std::string>* venue_names =
nullptr);
int col() const noexcept
Definition config.hpp:58
int line() const noexcept
Definition config.hpp:57
Definition config.hpp:502
static Config parse(std::string_view toml, const LoadOptions &opts=LoadOptions{}, std::string_view source_name="<string>")
SpinMode spin_mode() const
StrategySection strategy
Definition config.hpp:514
LogLevel mirror_level() const
RiskLimits risk_limits() const
Typed views used to wire the engine.
bool single_threaded() const noexcept
Definition config.hpp:563
std::string redacted() const
Dump with api_key/api_secret/api_passphrase masked; safe to log.
std::uint32_t reduce_only_venues() const noexcept
The venues whose [venues.<x>] reduce_only is set, bit per venue id (EngineConfig).
GenericSection backtest
Definition config.hpp:526
GenericSection storage
[storage]: the backend name and whatever keys that backend reads.
Definition config.hpp:530
LoggingSection logging
Definition config.hpp:523
const VenueSection * venue(std::string_view name) const noexcept
GatewaySection gateway
Definition config.hpp:519
PoolPlan pool_plan() const noexcept
The account pools ([venues.<x>] pool_of), by venue id; inactive without any.
std::vector< std::string > warnings
Definition config.hpp:531
AbSection ab
Definition config.hpp:515
QuoteParams quote_params() const
EngineSection engine
Definition config.hpp:511
std::string unlimited_risk() const
Why fastmm-live refuses this [risk] for a session that trades with real keys: neither max_position no...
std::string source
path or "<string>"
Definition config.hpp:532
std::uint64_t hash
FNV-1a of the raw text.
Definition config.hpp:533
TreasuryConfig treasury_config(std::string_view primary) const
The treasury of the pool whose primary is primary ([venues.
FillClusterConfig fill_cluster_config() const
RiskSection risk
Definition config.hpp:516
std::uint64_t effective_hash() const
Definition config.hpp:573
AccountingSpec accounting
[accounting]: the reporting currency and the FX source of each other settlement currency,...
Definition config.hpp:522
std::vector< WindowSection > windows
[[windows]]
Definition config.hpp:517
ShadowSection shadow
Definition config.hpp:524
GenericSection sim
Definition config.hpp:525
CapacitySection capacity
Definition config.hpp:518
CapacityConfig capacity_config() const
[capacity], typed; the engine fills in the threshold's notional range.
std::vector< VenueSection > venues
VenueId == index.
Definition config.hpp:512
static Config load(const std::string &path, const LoadOptions &opts=LoadOptions{})
LogLevel log_level() const
static std::uint64_t text_hash(std::string_view text) noexcept
FNV-1a.
std::int64_t status_interval_s(bool to_file) const noexcept
to_file: the log goes to a file (--log or [logging] file), where the default is 1 s.
Definition config.hpp:558
std::string effective_toml() const
The configuration as parsed (after any changes made to this object, e.g.
VenueId venue_id(std::string_view name) const noexcept
invalid if unknown
std::vector< InstrumentSection > instruments
Definition config.hpp:513
Dense-by-id table built at startup; symbol lookup is a sorted FlatMap keyed by (venue,...
Definition instrument.hpp:147
Fee rates per instrument, in centi-basis-points (integer) of the fill notional.
Instrument: the single definition of a tradable contract (5.3 / 5.15).
Definition strategy.hpp:23
constexpr int kMinFillAuditIntervalS
The shortest [venues.<name>] fill_audit_interval_s: an audit reads every subscribed symbol.
Definition config.hpp:47
LogLevel
Definition enums.hpp:688
FeeTable fee_table(const Config &cfg, const InstrumentTable *table=nullptr, const std::vector< std::string > *venue_names=nullptr)
The fee rates of each instrument: its [[instruments]] maker_bps / taker_bps, else its venue's [venues...
PerpConfig perp_config(const Config &cfg)
[accounting] mark, stale_mark_ms and stale_funding_ms.
constexpr std::size_t kMaxVenuesConfig
== kMaxVenues (transport.hpp)
Definition config.hpp:43
constexpr int kMaxMdCopies
The most redundant market-data connections a venue opens ([venues.*] md_copies).
Definition config.hpp:45
InstrumentTable load_instruments(const Config &cfg)
Builds the dense instrument table (src/core/instrument_loader.cpp). Throws ConfigError.
constexpr std::string_view to_string(ParamType t) noexcept
Definition params.hpp:63
BalanceConfig balance_config(const Config &cfg, const InstrumentTable *table=nullptr, const std::vector< std::string > *venue_names=nullptr)
[risk] check_balance and each instrument's [[instruments]] initial_margin, the instruments mapped as ...
HazardConfig hazard_config(const Config &cfg, const InstrumentTable &table, std::span< const std::string > venue_names)
[[risk.hazard]] with the members resolved in table (venue_names naming its venue ids).
PoolHomesPlan pool_homes(const Config &cfg, const InstrumentTable &table)
[venues.
WindowsConfig window_config(const Config &cfg, const InstrumentTable &table, std::span< const std::string > venue_names)
[[windows]] with the zones looked up and the scopes resolved in table (venue_names naming its venue i...
std::map< std::string, std::string > ParamMap
Definition params.hpp:119
Strategy parameter schema (8.6, ADR-0012).
QuoteManager (5.6): diffs the strategy's DesiredQuotes against the orders resting at the venue and em...
[ab]: an A/B test of strategy parameters (strategies/ab_test.hpp). No arms: no test.
Definition config.hpp:325
std::string name
Definition config.hpp:326
ParamMap params
on top of [strategy.params]; none: the arm runs the configured values
Definition config.hpp:327
Definition config.hpp:329
bool enabled() const noexcept
Definition config.hpp:345
std::int64_t block_s
time, crossover: the block, seconds
Definition config.hpp:333
std::string name
Definition config.hpp:330
std::map< std::string, double > weights
instrument, crossover: the weight of each instrument ("venue:symbol" or "symbol") the split balances ...
Definition config.hpp:338
std::string start
UTC; empty: from the start of the session.
Definition config.hpp:334
std::uint64_t seed
Definition config.hpp:332
std::string assignment
"instrument" | "time" | "crossover" | "branch"
Definition config.hpp:331
std::vector< AbArmSection > arms
Definition config.hpp:344
std::int64_t block_offset_s
time, crossover: blocks start this many seconds after multiples of block_s since the epoch.
Definition config.hpp:343
std::string end
UTC; empty: no end.
Definition config.hpp:335
std::map< std::string, std::string > assign
instrument, crossover: the arm of each instrument ("venue:symbol" or "symbol" = arm name) instead of ...
Definition config.hpp:341
Definition capacity_price.hpp:77
[capacity]: the price of an order slot (core/capacity_price.hpp).
Definition config.hpp:425
std::string mode
Definition config.hpp:427
std::int64_t orders_10s
Definition config.hpp:429
std::string value
Definition config.hpp:428
std::vector< std::string > venues
empty: every venue
Definition config.hpp:437
bool configured
Definition config.hpp:426
double margin_bps
Definition config.hpp:435
std::int64_t orders_per_day
Definition config.hpp:433
std::int64_t orders_1d
Definition config.hpp:432
double full_move_bps
Definition config.hpp:436
bool fill_credit
Definition config.hpp:431
std::int64_t window_ms
Definition config.hpp:430
std::int64_t weight_1m
Definition config.hpp:434
Definition config.hpp:497
bool substitute_env
Definition config.hpp:499
bool allow_inline_secrets
Definition config.hpp:498
std::size_t order_ring_bytes
Definition config.hpp:105
std::string epoch_file
Definition config.hpp:87
int reject_backoff_max_ms
doubling cap
Definition config.hpp:144
std::string kill_file
Latched kill switch and cumulative PnL; empty = "<journal_dir>/<name>.kill".
Definition config.hpp:89
std::vector< std::int64_t > markout_ms
The store's markouts: the mid this many ms after each fill (core/record_stream.hpp).
Definition config.hpp:99
int endpoint_probe_samples
Definition config.hpp:135
int send_token_reserve
[risk] order tokens every quote leaves for ctx.send orders
Definition config.hpp:146
std::uint32_t feed_budget_per_ring
RingFeed: events per ring before the next one's turn.
Definition config.hpp:108
int endpoint_spread_us
Definition config.hpp:136
bool instance_lock
fastmm-live: an exclusive flock(2) on lock_file (empty = "<journal_dir>/<name>....
Definition config.hpp:93
std::uint64_t journal_max_total_bytes
cap on the journals in journal_dir (0: none)
Definition config.hpp:85
int crossed_grace_ms
Definition config.hpp:111
int tsc_recalibrate_s
fastmm-live: TSC recalibration period, 0 = never
Definition config.hpp:120
std::string journal_sync
"async" | "fdatasync" (core/journal.hpp)
Definition config.hpp:81
int flatten_timeout_ms
Definition config.hpp:116
std::string base_flows
A change of a spot instrument's base asset on its accounts that no fill or transfer of the engine's m...
Definition config.hpp:159
std::size_t journal_max_bytes
roll over to the next part at this size (0: never)
Definition config.hpp:82
int quote_room_reserve
venue order-window room below which quotes do not chase (-1 off)
Definition config.hpp:147
int stall_ms
fastmm-live: the engine thread stuck inside one turn of its loop this long (Engine::heartbeat has not...
Definition config.hpp:102
std::string lock_file
Definition config.hpp:94
bool log_irq_affinity
fastmm-live: log the NICs' interrupt CPUs against the pinned ones.
Definition config.hpp:130
std::vector< int > net_cpus
Definition config.hpp:68
int base_flows_settle_s
Definition config.hpp:160
double queue_conservatism
queue position estimate (ctx.queue_ahead), 0..1
Definition config.hpp:118
int latency_publish_ms
Definition config.hpp:119
int min_requote_ticks
Definition config.hpp:138
int quote_token_reserve
[risk] order tokens quotes that add risk leave to others
Definition config.hpp:145
std::int64_t checkpoint_s
journal checkpoints this often (0: none)
Definition config.hpp:86
bool post_only
Definition config.hpp:141
std::string threading
fastmm-live: "split" runs the engine and each venue's network loop on their own threads; "single" run...
Definition config.hpp:78
std::string journal_compress
"none" | "zstd" (core/journal_archive.hpp)
Definition config.hpp:84
std::string on_kill
fastmm-live after a kill switch it did not ask for (risk limit, internal failure, every venue killed)...
Definition config.hpp:151
bool supports_replace
Definition config.hpp:142
int rt_priority
fastmm-live: SCHED_FIFO priority of the engine thread and of the network threads, 0 = off.
Definition config.hpp:127
int handoff_timeout_ms
--takeover: how long the new process waits for the running one to release the lock after it accepted ...
Definition config.hpp:97
int cpu_dma_latency_us
fastmm-live: PM QoS CPU latency request (/dev/cpu_dma_latency) held for the session,...
Definition config.hpp:125
std::vector< int > aux_cpus
Cores of every other thread (live/thread_affinity.hpp); empty: the cores no hot thread is pinned to.
Definition config.hpp:71
int min_qty_bps
Definition config.hpp:140
bool journal
Definition config.hpp:79
std::string net_backend
net::Reactor backend: "epoll" | "io_uring"
Definition config.hpp:75
std::string spin_mode
Definition config.hpp:72
int ack_timeout_ms
force-cancel an order without an ack after this long; 0 = off
Definition config.hpp:112
std::uint32_t max_events_per_step
Definition config.hpp:107
std::string name
Definition config.hpp:66
int flatten_interval_ms
Operator flatten (fastmm-ctl flatten): the sweep period, how long the engine keeps working the positi...
Definition config.hpp:115
std::string base_flows_from
Definition config.hpp:161
int reject_backoff_ms
QuoteManager: pause a side after a venue reject (0 = off)
Definition config.hpp:143
int endpoint_probe_interval_s
Definition config.hpp:134
int cpu
Definition config.hpp:67
bool net_spin_dedicated
Adaptive: a network thread alone on its pinned core never blocks (net_never_blocks).
Definition config.hpp:110
std::size_t journal_ring_bytes
Definition config.hpp:106
std::uint64_t rng_seed
Definition config.hpp:103
int journal_retention_days
delete journals older than this (0: keep)
Definition config.hpp:83
int endpoint_switch_us
Definition config.hpp:137
bool endpoint_select
Endpoint selection (net/endpoint_selector.hpp): connect to the fastest of a venue host's addresses.
Definition config.hpp:133
int flatten_slippage_bps
Definition config.hpp:117
std::int64_t timer_slack_ns
fastmm-live: PR_SET_TIMERSLACK of its threads, 0 = kernel's
Definition config.hpp:121
int net_rt_priority
Definition config.hpp:128
std::string journal_dir
Definition config.hpp:80
bool lock_memory
fastmm-live: mlockall(MCL_CURRENT | MCL_FUTURE)
Definition config.hpp:122
bool restore_position
Carry the previous session's positions over from the store (venues that replay executions).
Definition config.hpp:74
std::string cancel_unknown
Open orders a reconciliation finds on the session's symbols that the engine does not know: "all" canc...
Definition config.hpp:155
int min_requote_interval_ms
Definition config.hpp:139
std::size_t md_ring_bytes
Definition config.hpp:104
Definition config.hpp:164
double maker_bps
Definition config.hpp:165
double taker_bps
Definition config.hpp:166
fastmm-gateway's account guards: one venue's account, shared by every attached strategy.
Definition config.hpp:400
std::string max_loss
The account over every attached strategy, decimals in the settlement currency; empty = off.
Definition config.hpp:405
int orders_per_sec
new orders and replaces per venue, 0 = off
Definition config.hpp:401
UnderlyingSpec underlying
[gateway.underlying.<BASE>] max_net: the account's net position per base asset, base units.
Definition config.hpp:409
int burst
token-bucket capacity, 0 = orders_per_sec
Definition config.hpp:402
std::string max_gross_notional
sum of |position| at the marks
Definition config.hpp:406
std::string max_open_notional
notional working at a venue, decimal; empty = off
Definition config.hpp:403
std::map< std::string, std::string > shared
[gateway.shared.
Definition config.hpp:413
bool any() const noexcept
Definition config.hpp:416
bool check_balance
the account's balance covers every strategy's orders
Definition config.hpp:414
std::string max_net_notional
|signed sum| of the positions at the marks
Definition config.hpp:407
Definition config.hpp:487
std::map< std::string, std::string > values
Definition config.hpp:488
double get_double(std::string_view key, double def=0.0) const
std::map< std::string, int > lines
key -> line in the file; absent for keys set in code
Definition config.hpp:489
std::int64_t get_int(std::string_view key, std::int64_t def=0) const
bool has(std::string_view key) const
Definition config.hpp:490
std::string get_string(std::string_view key, std::string_view def="") const
bool get_bool(std::string_view key, bool def=false) const
One [[risk.hazard]] table (core/hazard.hpp).
Definition config.hpp:349
std::string mode
"pull" | "log"
Definition config.hpp:360
std::vector< std::string > instruments
Members: a symbol, "venue:symbol" or a group of [strategy.groups].
Definition config.hpp:352
std::string side
"bid" | "ask" | "both"
Definition config.hpp:355
bool prints
Definition config.hpp:359
double threshold
Definition config.hpp:356
std::string name
Definition config.hpp:350
double half_life_ms
Definition config.hpp:357
std::map< std::string, double > weights
"venue:symbol" or "symbol" = weight; a member not listed weighs 1.
Definition config.hpp:354
int hold_ms
Definition config.hpp:358
Definition config.hpp:286
std::optional< double > taker_bps
Definition config.hpp:306
std::string strike
Definition config.hpp:301
std::string lot
Definition config.hpp:293
std::string contract_multiplier
Definition config.hpp:297
std::optional< double > maker_bps
Per-instrument fee schedule; unset means the instrument pays its venue's [venues.
Definition config.hpp:305
std::string asset_class
Definition config.hpp:291
std::string expiry
Definition config.hpp:300
std::string max_qty
Definition config.hpp:295
std::string venue
Definition config.hpp:287
std::string base
Definition config.hpp:289
std::string min_qty
Definition config.hpp:294
std::string tick
Definition config.hpp:292
std::string option_type
Definition config.hpp:302
int price_decimals
Definition config.hpp:299
std::string min_notional
Definition config.hpp:296
std::string quote
Definition config.hpp:290
std::string initial_margin
A derivative's initial margin, fraction of the notional, decimal; empty: none configured.
Definition config.hpp:308
bool enabled
Definition config.hpp:298
std::string symbol
Definition config.hpp:288
Definition config.hpp:457
std::string file
Definition config.hpp:459
std::string mirror_level
Definition config.hpp:460
std::string level
Definition config.hpp:458
std::int64_t status_interval_s
Seconds between the per-venue status lines; 0: none.
Definition config.hpp:463
[venues.
Definition config.hpp:196
std::map< std::string, std::string > homes
symbol -> pool account
Definition config.hpp:205
std::string sweep
"false" | "true" | "auto"
Definition config.hpp:206
std::int64_t reduce_accounts
Definition config.hpp:199
double spill_at
Definition config.hpp:201
double plan_lookback_h
Definition config.hpp:203
std::string spill
Definition config.hpp:200
std::int64_t sweep_dust_s
Definition config.hpp:208
std::int64_t plan_max_moves
Definition config.hpp:204
std::int64_t sweep_delay_ms
Definition config.hpp:207
std::int64_t plan_interval_s
Definition config.hpp:202
std::int64_t sweep_retry_s
Definition config.hpp:209
bool configured
the table is present
Definition config.hpp:197
std::string placement
Definition config.hpp:198
Definition quote_manager.hpp:159
Definition risk_limits.hpp:18
Definition config.hpp:363
std::string max_gross_notional
Definition config.hpp:375
std::string max_loss_period
The span max_loss is a budget for: "total" (every session since the kill file was cleared) or "utc_da...
Definition config.hpp:374
int max_feed_lag_ms
0 = off
Definition config.hpp:380
int fat_finger_bps
Definition config.hpp:369
int fill_cluster_hold_ms
Definition config.hpp:384
int max_open_orders
Definition config.hpp:367
int fill_cluster_window_ms
Definition config.hpp:383
std::string max_position
Definition config.hpp:366
bool allow_unlimited
A keyed fastmm-live session starts without max_position (or max_order_notional) and max_loss only wit...
Definition config.hpp:390
bool reduce_only
The session starts in reduce-only mode for every instrument (fastmm-ctl reduce-only off ends it).
Definition config.hpp:393
UnderlyingSpec underlying
[risk.underlying.
Definition config.hpp:396
std::string max_order_qty
Definition config.hpp:364
std::string max_order_notional
Definition config.hpp:365
int price_collar_bps
Definition config.hpp:368
std::string max_net_notional
Definition config.hpp:376
int fill_cluster_names
The fill-cluster guard (core/fill_cluster.hpp): names 0 = off.
Definition config.hpp:382
std::vector< HazardSection > hazard
[[risk.hazard]]: the hazard groups (core/hazard.hpp); none: off.
Definition config.hpp:386
std::string max_loss
Definition config.hpp:371
int orders_per_sec
Definition config.hpp:377
int stale_md_ms
Definition config.hpp:370
int burst
Definition config.hpp:378
bool check_balance
refuse what the venue's balance cannot cover
Definition config.hpp:387
bool stp
Definition config.hpp:379
Free-form section used by the sim / backtest libraries: dotted keys -> stringified value.
Definition config.hpp:468
int settle_s
Definition config.hpp:472
int threads
Definition config.hpp:470
std::string status
empty: /dev/shm/fastmm-<name>.shadow
Definition config.hpp:479
std::vector< std::map< std::string, std::string > > points
Definition config.hpp:481
std::vector< int > cpus
Definition config.hpp:476
int max_lag_s
Definition config.hpp:473
std::vector< std::pair< std::string, std::vector< std::string > > > grid
Definition config.hpp:480
int nice
Definition config.hpp:474
int idle_exit_s
Definition config.hpp:475
bool configured() const noexcept
Definition config.hpp:482
int window_s
Definition config.hpp:471
std::string program
empty: fastmm-shadow beside this program
Definition config.hpp:477
std::string report
empty: <journal_dir>/<name>.shadow.json
Definition config.hpp:478
bool enabled
Definition config.hpp:469
Definition config.hpp:311
ParamMap params
Definition config.hpp:313
std::map< std::string, ParamMap > overrides
[strategy.overrides]: parameters of one instrument or group on top of params (strategies/param_overri...
Definition config.hpp:318
std::map< std::string, std::vector< std::string > > groups
[strategy.groups]: named lists of instruments ("symbol" or "venue:symbol").
Definition config.hpp:315
std::int64_t max_param_age_ms
0 = off
Definition config.hpp:319
std::int64_t state_interval_s
Definition config.hpp:321
std::string name
Definition config.hpp:312
std::string state_file
the strategy's state across sessions; empty: none
Definition config.hpp:320
[venues.
Definition config.hpp:171
std::string min_amount
Definition config.hpp:182
bool reserve
Definition config.hpp:178
std::string step
Definition config.hpp:184
std::int64_t max_per_hour
Definition config.hpp:187
double threshold
Definition config.hpp:181
std::int64_t interval_s
Definition config.hpp:185
std::int64_t min_interval_s
Definition config.hpp:186
std::int64_t settle_s
Definition config.hpp:190
std::string asset
Definition config.hpp:175
std::int64_t cooldown_s
Definition config.hpp:188
bool dry_run
Definition config.hpp:174
bool enabled
Definition config.hpp:173
std::map< std::string, double > weights
pool account -> weight (absent: 1)
Definition config.hpp:179
bool configured
the table is present
Definition config.hpp:172
std::string max_amount
Definition config.hpp:183
std::string state_file
empty: <journal_dir>/<engine name>.<primary>.treasury
Definition config.hpp:191
double headroom
Definition config.hpp:177
std::int64_t timeout_s
Definition config.hpp:189
std::string targets
"weights" | "demand"
Definition config.hpp:176
std::map< std::string, std::string > min_free
pool account -> decimal (absent: 0)
Definition config.hpp:180
Definition config.hpp:227
bool reduce_only
The session starts in reduce-only mode for this venue's instruments (fastmm-ctl reduce-only off --ven...
Definition config.hpp:247
bool supports_replace
Definition config.hpp:237
bool testnet
Definition config.hpp:236
bool insecure_tls
Definition config.hpp:248
std::string fill_audit_mode
Definition config.hpp:268
bool public_only
Market data only: no keys needed, no private sessions, no orders, not awaited at start,...
Definition config.hpp:240
std::string api_key
Definition config.hpp:233
PoolSection pool
Definition config.hpp:275
std::string ca_file
Definition config.hpp:249
std::string ws_api_url
Definition config.hpp:231
int md_copies
Fill audit (live/fill_auditor.hpp): every fill_audit_interval_s seconds fastmm-live compares the venu...
Definition config.hpp:264
std::vector< int > md_copy_cpus
Definition config.hpp:265
int recv_window_ms
Definition config.hpp:250
std::map< std::string, int > extra_lines
Definition config.hpp:283
std::string name
Definition config.hpp:228
std::string api_passphrase
OKX: the passphrase chosen with the API key.
Definition config.hpp:235
std::map< std::string, std::string > extra
Every key the generic parser does not interpret, stringified.
Definition config.hpp:282
FeesSection fees
Definition config.hpp:273
TreasurySection treasury
Definition config.hpp:274
std::string source_ip
Where this venue's connections leave the host from: one of its addresses, or the address of a network...
Definition config.hpp:253
TransfersSection transfers
Definition config.hpp:276
std::string api_secret
Definition config.hpp:234
std::string pool_of
Another account of the venue named: this one takes orders for that venue's instruments with its own k...
Definition config.hpp:244
std::optional< bool > endpoint_select
Endpoint selection for this venue's connections; nullopt: [engine] endpoint_select.
Definition config.hpp:256
std::string kind
Definition config.hpp:229
std::string source_interface
Definition config.hpp:254
int fill_audit_interval_s
Definition config.hpp:266
std::string rest_url
Definition config.hpp:232
int fill_audit_lag_s
Definition config.hpp:267
std::string ws_url
Definition config.hpp:230
std::string rules_mismatch
The connector's start-up trading rules against [[instruments]] (live/venue_slot.hpp settle_venue_rule...
Definition config.hpp:272
One [[windows]] table (core/windows.hpp), as written; window_config() resolves it.
Definition config.hpp:441
std::vector< std::string > except
local dates no occurrence starts on
Definition config.hpp:451
std::string from
first local date an occurrence may start on; "" = any
Definition config.hpp:449
std::string until
the last; "" = any
Definition config.hpp:450
std::vector< std::string > dates
"YYYY-MM-DD", local
Definition config.hpp:445
std::string name
Definition config.hpp:442
std::string duration
"30m", "1h30m", "2d"
Definition config.hpp:448
std::vector< std::string > days
"mon" ... "sun"; or
Definition config.hpp:444
std::string action
"pull" | "reduce_only"
Definition config.hpp:452
std::string zone
IANA name or POSIX TZ rule.
Definition config.hpp:443
std::string end
"HH:MM[:SS]", local; or
Definition config.hpp:447
std::string start
"HH:MM[:SS]", local
Definition config.hpp:446
std::vector< std::string > venues
scope: these venues' instruments ...
Definition config.hpp:453
std::vector< std::string > instruments
... and these; neither: the whole session
Definition config.hpp:454