Skip to main content

simulator_api/reroute_report/
mod.rs

1//! Reports over a set of reroute results, from any source.
2//!
3//! - Input: one [`LegRecord`] per rerouted swap. Map your source (a `replacementSubscribe`
4//!   stream, a session database) onto it.
5//! - Pricing: [`Samples`] gathered from the records give USD [`Prices`], derived from the records
6//!   alone.
7//! - Reports: one venue's flow, onchain against rerouted ([`Report`]); how the reroutes did
8//!   against the original swaps ([`RangeReport`]); and venue probes by template
9//!   ([`probes::ProbeReport`]).
10//!
11//! Nothing here does I/O.
12
13pub mod benchmark;
14mod flow;
15mod fmt;
16mod prices;
17pub mod probes;
18mod record;
19mod render;
20#[cfg(test)]
21mod testing;
22
23// Types and constants are flat; the verbs stay behind `benchmark::`, where `collect` and
24// `measure` cannot be mistaken for iterator vocabulary.
25pub use benchmark::{
26    LoadStats, Measurement, OUTLIER_BPS, RangeReport, SideTotals, VENUE_DUST_USD, VenueTotals,
27};
28pub use flow::{Direction, Flow, Pair, Report, ReportBuilder, RerouteReportError, Target};
29pub use prices::{Prices, Samples};
30pub use record::{LegRecord, SwapMode};