pub struct TradeData {
pub symbol: String,
pub tick_direction: String,
pub price: Decimal,
pub size: Decimal,
pub timestamp: String,
pub trade_time_ms: u64,
pub side: String,
pub trade_id: String,
pub is_block_trade: bool,
}Expand description
Individual trade data
Fields§
§symbol: StringTrading symbol
tick_direction: StringDirection of the tick (“PlusTick”, “MinusTick”, “ZeroTick”)
price: DecimalTrade price
size: DecimalTrade quantity
timestamp: StringTrade timestamp as string
trade_time_ms: u64Trade timestamp in milliseconds
side: StringTrade side (“Buy” or “Sell”)
trade_id: StringUnique trade identifier
is_block_trade: boolWhether this is a block trade
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeData
impl<'de> Deserialize<'de> for TradeData
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 TradeData
impl RefUnwindSafe for TradeData
impl Send for TradeData
impl Sync for TradeData
impl Unpin for TradeData
impl UnwindSafe for TradeData
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