pub struct SpanMarginSummary {
pub equity: Decimal,
pub initial_margin_required: Decimal,
pub maintenance_margin_required: Decimal,
pub open_orders_initial_margin: Decimal,
pub option_margin_required: Decimal,
pub scanning_risk: Decimal,
pub option_floor: Decimal,
pub gamma_overlay: Decimal,
pub hypercore_margin_required: Decimal,
}Expand description
SPAN-based portfolio margin breakdown for an account.
Fields§
§equity: DecimalTotal account equity (balance + unrealized PnL) in USD. Serialized as a string.
initial_margin_required: DecimalInitial margin required for existing positions in USD. Serialized as a string.
maintenance_margin_required: DecimalMaintenance margin required for existing positions in USD. Serialized as a string.
open_orders_initial_margin: DecimalInitial margin reserved for open (unfilled) orders. Defaults to zero. Serialized as a string.
option_margin_required: DecimalOptions-specific margin requirement in USD. Serialized as a string.
scanning_risk: DecimalSPAN scanning risk (worst-case scenario loss) in USD. Serialized as a string.
option_floor: DecimalMinimum option margin floor (short option value * factor) in USD. Serialized as a string.
gamma_overlay: DecimalGamma/curvature overlay charge in USD. Serialized as a string.
hypercore_margin_required: DecimalMargin held on HyperCore for perp positions in USD. Serialized as a string.
Trait Implementations§
Source§impl Clone for SpanMarginSummary
impl Clone for SpanMarginSummary
Source§fn clone(&self) -> SpanMarginSummary
fn clone(&self) -> SpanMarginSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpanMarginSummary
impl Debug for SpanMarginSummary
Source§impl<'de> Deserialize<'de> for SpanMarginSummary
impl<'de> Deserialize<'de> for SpanMarginSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanMarginSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanMarginSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SpanMarginSummary
impl Serialize for SpanMarginSummary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Forget for SpanMarginSummary
impl Freeze for SpanMarginSummary
impl Move for SpanMarginSummary
impl RefUnwindSafe for SpanMarginSummary
impl Send for SpanMarginSummary
impl Sync for SpanMarginSummary
impl Unpin for SpanMarginSummary
impl UnsafeUnpin for SpanMarginSummary
impl UnwindSafe for SpanMarginSummary
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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