pub struct Insurance {
pub coin: String,
pub balance: f64,
pub value: String,
}Expand description
Represents an insurance fund entry for a specific cryptocurrency. Details the fund’s balance and value, which backstops losses in perpetual futures trading.
Fields§
§coin: StringThe cryptocurrency of the insurance fund (e.g., “BTC”). Specifies which asset’s fund is being described. Bots must match this with trading pairs.
balance: f64The balance of the insurance fund in the specified coin (e.g., 0.5 for 0.5 BTC). A larger balance indicates a stronger buffer against liquidations. Bots monitor this to gauge exchange stability, as a depleted fund increases counterparty risk.
value: StringThe USD value of the fund balance (e.g., “10000”). Provides a standardized valuation, useful for comparing fund sizes across coins. Bots use this to assess the fund’s adequacy relative to market volatility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Insurance
impl<'de> Deserialize<'de> for Insurance
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 Insurance
impl RefUnwindSafe for Insurance
impl Send for Insurance
impl Sync for Insurance
impl Unpin for Insurance
impl UnwindSafe for Insurance
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