pub struct AccountStatistics {
pub equity: Option<Decimal>,
pub total_margin: Option<Decimal>,
pub position_margin: Option<Decimal>,
pub cash_excess: Option<Decimal>,
pub purchasing_power: Option<Decimal>,
pub unrealized_pnl: Option<Decimal>,
pub realized_pnl: Option<Decimal>,
pub yesterday_equity: Option<Decimal>,
}Fields§
§equity: Option<Decimal>Total account equity; net liquidation value.
total_margin: Option<Decimal>Margin requirement calculated for worst-case based on open positions and working orders.
position_margin: Option<Decimal>Margin requirement based on current positions only.
cash_excess: Option<Decimal>Cash available to withdraw.
purchasing_power: Option<Decimal>Total purchasing power; post-multiplied. (e.g. for cash margin account could be 2x available cash)
unrealized_pnl: Option<Decimal>§realized_pnl: Option<Decimal>§yesterday_equity: Option<Decimal>Yesterday total account equity.
Trait Implementations§
Source§impl Clone for AccountStatistics
impl Clone for AccountStatistics
Source§fn clone(&self) -> AccountStatistics
fn clone(&self) -> AccountStatistics
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 AccountStatistics
impl Debug for AccountStatistics
Source§impl Default for AccountStatistics
impl Default for AccountStatistics
Source§fn default() -> AccountStatistics
fn default() -> AccountStatistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountStatistics
impl<'de> Deserialize<'de> for AccountStatistics
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 JsonSchema for AccountStatistics
impl JsonSchema for AccountStatistics
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AccountStatistics
impl RefUnwindSafe for AccountStatistics
impl Send for AccountStatistics
impl Sync for AccountStatistics
impl Unpin for AccountStatistics
impl UnwindSafe for AccountStatistics
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