pub struct TradesWrapper {
pub items: Vec<Trade>,
pub wash_sales: Vec<Trade>,
}Expand description
Wrapper for trades section
The IB FLEX <Trades> section can contain multiple element types based on
the levelOfDetail attribute:
<Trade>with levelOfDetail=“EXECUTION” - individual trade executions<Order>with levelOfDetail=“ORDER” - order summaries<SymbolSummary>,<AssetSummary>,<WashSale>,<Lot>- various summary records
These elements can be interleaved (grouped by symbol), not by type.
Fields§
§items: Vec<Trade>Trade executions (main trading data)
wash_sales: Vec<Trade>Wash sale records
Trait Implementations§
Source§impl Clone for TradesWrapper
impl Clone for TradesWrapper
Source§fn clone(&self) -> TradesWrapper
fn clone(&self) -> TradesWrapper
Returns a duplicate of the value. Read more
1.0.0 · 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 TradesWrapper
impl Debug for TradesWrapper
Source§impl Default for TradesWrapper
impl Default for TradesWrapper
Source§fn default() -> TradesWrapper
fn default() -> TradesWrapper
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TradesWrapper
impl<'de> Deserialize<'de> for TradesWrapper
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 TradesWrapper
impl PartialEq for TradesWrapper
Source§impl Serialize for TradesWrapper
impl Serialize for TradesWrapper
impl StructuralPartialEq for TradesWrapper
Auto Trait Implementations§
impl Freeze for TradesWrapper
impl RefUnwindSafe for TradesWrapper
impl Send for TradesWrapper
impl Sync for TradesWrapper
impl Unpin for TradesWrapper
impl UnwindSafe for TradesWrapper
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