pub struct BitmexMarginMsg {Show 28 fields
pub account: i64,
pub currency: Ustr,
pub risk_limit: Option<i64>,
pub amount: Option<i64>,
pub prev_realised_pnl: Option<i64>,
pub gross_comm: Option<i64>,
pub gross_open_cost: Option<i64>,
pub gross_open_premium: Option<i64>,
pub gross_exec_cost: Option<i64>,
pub gross_mark_value: Option<i64>,
pub risk_value: Option<i64>,
pub init_margin: Option<i64>,
pub maint_margin: Option<i64>,
pub target_excess_margin: Option<i64>,
pub realised_pnl: Option<i64>,
pub unrealised_pnl: Option<i64>,
pub wallet_balance: Option<i64>,
pub margin_balance: Option<i64>,
pub margin_leverage: Option<f64>,
pub margin_used_pcnt: Option<f64>,
pub excess_margin: Option<i64>,
pub available_margin: Option<i64>,
pub withdrawable_margin: Option<i64>,
pub maker_fee_discount: Option<f64>,
pub taker_fee_discount: Option<f64>,
pub timestamp: DateTime<Utc>,
pub foreign_margin_balance: Option<i64>,
pub foreign_requirement: Option<i64>,
}
Expand description
Represents margin account information
Fields§
§account: i64
Account identifier
currency: Ustr
Currency of the margin account
risk_limit: Option<i64>
Risk limit for the account
amount: Option<i64>
Current amount in the account
prev_realised_pnl: Option<i64>
Previously realized PnL
gross_comm: Option<i64>
Gross commission
gross_open_cost: Option<i64>
Gross open cost
Gross open premium
gross_exec_cost: Option<i64>
Gross execution cost
gross_mark_value: Option<i64>
Gross mark value
risk_value: Option<i64>
Risk value
init_margin: Option<i64>
Initial margin requirement
maint_margin: Option<i64>
Maintenance margin requirement
target_excess_margin: Option<i64>
Target excess margin
realised_pnl: Option<i64>
Realized profit and loss
unrealised_pnl: Option<i64>
Unrealized profit and loss
wallet_balance: Option<i64>
Wallet balance
margin_balance: Option<i64>
Margin balance
margin_leverage: Option<f64>
Margin leverage
margin_used_pcnt: Option<f64>
Margin used percentage
excess_margin: Option<i64>
Excess margin
available_margin: Option<i64>
Available margin
withdrawable_margin: Option<i64>
Withdrawable margin
maker_fee_discount: Option<f64>
Maker fee discount
taker_fee_discount: Option<f64>
Taker fee discount
timestamp: DateTime<Utc>
Timestamp of the margin update
foreign_margin_balance: Option<i64>
Foreign margin balance
foreign_requirement: Option<i64>
Foreign margin requirement
Trait Implementations§
Source§impl Clone for BitmexMarginMsg
impl Clone for BitmexMarginMsg
Source§fn clone(&self) -> BitmexMarginMsg
fn clone(&self) -> BitmexMarginMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BitmexMarginMsg
impl Debug for BitmexMarginMsg
Source§impl<'de> Deserialize<'de> for BitmexMarginMsg
impl<'de> Deserialize<'de> for BitmexMarginMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BitmexMarginMsg
impl RefUnwindSafe for BitmexMarginMsg
impl Send for BitmexMarginMsg
impl Sync for BitmexMarginMsg
impl Unpin for BitmexMarginMsg
impl UnwindSafe for BitmexMarginMsg
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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 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>
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