pub struct LastTrade {
pub amount: f64,
pub direction: String,
pub index_price: f64,
pub instrument_name: String,
pub iv: Option<f64>,
pub liquid: Option<String>,
pub price: f64,
pub tick_direction: i32,
pub timestamp: u64,
pub trade_id: String,
pub trade_seq: u64,
}Expand description
Last trade
Fields§
§amount: f64Trade amount
direction: StringTrade direction (buy/sell)
index_price: f64Index price at execution time
instrument_name: StringName of the traded instrument
iv: Option<f64>Implied volatility (for options)
liquid: Option<String>Liquidity information
price: f64Execution price
tick_direction: i32Price tick direction (1=up, -1=down, 0=no change)
timestamp: u64Execution timestamp
trade_id: StringUnique trade identifier
trade_seq: u64Trade sequence number
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LastTrade
impl<'de> Deserialize<'de> for LastTrade
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 LastTrade
impl RefUnwindSafe for LastTrade
impl Send for LastTrade
impl Sync for LastTrade
impl Unpin for LastTrade
impl UnwindSafe for LastTrade
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