33struct AbReportOptions {
98 std::vector<AbArmSummary>
arms;
Post-fill markouts: the metric that separates spread captured from adverse selection.
Definition backtest_config.hpp:44
std::string ab_cells_csv(const AbReport &r)
One row per cell.
std::string ab_report_json(const AbReport &r)
AbReport ab_report(std::span< const std::string > journals, const AbReportOptions &opt)
Throws std::runtime_error when a journal cannot be read, has no [ab] in its configuration,...
void add_noise_floor(AbReport &r, const AbReport &aa)
Puts aa's interval half-widths next to the matching effects of r (by metric).
std::string format_ab_report(const AbReport &r)
Definition ab_report.hpp:63
std::int64_t notional_raw
Definition ab_report.hpp:69
std::string name
Definition ab_report.hpp:64
std::uint64_t fills
Definition ab_report.hpp:67
std::string params
"name=value ..."; empty: the configured parameters
Definition ab_report.hpp:65
std::uint64_t maker_fills
Definition ab_report.hpp:68
std::vector< AbHorizon > horizons
Definition ab_report.hpp:70
std::int64_t ns
instrument time in the arm
Definition ab_report.hpp:66
One instrument in one arm over one block (the whole test with assignment = "instrument").
Definition ab_report.hpp:52
int arm
Definition ab_report.hpp:54
std::int64_t notional_raw
every fill, quote currency
Definition ab_report.hpp:59
std::int64_t block
Definition ab_report.hpp:55
std::int64_t ns
time the instrument was in the arm
Definition ab_report.hpp:56
std::uint64_t fills
Definition ab_report.hpp:57
std::vector< AbHorizon > horizons
Definition ab_report.hpp:60
std::uint64_t maker_fills
Definition ab_report.hpp:58
std::size_t instrument
AbReport::instruments.
Definition ab_report.hpp:53
One arm against arm 0 on one metric.
Definition ab_report.hpp:75
double diff
Definition ab_report.hpp:80
double hi
Definition ab_report.hpp:82
bool noise
the A/A run's interval for this metric is known
Definition ab_report.hpp:83
double treated
Definition ab_report.hpp:78
int arm
Definition ab_report.hpp:76
std::string metric
"net/hour 60s", "net bps 60s", "notional/hour", "fills/hour"
Definition ab_report.hpp:77
double control
Definition ab_report.hpp:79
double lo
Definition ab_report.hpp:81
double noise_half_width
Definition ab_report.hpp:84
Definition ab_report.hpp:42
std::int64_t fees_raw
configured fees less the rebate on the same fills, quote currency
Definition ab_report.hpp:46
std::int64_t net_raw() const noexcept
Definition ab_report.hpp:47
MarkoutBucket all
the fills marked at this horizon
Definition ab_report.hpp:43
MarkoutBucket sell
Definition ab_report.hpp:45
void add(const AbHorizon &o) noexcept
MarkoutBucket buy
Definition ab_report.hpp:44
Definition ab_report.hpp:35
std::size_t resamples
Definition ab_report.hpp:38
std::vector< std::int64_t > horizons_ns
empty: kDefaultMarkoutHorizonsNs
Definition ab_report.hpp:36
double maker_rebate_bps
paid on maker notional, on top of the configured fees
Definition ab_report.hpp:37
std::uint64_t seed
Definition ab_report.hpp:39
Definition ab_report.hpp:87
std::uint64_t outside_fills
of orders sent outside any arm
Definition ab_report.hpp:102
bool mids
some journal has a BookTicker stream to mark against
Definition ab_report.hpp:96
std::int64_t first_ns
the first and last event read
Definition ab_report.hpp:94
std::vector< AbCell > cells
Definition ab_report.hpp:101
std::string assignment
Definition ab_report.hpp:89
std::size_t pairs
with time in every arm
Definition ab_report.hpp:104
std::vector< AbArmSummary > arms
Definition ab_report.hpp:100
std::vector< std::int64_t > horizons_ns
Definition ab_report.hpp:99
std::uint64_t repeated_fills
an execution reported again: counted once
Definition ab_report.hpp:103
std::size_t resamples
Definition ab_report.hpp:107
std::int64_t block_s
Definition ab_report.hpp:91
std::int64_t last_ns
Definition ab_report.hpp:95
std::size_t incomplete_pairs
missing an arm (the test began, ended or stopped in it)
Definition ab_report.hpp:105
double maker_rebate_bps
Definition ab_report.hpp:97
std::uint64_t seed
Definition ab_report.hpp:90
bool aa
every arm runs the same parameters
Definition ab_report.hpp:92
std::vector< std::string > instruments
"venue:symbol"
Definition ab_report.hpp:98
std::vector< AbEffect > effects
Definition ab_report.hpp:108
std::size_t journals
Definition ab_report.hpp:93
std::size_t clusters
Definition ab_report.hpp:106
std::string test
Definition ab_report.hpp:88
Definition markout.hpp:33
std::int64_t markout_raw
sum of s * (mid(t0 + h) - price), quote currency
Definition markout.hpp:34