#include <fastmm/backtest/result.hpp>
|
| const Metrics & | summary () const noexcept |
| |
| bool | killed () const noexcept |
| | Whether the global kill switch stopped the run ([risk] max_loss, a failing hook, ...), and when: seconds of simulated time after start_ts.
|
| |
| double | kill_at_s () const noexcept |
| |
| std::string | summary_table () const |
| | Human-readable table, one metric per line.
|
| |
| std::string | summary_json () const |
| |
| std::string | equity_csv () const |
| |
| std::string | fills_csv () const |
| |
| std::string | orders_csv () const |
| |
| std::string | transfers_csv () const |
| | One row per simulated transfer: ts_ns,from,to,asset,amount,state,client_id.
|
| |
| bool | write_all (const std::string &dir) const |
| | Writes equity.csv, fills.csv, orders.csv and summary.json into dir (created if needed), and transfers.csv with a pool treasury.
|
| |
◆ summary()
| const Metrics & fastmm::bt::BacktestResult::summary |
( |
| ) |
const |
|
inlinenoexcept |
◆ killed()
| bool fastmm::bt::BacktestResult::killed |
( |
| ) |
const |
|
inlinenoexcept |
Whether the global kill switch stopped the run ([risk] max_loss, a failing hook, ...), and when: seconds of simulated time after start_ts.
◆ kill_at_s()
| double fastmm::bt::BacktestResult::kill_at_s |
( |
| ) |
const |
|
inlinenoexcept |
◆ summary_table()
| std::string fastmm::bt::BacktestResult::summary_table |
( |
| ) |
const |
Human-readable table, one metric per line.
◆ summary_json()
| std::string fastmm::bt::BacktestResult::summary_json |
( |
| ) |
const |
◆ equity_csv()
| std::string fastmm::bt::BacktestResult::equity_csv |
( |
| ) |
const |
◆ fills_csv()
| std::string fastmm::bt::BacktestResult::fills_csv |
( |
| ) |
const |
◆ orders_csv()
| std::string fastmm::bt::BacktestResult::orders_csv |
( |
| ) |
const |
◆ transfers_csv()
| std::string fastmm::bt::BacktestResult::transfers_csv |
( |
| ) |
const |
One row per simulated transfer: ts_ns,from,to,asset,amount,state,client_id.
◆ write_all()
| bool fastmm::bt::BacktestResult::write_all |
( |
const std::string & |
dir | ) |
const |
Writes equity.csv, fills.csv, orders.csv and summary.json into dir (created if needed), and transfers.csv with a pool treasury.
Returns false on I/O failure.
◆ strategy
| std::string fastmm::bt::BacktestResult::strategy |
◆ params
| ParamMap fastmm::bt::BacktestResult::params |
◆ seed
| std::uint64_t fastmm::bt::BacktestResult::seed = 0 |
◆ fills
| FillRows fastmm::bt::BacktestResult::fills |
◆ equity
◆ orders
◆ metrics
| Metrics fastmm::bt::BacktestResult::metrics |
◆ engine
| RunnerStats fastmm::bt::BacktestResult::engine |
the engine's own counters and positions
◆ transport
| sim::SimTransportStats fastmm::bt::BacktestResult::transport |
◆ outbound_sha256
| std::string fastmm::bt::BacktestResult::outbound_sha256 |
◆ outbound_messages
| std::uint64_t fastmm::bt::BacktestResult::outbound_messages = 0 |
◆ md_events
| std::uint64_t fastmm::bt::BacktestResult::md_events = 0 |
market-data messages delivered to the engine
◆ md_reordered
| std::uint64_t fastmm::bt::BacktestResult::md_reordered = 0 |
Recorded events the venue took ahead of one recorded before them (venue-time order), and those that still came after a later-stamped one (received more than reorder_window_ms late).
◆ md_late
| std::uint64_t fastmm::bt::BacktestResult::md_late = 0 |
◆ engine_steps
| std::uint64_t fastmm::bt::BacktestResult::engine_steps = 0 |
◆ start_ts
| std::int64_t fastmm::bt::BacktestResult::start_ts = 0 |
◆ end_ts
| std::int64_t fastmm::bt::BacktestResult::end_ts = 0 |
◆ wall_seconds
| double fastmm::bt::BacktestResult::wall_seconds = 0.0 |
◆ slow_methods
Slow methods of a Python strategy (the Python package fills this in; empty otherwise).
◆ treasury
The pool treasuries; pools is 0 without one.