C++ API
Generated by Doxygen from the headers listed in docs/api/public-headers.txt .
Tier 1 is the strategy, testing, backtest and live API; tier 2 is the venue, codec, network and
configuration extension API; Public API says what each tier promises.
Unlisted headers are internal and not documented here.
Browse the whole set: classes and structs ,
concepts , namespaces ,
headers , members . The sidebar search box
covers this reference only.
Prose counterparts: Strategy API ,
Fixed point , Journal format ,
Architecture .
Strategies
A strategy is a class template parameter, not a base class with virtual functions
(ADR-0009 ); the engine detects the hooks it defines.
Type
What it is
StrategyLike
what a type must provide to be a strategy
StrategyBase
optional base: parameters and their schema
strategies/hooks.hpp
the hook set the engine probes for, and verify_strategy
StrategyContext
the hook argument: quoting, orders, instruments, positions, timers, clock
FeeRates
an instrument's maker and taker rates (ctx.fees)
RiskHeadroom
what each risk limit still admits (ctx.risk_headroom)
VenueHealthView
a venue's feed lag and order round trip (ctx.venue_health)
CapacityQuote
what an order slot on an account costs now (ctx.capacity, [capacity])
StateWriter , StateReader
the bytes of state() and restore(), in a buffer the strategy sizes once
HedgeExecutor
hedges a strategy's positions on other instruments, with failover and de-risking
StrategyRegistry
name to factory, for fastmm-live and fastmm-backtest
StrategyEntry
one registry entry
ParamPublisher
publishes parameters to the trading thread
AbPlan
which [ab] arm each instrument is in at a time
AbController
publishes each arm's parameters as instruments change arm
sim::StrategyHarness
drives a strategy from a test
Quoting
Type
What it is
QuoteManager
diffs desired quotes against resting orders into New / Cancel / Replace
DesiredQuotes
what the strategy wants resting, per side
QuoteParams
hysteresis, re-quote interval, reject back-off
QuoteAction
one action the caller executes
QuoteStats
counters per reconcile
Orders and positions
Type
What it is
Oms
the order state machine: open orders, acks, fills, cancels
Order
one order as the OMS holds it
OmsUpdate
what changed after a venue message
PositionTracker
position, average price and realised PnL per instrument
Position
one instrument's position
Portfolio
PnL totals across instruments
Fill
one execution
Instruments, prices and time
Type
What it is
Fixed<Tag>
the fixed-point type behind Price, Qty and Ratio (8 decimals)
core/fixed_point.hpp
Price, Qty, Ratio, the _px / _qty / _bps literals
Instrument
tick size, lot size, fees, rounding
InstrumentTable
dense InstrumentId to Instrument
StrongId
InstrumentId, VenueId, ClientOrderId and the other typed ids
Timestamp
nanoseconds since the epoch
Duration
a nanosecond interval
Cycles
raw TSC ticks, for latency timestamps
core/enums.hpp
Side, OrderType, TimeInForce, EventType, Liquidity
Books and messages
Backtest and replay
Type
What it is
bt::BacktestRunner
runs a strategy over a data source
bt::BacktestConfig
instruments, fees, latency, seed
bt::BacktestResult
fills, equity curve, orders, metrics
bt::Metrics
PnL, Sharpe, drawdown, fill ratio
backtest/replay.hpp
replays a journal, and bt::ReplayResult
backtest/sweep.hpp
parameter sweeps and walk-forward folds, and bt::SweepPoint
backtest/ab_report.hpp
the readout of an [ab] test, and bt::AbReport
bt::DataSourceLike
what a data source must provide
bt::CsvSource
CSV input
bt::JournalSource
a recorded session as input
bt::SyntheticSource
generated input
bt::ArraySource
arrays in memory, used by the Python bindings
Venues
The connectors (Binance Spot and USDⓈ-M, Bybit, Deribit, Nasdaq ITCH) are internal; these are the
interfaces a new one implements (Add a venue ).
Network
Hand-written, no third-party event loop (ADR-0007 ); built
only with FASTMM_BUILD_NET.
Codecs
The protocol implementations (FIX, Nasdaq ITCH and OUCH, CME MDP 3.0) are internal; the wire
formats are documented in FIX 4.4 ,
Nasdaq ITCH and OUCH and
CME MDP 3.0 . FIX and CME MDP 3.0 have no connector behind
them yet and are built only with -DFASTMM_CODEC_FIX=ON / -DFASTMM_CODEC_MDP3=ON
(Optional codecs ).
Simulation and live
Configuration, logging and options