pub struct BlockTrade {
pub block_id: String,
pub price: f64,
pub quantity: f64,
pub is_buy: bool,
pub timestamp: i64,
pub is_iv: bool,
}Expand description
Block trade event.
Large trades reported separately from the regular order book (OTC desk or block trade facility).
Fields§
§block_id: StringExchange-assigned block trade identifier.
price: f64Execution price.
quantity: f64Execution quantity in base asset.
is_buy: booltrue = buyer aggressor (buy block), false = seller aggressor (sell block).
timestamp: i64Event timestamp in milliseconds.
is_iv: booltrue = price is expressed as implied volatility rather than a currency amount.
Trait Implementations§
Source§impl Clone for BlockTrade
impl Clone for BlockTrade
Source§fn clone(&self) -> BlockTrade
fn clone(&self) -> BlockTrade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockTrade
impl Debug for BlockTrade
Source§impl<'de> Deserialize<'de> for BlockTrade
impl<'de> Deserialize<'de> for BlockTrade
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockTrade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockTrade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BlockTrade
impl Serialize for BlockTrade
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BlockTrade
impl RefUnwindSafe for BlockTrade
impl Send for BlockTrade
impl Sync for BlockTrade
impl Unpin for BlockTrade
impl UnsafeUnpin for BlockTrade
impl UnwindSafe for BlockTrade
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