pub struct TradeBalances {
pub equivalent_balance: Decimal,
pub trade_balance: Decimal,
pub margin: Decimal,
pub net_pnl_open: Decimal,
pub cost_basis_open: Decimal,
pub floating_valuation: Decimal,
pub equity: Decimal,
pub free_margin: Decimal,
pub margin_level: Option<Decimal>,
pub unexecuted_value: Option<Decimal>,
}
Expand description
Detailed margin balance data
Fields§
§equivalent_balance: Decimal
§trade_balance: Decimal
§margin: Decimal
§net_pnl_open: Decimal
§cost_basis_open: Decimal
§floating_valuation: Decimal
§equity: Decimal
§free_margin: Decimal
§margin_level: Option<Decimal>
§unexecuted_value: Option<Decimal>
Trait Implementations§
Source§impl Clone for TradeBalances
impl Clone for TradeBalances
Source§fn clone(&self) -> TradeBalances
fn clone(&self) -> TradeBalances
Returns a copy 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 TradeBalances
impl Debug for TradeBalances
Source§impl<'de> Deserialize<'de> for TradeBalances
impl<'de> Deserialize<'de> for TradeBalances
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 TradeBalances
impl PartialEq for TradeBalances
impl StructuralPartialEq for TradeBalances
Auto Trait Implementations§
impl Freeze for TradeBalances
impl RefUnwindSafe for TradeBalances
impl Send for TradeBalances
impl Sync for TradeBalances
impl Unpin for TradeBalances
impl UnwindSafe for TradeBalances
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