Enum lfest::FuturesType [−][src]
pub enum FuturesType { Linear, Inverse, }
Expand description
Enumeration of different futures types
Variants
Linear futures with a linear payout profit and loss calculation: position_size * (exit_price - entry_price)
Inverse futures allow the user to hold the collateral in BASE currency and speculating on price moves denoted in QUOTE currency Example would be Bitmex XBTUSD inverse perpetual futures. profit and loss calculation: position_size * (1.0 / entry_price - 1.0 / exit_price)
Implementations
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 FuturesType
impl Send for FuturesType
impl Sync for FuturesType
impl Unpin for FuturesType
impl UnwindSafe for FuturesType
Blanket Implementations
Mutably borrows from an owned value. Read more