Struct fxoanda_definitions::AccountChanges
source · pub struct AccountChanges {
pub trades_reduced: Option<Vec<TradeSummary>>,
pub trades_opened: Option<Vec<TradeSummary>>,
pub orders_filled: Option<Vec<Order>>,
pub transactions: Option<Vec<Transaction>>,
pub orders_created: Option<Vec<Order>>,
pub positions: Option<Vec<Position>>,
pub orders_triggered: Option<Vec<Order>>,
pub orders_cancelled: Option<Vec<Order>>,
pub trades_closed: Option<Vec<TradeSummary>>,
}
Fields§
§trades_reduced: Option<Vec<TradeSummary>>
The Trades reduced.
trades_opened: Option<Vec<TradeSummary>>
The Trades opened.
orders_filled: Option<Vec<Order>>
The Orders filled.
transactions: Option<Vec<Transaction>>
The Transactions that have been generated.
orders_created: Option<Vec<Order>>
The Orders created. These Orders may have been filled, cancelled or triggered in the same period.
positions: Option<Vec<Position>>
The Positions changed.
orders_triggered: Option<Vec<Order>>
The Orders triggered.
orders_cancelled: Option<Vec<Order>>
The Orders cancelled.
trades_closed: Option<Vec<TradeSummary>>
The Trades closed.
Implementations§
source§impl AccountChanges
impl AccountChanges
pub fn new() -> AccountChanges
sourcepub fn with_trades_reduced(self, x: Vec<TradeSummary>) -> Self
pub fn with_trades_reduced(self, x: Vec<TradeSummary>) -> Self
The Trades reduced.
- param Vec
- return AccountChanges
sourcepub fn with_trades_opened(self, x: Vec<TradeSummary>) -> Self
pub fn with_trades_opened(self, x: Vec<TradeSummary>) -> Self
The Trades opened.
- param Vec
- return AccountChanges
sourcepub fn with_orders_filled(self, x: Vec<Order>) -> Self
pub fn with_orders_filled(self, x: Vec<Order>) -> Self
The Orders filled.
- param Vec
- return AccountChanges
sourcepub fn with_transactions(self, x: Vec<Transaction>) -> Self
pub fn with_transactions(self, x: Vec<Transaction>) -> Self
The Transactions that have been generated.
- param Vec
- return AccountChanges
sourcepub fn with_orders_created(self, x: Vec<Order>) -> Self
pub fn with_orders_created(self, x: Vec<Order>) -> Self
The Orders created. These Orders may have been filled, cancelled or triggered in the same period.
- param Vec
- return AccountChanges
sourcepub fn with_positions(self, x: Vec<Position>) -> Self
pub fn with_positions(self, x: Vec<Position>) -> Self
The Positions changed.
- param Vec
- return AccountChanges
sourcepub fn with_orders_triggered(self, x: Vec<Order>) -> Self
pub fn with_orders_triggered(self, x: Vec<Order>) -> Self
The Orders triggered.
- param Vec
- return AccountChanges
sourcepub fn with_orders_cancelled(self, x: Vec<Order>) -> Self
pub fn with_orders_cancelled(self, x: Vec<Order>) -> Self
The Orders cancelled.
- param Vec
- return AccountChanges
sourcepub fn with_trades_closed(self, x: Vec<TradeSummary>) -> Self
pub fn with_trades_closed(self, x: Vec<TradeSummary>) -> Self
The Trades closed.
- param Vec
- return AccountChanges
Trait Implementations§
source§impl Debug for AccountChanges
impl Debug for AccountChanges
source§impl<'de> Deserialize<'de> for AccountChanges
impl<'de> Deserialize<'de> for AccountChanges
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 AccountChanges
impl RefUnwindSafe for AccountChanges
impl Send for AccountChanges
impl Sync for AccountChanges
impl Unpin for AccountChanges
impl UnwindSafe for AccountChanges
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