pub enum OkxInstrumentExtra {
Spot {
base_currency: CryptoAsset,
quote_currency: CryptoAsset,
},
Margin {
underlying: CryptoSymbol,
instrument_family: CryptoSymbol,
base_currency: CryptoAsset,
quote_currency: CryptoAsset,
leverage: Decimal,
},
Futures {
underlying: CryptoSymbol,
instrument_family: CryptoSymbol,
settlement_currency: CryptoAsset,
contract_value: Decimal,
contract_multiplier: Decimal,
contract_value_currency: CryptoAsset,
leverage: Decimal,
contract_type: OkxContractType,
},
Swap {
underlying: CryptoSymbol,
instrument_family: CryptoSymbol,
settlement_currency: CryptoAsset,
contract_value: Decimal,
contract_multiplier: Decimal,
contract_value_currency: CryptoAsset,
leverage: Decimal,
contract_type: OkxContractType,
},
Option {
underlying: CryptoSymbol,
instrument_family: CryptoSymbol,
settlement_currency: CryptoAsset,
contract_value: Decimal,
contract_multiplier: Decimal,
contract_value_currency: CryptoAsset,
option_type: OkxOptionType,
strike_price: Decimal,
},
}Variants§
Spot
Margin
Fields
§
underlying: CryptoSymbol§
instrument_family: CryptoSymbol§
base_currency: CryptoAsset§
quote_currency: CryptoAssetFutures
Fields
§
underlying: CryptoSymbol§
instrument_family: CryptoSymbol§
settlement_currency: CryptoAsset§
contract_value_currency: CryptoAsset§
contract_type: OkxContractTypeSwap
Fields
§
underlying: CryptoSymbol§
instrument_family: CryptoSymbol§
settlement_currency: CryptoAsset§
contract_value_currency: CryptoAsset§
contract_type: OkxContractTypeOption
Fields
§
underlying: CryptoSymbol§
instrument_family: CryptoSymbol§
settlement_currency: CryptoAsset§
contract_value_currency: CryptoAsset§
option_type: OkxOptionTypeTrait Implementations§
Source§impl Debug for OkxInstrumentExtra
impl Debug for OkxInstrumentExtra
Source§impl<'de> Deserialize<'de> for OkxInstrumentExtra
impl<'de> Deserialize<'de> for OkxInstrumentExtra
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 OkxInstrumentExtra
impl RefUnwindSafe for OkxInstrumentExtra
impl Send for OkxInstrumentExtra
impl Sync for OkxInstrumentExtra
impl Unpin for OkxInstrumentExtra
impl UnsafeUnpin for OkxInstrumentExtra
impl UnwindSafe for OkxInstrumentExtra
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