Struct obrewin_data_structures::market::Trade
source · pub struct Trade {
pub price: Price,
pub quantity: Quantity,
pub trade_id: String,
pub timestamp: DateTimeUTC,
pub is_buyer_maker: Option<bool>,
}Expand description
Represents raw trade.
Fields§
§price: Price§quantity: Quantity§trade_id: StringThe trade ID officially marked by the exchange.
timestamp: DateTimeUTCReceived timestamp of the trade
is_buyer_maker: Option<bool>Is buyer maker of this trade?
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