pub struct Quote {
pub instrument_name: String,
pub side: String,
pub amount: f64,
pub price: f64,
pub quote_set_id: Option<String>,
pub post_only: Option<bool>,
pub time_in_force: Option<String>,
}Expand description
Represents a single quote in a mass quote request
Fields§
§instrument_name: StringInstrument name (e.g., “BTC-PERPETUAL”)
side: StringQuote side: “buy” or “sell”
amount: f64Quote amount (positive number)
price: f64Quote price
quote_set_id: Option<String>Optional quote set ID for grouping quotes
post_only: Option<bool>Optional post-only flag
time_in_force: Option<String>Optional time in force
Implementations§
Source§impl Quote
impl Quote
Sourcepub fn with_quote_set_id(self, quote_set_id: String) -> Self
pub fn with_quote_set_id(self, quote_set_id: String) -> Self
Set quote set ID for this quote
Sourcepub fn with_post_only(self, post_only: bool) -> Self
pub fn with_post_only(self, post_only: bool) -> Self
Set post-only flag for this quote
Sourcepub fn with_time_in_force(self, time_in_force: String) -> Self
pub fn with_time_in_force(self, time_in_force: String) -> Self
Set time in force for this quote
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more