pub enum BitmexInstrumentType {
Show 20 variants
LegacyFutures,
LegacyFuturesN,
FuturesSpreads,
PredictionMarket,
StockPerpetual,
PerpetualContract,
PerpetualContractFx,
Futures,
Spot,
CallOption,
PutOption,
SwapRate,
ReferenceBasket,
BasketIndex,
CryptoIndex,
FxIndex,
LendingIndex,
VolatilityIndex,
StockIndex,
YieldIndex,
}Expand description
Represents BitMEX instrument types (CFI codes).
The CFI (Classification of Financial Instruments) code is a 6-character code following ISO 10962 standard that classifies financial instruments.
Variants§
LegacyFutures
Legacy futures (settled).
LegacyFuturesN
Legacy futures (settled, variant).
FuturesSpreads
Futures spreads (settled).
PredictionMarket
Prediction Markets (non-standardized financial future on index, cash settled). CFI code FFICSX - traders predict outcomes of events.
StockPerpetual
Stock-based Perpetual Contracts (e.g., SPY, equity derivatives). CFI code FFSCSX - financial future on stocks, cash settled.
PerpetualContract
Perpetual Contracts (crypto).
PerpetualContractFx
Perpetual Contracts (FX underliers).
Futures
Futures (calendar futures, cash settled).
Spot
Spot trading pairs.
CallOption
Call options (European, cash settled).
PutOption
Put options (European, cash settled).
SwapRate
Swap rate contracts (yield products).
ReferenceBasket
Reference basket contracts.
BasketIndex
BitMEX Basket Index.
CryptoIndex
BitMEX Crypto Index.
FxIndex
BitMEX FX Index.
LendingIndex
BitMEX Lending/Premium Index.
VolatilityIndex
BitMEX Volatility Index.
StockIndex
BitMEX Stock/Securities Index.
YieldIndex
BitMEX Yield/Dividend Index.
Trait Implementations§
Source§impl AsRef<str> for BitmexInstrumentType
impl AsRef<str> for BitmexInstrumentType
Source§impl Clone for BitmexInstrumentType
impl Clone for BitmexInstrumentType
Source§fn clone(&self) -> BitmexInstrumentType
fn clone(&self) -> BitmexInstrumentType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BitmexInstrumentType
impl Debug for BitmexInstrumentType
Source§impl<'de> Deserialize<'de> for BitmexInstrumentType
impl<'de> Deserialize<'de> for BitmexInstrumentType
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>,
Source§impl Display for BitmexInstrumentType
impl Display for BitmexInstrumentType
Source§impl FromStr for BitmexInstrumentType
impl FromStr for BitmexInstrumentType
Source§impl IntoEnumIterator for BitmexInstrumentType
impl IntoEnumIterator for BitmexInstrumentType
Source§impl PartialEq for BitmexInstrumentType
impl PartialEq for BitmexInstrumentType
Source§impl Serialize for BitmexInstrumentType
impl Serialize for BitmexInstrumentType
Source§impl TryFrom<&str> for BitmexInstrumentType
impl TryFrom<&str> for BitmexInstrumentType
impl Copy for BitmexInstrumentType
impl Eq for BitmexInstrumentType
impl StructuralPartialEq for BitmexInstrumentType
Auto Trait Implementations§
impl Freeze for BitmexInstrumentType
impl RefUnwindSafe for BitmexInstrumentType
impl Send for BitmexInstrumentType
impl Sync for BitmexInstrumentType
impl Unpin for BitmexInstrumentType
impl UnsafeUnpin for BitmexInstrumentType
impl UnwindSafe for BitmexInstrumentType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> SetterInput<Owned> for T
impl<T> SetterInput<Owned> for T
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.