pub struct PositionBalance {
pub instrument_name: String,
pub quantity: f64,
pub market_value: f64,
pub collateral_amount: f64,
pub collateral_weight: f64,
pub max_withdrawal_balance: f64,
}Expand description
Position balance
Fields§
§instrument_name: StringInstrument name of the collateral e.g. USD, CRO, USDT, or DAI
quantity: f64Quantity of the collateral
market_value: f64Market value of the collateral
collateral_amount: f64Collateral amount derived by market_value times collateral_weight
collateral_weight: f64Collateral weight
max_withdrawal_balance: f64Max withdrawal balance of the collateral
Trait Implementations§
Source§impl Debug for PositionBalance
impl Debug for PositionBalance
Source§impl<'de> Deserialize<'de> for PositionBalance
impl<'de> Deserialize<'de> for PositionBalance
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 PositionBalance
impl RefUnwindSafe for PositionBalance
impl Send for PositionBalance
impl Sync for PositionBalance
impl Unpin for PositionBalance
impl UnwindSafe for PositionBalance
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