Struct lfest::Margin [−][src]
pub struct Margin { /* fields omitted */ }
Describes the margin information of the account
Implementations
impl Margin
[src]
impl Margin
[src]pub fn new_init(init_balance: f64) -> Self
[src]
Create a new margin account with an initial balance denoted in BASE currency
pub fn new(
wallet_balance: f64,
position_margin: f64,
order_margin: f64,
available_balance: f64
) -> Self
[src]
wallet_balance: f64,
position_margin: f64,
order_margin: f64,
available_balance: f64
) -> Self
Create a new Margin with all fields custom
pub fn wallet_balance(&self) -> f64
[src]
Return the wallet balance of account
pub fn position_margin(&self) -> f64
[src]
Return the position margin of account
pub fn order_margin(&self) -> f64
[src]
Return the used order margin of account
pub fn available_balance(&self) -> f64
[src]
Return the available balance of account
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Margin
impl RefUnwindSafe for Margin
impl UnwindSafe for Margin
impl UnwindSafe for Margin