pub struct Trade {
pub trade_id: String,
pub order_id: String,
pub exchange_order_id: String,
pub trading_symbol: String,
pub exchange: Exchange,
pub instrument_token: u32,
pub product: Product,
pub average_price: f64,
pub quantity: u32,
pub fill_timestamp: DateTime<Utc>,
pub exchange_timestamp: DateTime<Utc>,
pub transaction_type: TransactionType,
}Expand description
Trade data structure
Fields§
§trade_id: StringTrade ID
order_id: StringOrder ID
exchange_order_id: StringExchange order ID
trading_symbol: StringTrading symbol
exchange: ExchangeExchange
instrument_token: u32Instrument token
product: ProductProduct type
average_price: f64Average price at which the trade was executed
quantity: u32Quantity traded
fill_timestamp: DateTime<Utc>Fill timestamp
exchange_timestamp: DateTime<Utc>Exchange timestamp
transaction_type: TransactionTypeTransaction type (BUY/SELL)
Implementations§
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