AccountResult

Struct AccountResult 

Source
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: String

Currency of the summary

§balance: f64

The account’s balance

§equity: f64

The account’s current equity

§available_funds: f64

The account’s available funds

§margin_balance: f64

The 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: f64

The maintenance margin

§initial_margin: f64

The 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

Source§

fn clone(&self) -> AccountResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AccountResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AccountResult

Source§

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 Display for AccountResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for AccountResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,