UserPortfolioNotification

Struct UserPortfolioNotification 

Source
pub struct UserPortfolioNotification {
Show 42 fields pub additional_reserve: Option<f64>, pub available_funds: f64, pub available_withdrawal_funds: f64, pub balance: f64, pub cross_collateral_enabled: bool, pub currency: String, pub delta_total: Option<f64>, pub delta_total_map: HashMap<String, Value>, pub equity: f64, pub estimated_liquidation_ratio: Option<f64>, pub estimated_liquidation_ratio_map: Option<HashMap<String, Value>>, pub fee_balance: Option<f64>, pub futures_pl: f64, pub futures_session_rpl: f64, pub futures_session_upl: f64, pub initial_margin: f64, pub maintenance_margin: f64, pub margin_balance: f64, pub margin_model: String, pub options_delta: f64, pub options_gamma: f64, pub options_gamma_map: HashMap<String, Value>, pub options_pl: f64, pub options_session_rpl: f64, pub options_session_upl: f64, pub options_theta: f64, pub options_theta_map: HashMap<String, Value>, pub options_value: f64, pub options_vega: f64, pub options_vega_map: HashMap<String, Value>, pub portfolio_margining_enabled: bool, pub projected_delta_total: f64, pub projected_initial_margin: Option<f64>, pub projected_maintenance_margin: f64, pub session_rpl: f64, pub session_upl: f64, pub total_delta_total_usd: Option<f64>, pub total_equity_usd: Option<f64>, pub total_initial_margin_usd: Option<f64>, pub total_maintenance_margin_usd: Option<f64>, pub total_margin_balance_usd: Option<f64>, pub total_pl: f64,
}

Fields§

§additional_reserve: Option<f64>§available_funds: f64§available_withdrawal_funds: f64§balance: f64§cross_collateral_enabled: bool§currency: String§delta_total: Option<f64>§delta_total_map: HashMap<String, Value>§equity: f64§estimated_liquidation_ratio: Option<f64>§estimated_liquidation_ratio_map: Option<HashMap<String, Value>>§fee_balance: Option<f64>§futures_pl: f64§futures_session_rpl: f64§futures_session_upl: f64§initial_margin: f64§maintenance_margin: f64§margin_balance: f64§margin_model: String§options_delta: f64§options_gamma: f64§options_gamma_map: HashMap<String, Value>§options_pl: f64§options_session_rpl: f64§options_session_upl: f64§options_theta: f64§options_theta_map: HashMap<String, Value>§options_value: f64§options_vega: f64§options_vega_map: HashMap<String, Value>§portfolio_margining_enabled: bool§projected_delta_total: f64§projected_initial_margin: Option<f64>§projected_maintenance_margin: f64§session_rpl: f64§session_upl: f64§total_delta_total_usd: Option<f64>§total_equity_usd: Option<f64>§total_initial_margin_usd: Option<f64>§total_maintenance_margin_usd: Option<f64>§total_margin_balance_usd: Option<f64>§total_pl: f64

Trait Implementations§

Source§

impl Clone for UserPortfolioNotification

Source§

fn clone(&self) -> UserPortfolioNotification

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 UserPortfolioNotification

Source§

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

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

impl Default for UserPortfolioNotification

Source§

fn default() -> UserPortfolioNotification

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for UserPortfolioNotification

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 PartialEq for UserPortfolioNotification

Source§

fn eq(&self, other: &UserPortfolioNotification) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for UserPortfolioNotification

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
Source§

impl StructuralPartialEq for UserPortfolioNotification

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, 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> 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, 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,