pub struct Trade {
pub id: u64,
pub price: f64,
pub quantity: f64,
pub quote_quantity: f64,
pub time: u64,
pub is_buyer_maker: bool,
pub is_best_match: bool,
}Expand description
Recent trade.
Fields§
§id: u64Trade ID.
price: f64Price.
quantity: f64Quantity.
quote_quantity: f64Quote quantity.
time: u64Trade time in milliseconds.
is_buyer_maker: boolWas the buyer the maker.
is_best_match: boolWas this the best price match.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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