pub struct Balance {
pub total: Option<Decimal>,
pub total_margin: Option<Decimal>,
pub position_margin: Option<Decimal>,
pub purchasing_power: Option<Decimal>,
pub cash_excess: Option<Decimal>,
pub yesterday_balance: Option<Decimal>,
}Fields§
§total: Option<Decimal>The total amount of this asset held in the account by the venue/broker.
total_margin: Option<Decimal>Margin requirement calculated for worst-case based on open positions and working orders.
position_margin: Option<Decimal>Margin requirement calculated for worst-case based on open positions.
purchasing_power: Option<Decimal>Available account funds including balance, realized profit (or loss), collateral and credits.
cash_excess: Option<Decimal>Cash available in the account beyond the required margin.
yesterday_balance: Option<Decimal>Cash balance from the last statement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Balance
impl<'de> Deserialize<'de> for Balance
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 Balance
impl JsonSchema for Balance
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 Balance
impl RefUnwindSafe for Balance
impl Send for Balance
impl Sync for Balance
impl Unpin for Balance
impl UnwindSafe for Balance
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