pub struct QuoteResponse {Show 17 fields
pub schema_version: u16,
pub contract_version: String,
pub quote_id: String,
pub server_time_ms: u64,
pub expires_at_ms: u64,
pub market_id: String,
pub side: QuoteSide,
pub amount_in_atoms: String,
pub amount_in_consumed_atoms: String,
pub amount_out_atoms: String,
pub minimum_output_atoms: String,
pub input_fee_atoms: String,
pub output_fee_atoms: String,
pub maximum_tolerance_bps: u16,
pub reference_price: String,
pub price_impact_pct: String,
pub provider: String,
}Fields§
§schema_version: u16§contract_version: String§quote_id: StringOpaque, short-lived handle. It identifies no execution source and carries no readable Sonar plan material.
server_time_ms: u64§expires_at_ms: u64§market_id: String§side: QuoteSide§amount_in_atoms: String§amount_in_consumed_atoms: StringRequested input actually consumed by the quoted execution.
amount_out_atoms: StringUser-net output after output_fee_atoms. Gross pre-fee output is their
exact atomic sum.
minimum_output_atoms: StringUser-net execution floor: amount_out_atoms lowered by
maximum_tolerance_bps (after fees). Execution delivers at least this
or does not happen.
input_fee_atoms: StringFees charged in the request’s input asset. Sonar can charge fees on either side, so a single unlabelled fee is unsafe.
output_fee_atoms: StringStrata fee charged in the response’s output asset. It is reported separately so pre-fee and all-in user economics cannot be mixed.
maximum_tolerance_bps: u16The caller’s tolerance echoed back: the most they accept below
amount_out_atoms, already applied in minimum_output_atoms. It is a
choice, not a measurement — compare price_impact_pct.
reference_price: StringDisplay-only decimal strings. SDKs may parse these for presentation but
must not use them for settlement or signing bounds.
reference_price is the best price before the order; price_impact_pct
is how far the quoted fills’ average price sits from it, measured from
the book. It is not a setting and is unrelated to maximum_tolerance_bps.
price_impact_pct: String§provider: StringTrait Implementations§
Source§impl Clone for QuoteResponse
impl Clone for QuoteResponse
Source§fn clone(&self) -> QuoteResponse
fn clone(&self) -> QuoteResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more