FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
result.hpp File Reference

BacktestResult (8.4): structure-of-arrays rows (numpy-friendly: each column is one contiguous vector) plus the summary Metrics and the raw counters of every component. More...

#include "fastmm/backtest/metrics.hpp"
#include "fastmm/core/engine_runner.hpp"
#include "fastmm/sim/sim_transport.hpp"
#include "fastmm/sim/sim_treasury.hpp"
#include "fastmm/strategies/params.hpp"
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  fastmm::bt::FillRows
 
struct  fastmm::bt::InstrumentEquityRows
 One instrument's columns of EquityRows, one row per bar. More...
 
struct  fastmm::bt::EquityRows
 
struct  fastmm::bt::OrderRows
 
struct  fastmm::bt::SlowMethodTiming
 Wall time of one slow method of a Python strategy over a backtest. More...
 
struct  fastmm::bt::BacktestTreasury
 The pool treasuries of a run ([venues. More...
 
struct  fastmm::bt::BacktestResult
 

Namespaces

namespace  fastmm
 
namespace  fastmm::bt
 

Functions

std::string fastmm::bt::result_difference (const BacktestResult &a, const BacktestResult &b)
 The first thing two results of one configuration differ in, as "field[row]: a vs b", or empty when they are the same: every fill (time, instrument, side, price, quantity, fee, order id, liquidity, the venue's book and queue at the fill, the mids at each markout horizon), every order sent, every equity bar, the engine's and the venue's counts, positions and PnL, and the outbound hash.
 

Variables

constexpr std::uint8_t fastmm::bt::kOrderKindNew = 0
 
constexpr std::uint8_t fastmm::bt::kOrderKindCancel = 1
 
constexpr std::uint8_t fastmm::bt::kOrderKindReplace = 2
 

Detailed Description

BacktestResult (8.4): structure-of-arrays rows (numpy-friendly: each column is one contiguous vector) plus the summary Metrics and the raw counters of every component.

Prices, quantities and notionals are raw 1e-8 fixed-point int64; the CSV/JSON writers format them as exact decimals.