pub struct AccountResult {Show 49 fields
pub currency: String,
pub balance: f64,
pub equity: f64,
pub available_funds: f64,
pub margin_balance: f64,
pub total_pl: Option<f64>,
pub session_rpl: Option<f64>,
pub session_upl: Option<f64>,
pub maintenance_margin: f64,
pub initial_margin: f64,
pub available_withdrawal_funds: Option<f64>,
pub cross_collateral_enabled: Option<bool>,
pub delta_total: Option<f64>,
pub futures_pl: Option<f64>,
pub futures_session_rpl: Option<f64>,
pub futures_session_upl: Option<f64>,
pub options_delta: Option<f64>,
pub options_gamma: Option<f64>,
pub options_pl: Option<f64>,
pub options_session_rpl: Option<f64>,
pub options_session_upl: Option<f64>,
pub options_theta: Option<f64>,
pub options_vega: Option<f64>,
pub portfolio_margining_enabled: Option<bool>,
pub projected_delta_total: Option<f64>,
pub projected_initial_margin: Option<f64>,
pub projected_maintenance_margin: Option<f64>,
pub delta_total_map: Option<HashMap<String, f64>>,
pub deposit_address: Option<String>,
pub fees: Option<Vec<FeeStructure>>,
pub limits: Option<AccountLimits>,
pub margin_model: Option<String>,
pub options_gamma_map: Option<HashMap<String, f64>>,
pub options_theta_map: Option<HashMap<String, f64>>,
pub options_vega_map: Option<HashMap<String, f64>>,
pub options_value: Option<f64>,
pub spot_reserve: Option<f64>,
pub estimated_liquidation_ratio: Option<f64>,
pub estimated_liquidation_ratio_map: Option<HashMap<String, f64>>,
pub fee_balance: Option<f64>,
pub additional_reserve: Option<f64>,
pub has_non_block_chain_equity: Option<bool>,
pub total_margin_balance_usd: Option<f64>,
pub total_delta_total_usd: Option<f64>,
pub total_initial_margin_usd: Option<f64>,
pub total_maintenance_margin_usd: Option<f64>,
pub total_equity_usd: Option<f64>,
pub system_name: Option<String>,
pub account_type: Option<String>,
}Expand description
Account summary information
Fields§
§currency: StringCurrency of the summary
balance: f64The account’s balance
equity: f64The account’s current equity
available_funds: f64The account’s available funds
margin_balance: f64The account’s margin balance
total_pl: Option<f64>Profit and loss
session_rpl: Option<f64>Session realized profit and loss
session_upl: Option<f64>Session unrealized profit and loss
maintenance_margin: f64The maintenance margin
initial_margin: f64The account’s initial margin
available_withdrawal_funds: Option<f64>The account’s available to withdrawal funds
cross_collateral_enabled: Option<bool>When true cross collateral is enabled for user
delta_total: Option<f64>The sum of position deltas
futures_pl: Option<f64>Futures profit and Loss
futures_session_rpl: Option<f64>Futures session realized profit and Loss
futures_session_upl: Option<f64>Futures session unrealized profit and Loss
options_delta: Option<f64>Options summary delta
options_gamma: Option<f64>Options summary gamma
options_pl: Option<f64>Options profit and Loss
options_session_rpl: Option<f64>Options session realized profit and Loss
options_session_upl: Option<f64>Options session unrealized profit and Loss
options_theta: Option<f64>Options summary theta
options_vega: Option<f64>Options summary vega
portfolio_margining_enabled: Option<bool>true when portfolio margining is enabled for user
projected_delta_total: Option<f64>The sum of position deltas without positions that will expire during closest expiration
projected_initial_margin: Option<f64>Projected initial margin
projected_maintenance_margin: Option<f64>Projected maintenance margin
delta_total_map: Option<HashMap<String, f64>>Delta total map (currency -> delta)
deposit_address: Option<String>The deposit address for the account (if available)
fees: Option<Vec<FeeStructure>>List of fee objects for all currency pairs and instrument types
limits: Option<AccountLimits>Account limits structure
margin_model: Option<String>Name of user’s currently enabled margin model
options_gamma_map: Option<HashMap<String, f64>>Map of options’ gammas per index
options_theta_map: Option<HashMap<String, f64>>Map of options’ thetas per index
options_vega_map: Option<HashMap<String, f64>>Map of options’ vegas per index
options_value: Option<f64>Options value
spot_reserve: Option<f64>The account’s balance reserved in active spot orders
estimated_liquidation_ratio: Option<f64>Estimated Liquidation Ratio
estimated_liquidation_ratio_map: Option<HashMap<String, f64>>Estimated liquidation ratio map
fee_balance: Option<f64>The account’s fee balance (it can be used to pay for fees)
additional_reserve: Option<f64>The account’s balance reserved in other orders
has_non_block_chain_equity: Option<bool>Optional field returned with value true when user has non block chain equity
total_margin_balance_usd: Option<f64>The account’s total margin balance in all cross collateral currencies, expressed in USD
total_delta_total_usd: Option<f64>The account’s total delta total in all cross collateral currencies, expressed in USD
total_initial_margin_usd: Option<f64>The account’s total initial margin in all cross collateral currencies, expressed in USD
total_maintenance_margin_usd: Option<f64>The account’s total maintenance margin in all cross collateral currencies, expressed in USD
total_equity_usd: Option<f64>The account’s total equity in all cross collateral currencies, expressed in USD
system_name: Option<String>System name for the account
account_type: Option<String>Account type
Trait Implementations§
Source§impl Clone for AccountResult
impl Clone for AccountResult
Source§fn clone(&self) -> AccountResult
fn clone(&self) -> AccountResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountResult
impl Debug for AccountResult
Source§impl<'de> Deserialize<'de> for AccountResult
impl<'de> Deserialize<'de> for AccountResult
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>,
Source§impl Display for AccountResult
impl Display for AccountResult
Auto Trait Implementations§
impl Freeze for AccountResult
impl RefUnwindSafe for AccountResult
impl Send for AccountResult
impl Sync for AccountResult
impl Unpin for AccountResult
impl UnwindSafe for AccountResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.