simulator-api 0.30.0

Wire-protocol types for the Solana simulator backtest WebSocket API
Documentation
//! Reports over a set of reroute results, from any source.
//!
//! - Input: one [`LegRecord`] per rerouted swap. Map your source (a `replacementSubscribe`
//!   stream, a session database) onto it.
//! - Pricing: [`Samples`] gathered from the records give USD [`Prices`], derived from the records
//!   alone.
//! - Reports: one venue's flow, onchain against rerouted ([`Report`]); how the reroutes did
//!   against the original swaps ([`RangeReport`]); and venue probes by template
//!   ([`probes::ProbeReport`]).
//!
//! Nothing here does I/O.

pub mod benchmark;
mod flow;
mod fmt;
mod prices;
pub mod probes;
mod record;
mod render;
#[cfg(test)]
mod testing;

// Types and constants are flat; the verbs stay behind `benchmark::`, where `collect` and
// `measure` cannot be mistaken for iterator vocabulary.
pub use benchmark::{
    LoadStats, Measurement, OUTLIER_BPS, RangeReport, SideTotals, VENUE_DUST_USD, VenueTotals,
};
pub use flow::{Direction, Flow, Pair, Report, ReportBuilder, RerouteReportError, Target};
pub use prices::{Prices, Samples};
pub use record::{LegRecord, SwapMode};