pub struct LiquidationFeaturesOutput {
pub long: f64,
pub short: f64,
pub net: f64,
pub total: f64,
pub imbalance: f64,
}Expand description
The liquidation feature vector emitted by LiquidationFeatures for one
tick.
Fields§
§long: f64Long-side liquidation notional on this tick.
short: f64Short-side liquidation notional on this tick.
net: f64Net liquidation long − short (positive = longs being liquidated).
total: f64Total liquidation long + short.
imbalance: f64Liquidation imbalance (long − short) / (long + short), in [−1, +1];
0.0 when there is no liquidation.
Trait Implementations§
Source§impl Clone for LiquidationFeaturesOutput
impl Clone for LiquidationFeaturesOutput
Source§fn clone(&self) -> LiquidationFeaturesOutput
fn clone(&self) -> LiquidationFeaturesOutput
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 LiquidationFeaturesOutput
impl Debug for LiquidationFeaturesOutput
Source§impl Default for LiquidationFeaturesOutput
impl Default for LiquidationFeaturesOutput
Source§fn default() -> LiquidationFeaturesOutput
fn default() -> LiquidationFeaturesOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for LiquidationFeaturesOutput
impl PartialEq for LiquidationFeaturesOutput
Source§fn eq(&self, other: &LiquidationFeaturesOutput) -> bool
fn eq(&self, other: &LiquidationFeaturesOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LiquidationFeaturesOutput
impl StructuralPartialEq for LiquidationFeaturesOutput
Auto Trait Implementations§
impl Freeze for LiquidationFeaturesOutput
impl RefUnwindSafe for LiquidationFeaturesOutput
impl Send for LiquidationFeaturesOutput
impl Sync for LiquidationFeaturesOutput
impl Unpin for LiquidationFeaturesOutput
impl UnsafeUnpin for LiquidationFeaturesOutput
impl UnwindSafe for LiquidationFeaturesOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more