pub struct Margin { /* private fields */ }
Expand description
Describes the margin information of the account
Implementations
Create a new margin account with an initial balance
Panics
Create a new Margin with all fields custom
Panics
In debug mode, if the input values don’t make sense
Return the wallet balance of account denoted in QUOTE currency when using linear futures denoted in BASE currency when using inverse futures
Return the position margin of account, same denotation as wallet_balance
Return the used order margin of account, same denotation as wallet_balance
Return the available balance of account, same denotation as wallet_balance
Trait Implementations
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 RefUnwindSafe for Margin
impl UnwindSafe for Margin
Blanket Implementations
Mutably borrows from an owned value. Read more