pub struct AccountBalance {Show 14 fields
pub cash: f64,
pub buying_power: f64,
pub market_value: f64,
pub total_value: f64,
pub unrealized_profit_loss: f64,
pub unrealized_profit_loss_percentage: f64,
pub currency: String,
pub settled_cash: Option<f64>,
pub unsettled_cash: Option<f64>,
pub withdrawable_cash: Option<f64>,
pub tradable_cash: Option<f64>,
pub margin_buying_power: Option<f64>,
pub option_buying_power: Option<f64>,
pub day_trading_buying_power: Option<f64>,
}Expand description
Account balance information.
Fields§
§cash: f64Cash balance
buying_power: f64Buying power
market_value: f64Market value of holdings
total_value: f64Total account value
unrealized_profit_loss: f64Unrealized profit/loss
unrealized_profit_loss_percentage: f64Unrealized profit/loss percentage
currency: StringCurrency of the balance
settled_cash: Option<f64>Settled cash
unsettled_cash: Option<f64>Unsettled cash
withdrawable_cash: Option<f64>Cash available for withdrawal
tradable_cash: Option<f64>Cash available for trading
margin_buying_power: Option<f64>Margin buying power
option_buying_power: Option<f64>Option buying power
day_trading_buying_power: Option<f64>Day trading buying power
Trait Implementations§
Source§impl Clone for AccountBalance
impl Clone for AccountBalance
Source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
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 AccountBalance
impl Debug for AccountBalance
Source§impl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
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 AccountBalance
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnwindSafe for AccountBalance
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