pub struct LiquidationLevels {
pub mid_price: f64,
pub snapshot_ts: String,
pub block_number: u64,
pub total_long: f64,
pub total_short: f64,
pub flagged_notional: f64,
pub levels: Vec<LiquidationLevelBucket>,
}Expand description
Projected forced-liquidation levels for one snapshot, computed from
clearinghouse positions and margin state. Snapshots refresh roughly every
45 minutes; snapshot_ts identifies the snapshot served.
Fields§
§mid_price: f64Mark price at the snapshot, center of the requested range.
snapshot_ts: StringUTC snapshot time the levels reflect.
block_number: u64Hyperliquid block height the snapshot reflects.
total_long: f64Total long notional at risk across the whole book.
total_short: f64Total short notional at risk across the whole book.
flagged_notional: f64Notional computed approximately or not bucketed (HIP-3 cross-margin exposure).
levels: Vec<LiquidationLevelBucket>Price buckets inside the requested range.
Trait Implementations§
Source§impl Clone for LiquidationLevels
impl Clone for LiquidationLevels
Source§fn clone(&self) -> LiquidationLevels
fn clone(&self) -> LiquidationLevels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LiquidationLevels
impl Debug for LiquidationLevels
Source§impl<'de> Deserialize<'de> for LiquidationLevels
impl<'de> Deserialize<'de> for LiquidationLevels
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 LiquidationLevels
impl RefUnwindSafe for LiquidationLevels
impl Send for LiquidationLevels
impl Sync for LiquidationLevels
impl Unpin for LiquidationLevels
impl UnsafeUnpin for LiquidationLevels
impl UnwindSafe for LiquidationLevels
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