DeribitAccountSummaryExtended

Struct DeribitAccountSummaryExtended 

Source
pub struct DeribitAccountSummaryExtended {
Show 46 fields pub currency: Ustr, pub equity: f64, pub balance: f64, pub available_funds: f64, pub margin_balance: f64, pub initial_margin: Option<f64>, pub maintenance_margin: Option<f64>, pub total_pl: Option<f64>, pub session_upl: Option<f64>, pub session_rpl: Option<f64>, pub portfolio_margining_enabled: Option<bool>, pub id: Option<i64>, pub email: Option<String>, pub username: Option<String>, pub system_name: Option<String>, pub account_type: Option<String>, pub futures_session_upl: Option<f64>, pub futures_session_rpl: Option<f64>, pub options_session_upl: Option<f64>, pub options_session_rpl: Option<f64>, pub futures_pl: Option<f64>, pub options_pl: Option<f64>, pub options_delta: Option<f64>, pub options_gamma: Option<f64>, pub options_vega: Option<f64>, pub options_theta: Option<f64>, pub options_value: Option<f64>, pub delta_total: Option<f64>, pub projected_delta_total: Option<f64>, pub projected_initial_margin: Option<f64>, pub projected_maintenance_margin: Option<f64>, pub estimated_liquidation_ratio: Option<f64>, pub available_withdrawal_funds: Option<f64>, pub spot_reserve: Option<f64>, pub fee_balance: Option<f64>, pub margin_model: Option<String>, pub cross_collateral_enabled: Option<bool>, pub creation_timestamp: Option<i64>, pub login_enabled: Option<bool>, pub security_keys_enabled: Option<bool>, pub mmp_enabled: Option<bool>, pub interuser_transfers_enabled: Option<bool>, pub self_trading_reject_mode: Option<String>, pub self_trading_extended_to_subaccounts: Option<bool>, pub referrer_id: Option<String>, pub block_rfq_self_match_prevention: Option<bool>,
}
Expand description

Extended account summary with additional account details.

Returned by private/get_account_summary with extended=true. Contains all fields from DeribitAccountSummary plus account metadata, position Greeks, detailed margins, and fee structures.

Fields§

§currency: Ustr

Currency code (e.g., “BTC”, “ETH”)

§equity: f64

Account equity (balance + unrealized PnL)

§balance: f64

Account balance

§available_funds: f64

Available funds for trading

§margin_balance: f64

Margin balance (for derivatives)

§initial_margin: Option<f64>

Initial margin (required for current positions)

§maintenance_margin: Option<f64>

Maintenance margin

§total_pl: Option<f64>

Total profit/loss

§session_upl: Option<f64>

Session unrealized profit/loss

§session_rpl: Option<f64>

Session realized profit/loss

§portfolio_margining_enabled: Option<bool>

Portfolio margining enabled

§id: Option<i64>

Account ID

§email: Option<String>

Account email

§username: Option<String>

Account username

§system_name: Option<String>

System name

§account_type: Option<String>

Account type (e.g., “main”, “subaccount”)

§futures_session_upl: Option<f64>

Futures session unrealized P&L

§futures_session_rpl: Option<f64>

Futures session realized P&L

§options_session_upl: Option<f64>

Options session unrealized P&L

§options_session_rpl: Option<f64>

Options session realized P&L

§futures_pl: Option<f64>

Futures profit/loss

§options_pl: Option<f64>

Options profit/loss

§options_delta: Option<f64>

Options delta

§options_gamma: Option<f64>

Options gamma

§options_vega: Option<f64>

Options vega

§options_theta: Option<f64>

Options theta

§options_value: Option<f64>

Options value

§delta_total: Option<f64>

Total delta across all positions

§projected_delta_total: Option<f64>

Projected delta total

§projected_initial_margin: Option<f64>

Projected initial margin

§projected_maintenance_margin: Option<f64>

Projected maintenance margin

§estimated_liquidation_ratio: Option<f64>

Estimated liquidation ratio

§available_withdrawal_funds: Option<f64>

Available withdrawal funds

§spot_reserve: Option<f64>

Spot reserve

§fee_balance: Option<f64>

Fee balance

§margin_model: Option<String>

Margin model (e.g., “segregated_sm”, “cross_pm”)

§cross_collateral_enabled: Option<bool>

Cross collateral enabled

§creation_timestamp: Option<i64>

Account creation timestamp (milliseconds since UNIX epoch)

§login_enabled: Option<bool>

Whether login is enabled for this account

§security_keys_enabled: Option<bool>

Whether security keys are enabled

§mmp_enabled: Option<bool>

Whether MMP (Market Maker Protection) is enabled

§interuser_transfers_enabled: Option<bool>

Whether inter-user transfers are enabled

§self_trading_reject_mode: Option<String>

Self-trading reject mode

§self_trading_extended_to_subaccounts: Option<bool>

Whether self-trading is extended to subaccounts

§referrer_id: Option<String>

Referrer ID (affiliation program)

§block_rfq_self_match_prevention: Option<bool>

Block RFQ self match prevention

Trait Implementations§

Source§

impl Clone for DeribitAccountSummaryExtended

Source§

fn clone(&self) -> DeribitAccountSummaryExtended

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DeribitAccountSummaryExtended

Source§

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

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

impl<'de> Deserialize<'de> for DeribitAccountSummaryExtended

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 Serialize for DeribitAccountSummaryExtended

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§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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

§

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
§

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
§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

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

§

impl<T> Ungil for T
where T: Send,