pub struct QuoteRequest {
pub market_id: String,
pub side: QuoteSide,
pub amount_in_atoms: Option<String>,
pub amount_out_atoms: Option<String>,
pub maximum_tolerance_bps: u16,
}Fields§
§market_id: String§side: QuoteSide§amount_in_atoms: Option<String>Exact-input quote: atomic input amount encoded as a base-10 string.
Public money values never cross JSON as floating-point numbers. Provide
exactly one of amount_in_atoms and amount_out_atoms.
amount_out_atoms: Option<String>Exact-output quote: the atomic output the caller wants. Strata inverts
its best route at quote time and returns the input that delivers it as
amount_in_atoms (no cushion of its own); minimum_output_atoms is
this amount lowered by maximum_tolerance_bps exactly as for exact
input — zero by default, so execution delivers the requested amount or
fails.
maximum_tolerance_bps: u16The most the caller accepts below the quoted output, in basis points.
This is the caller’s choice and has nothing to do with
price_impact_pct, which is measured from the book. Zero (the
default) means the quoted output exactly. slippage_bps is accepted
as a legacy spelling.
Trait Implementations§
Source§impl Clone for QuoteRequest
impl Clone for QuoteRequest
Source§fn clone(&self) -> QuoteRequest
fn clone(&self) -> QuoteRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more