pub struct TradeUpdate {
pub symbol: String,
pub timestamp: u64,
pub price: f64,
pub size: f64,
}Expand description
Required fields of a trade or trade-break update.
Fields§
§symbol: StringThe asset’s symbol.
timestamp: u64The provider timestamp, preserved without assuming a time unit.
price: f64The execution price.
size: f64The traded quantity; crypto quantities can be fractional.
Trait Implementations§
Source§impl Clone for TradeUpdate
impl Clone for TradeUpdate
Source§impl Debug for TradeUpdate
impl Debug for TradeUpdate
Source§impl<'de> Deserialize<'de> for TradeUpdate
impl<'de> Deserialize<'de> for TradeUpdate
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
Source§impl PartialEq for TradeUpdate
impl PartialEq for TradeUpdate
impl StructuralPartialEq for TradeUpdate
Auto Trait Implementations§
impl Freeze for TradeUpdate
impl RefUnwindSafe for TradeUpdate
impl Send for TradeUpdate
impl Sync for TradeUpdate
impl Unpin for TradeUpdate
impl UnsafeUnpin for TradeUpdate
impl UnwindSafe for TradeUpdate
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