pub struct DiagnosticProbeParams {
pub anchor: ActionAnchor,
pub markets: Vec<Address>,
pub usd_values: Vec<u32>,
pub label: Option<String>,
pub pairs: Vec<DiagnosticMarketPairs>,
pub candidates: Vec<DiagnosticCandidate>,
pub candidate_pairs: Vec<[Address; 2]>,
}Expand description
Probe markets through the router’s /diagnostic endpoint as the session runs, and stream
the results over diagnosticSubscribe.
A probe reports what the router would have priced against the state it has seen, not what the
venue would have filled onchain. Each firing makes Self::fires round trips to the router while
the replay waits. Checked by Self::validate when the session is created.
Fields§
§anchor: ActionAnchorWhen to probe: afterSlot or afterEverySlot only.
markets: Vec<Address>Market (pool) addresses to probe, no repeats; with candidates, 1 to
MAX_DIAGNOSTIC_MARKETS in all.
usd_values: Vec<u32>Wire name usdValues: trade sizes in whole US dollars, 1 to
MAX_DIAGNOSTIC_USD_VALUES of them, none 0. Each market is probed at each size.
label: Option<String>Tag echoed back on each diagnosticSubscribe result.
pairs: Vec<DiagnosticMarketPairs>Markets probed only for these pairs, both ways, each input sized from a /quote of its
mint at the slot, or by metis from usdValues if that fails; every other market is
answered for every pair it holds.
candidates: Vec<DiagnosticCandidate>Pools the router may not hold, each probed from the first fire its account exists at.
candidate_pairs: Vec<[Address; 2]>The pairs a candidate is probed for: those of them it holds. One holding none of them is never probed.