pub fn preview_order_from_proto(
msg: &PreviewOrderResponse,
base_scale: u32,
symbol: &str,
symbol_id: Option<u32>,
) -> Result<PreviewOrderResult>Expand description
Decode an admission-oriented preview response.
Quote/fee scales are no longer required. base_scale is used only when
resolved_base_qty_scaled is present so the public [Quantity] carries the
pair’s catalog base scale.