pub struct DeribitInstrument {Show 27 fields
pub base_currency: Ustr,
pub block_trade_commission: Option<Decimal>,
pub block_trade_min_trade_amount: Option<Decimal>,
pub block_trade_tick_size: Option<Decimal>,
pub contract_size: Decimal,
pub counter_currency: Option<Ustr>,
pub creation_timestamp: i64,
pub expiration_timestamp: Option<i64>,
pub future_type: Option<String>,
pub instrument_id: i64,
pub instrument_name: Ustr,
pub instrument_type: Option<String>,
pub is_active: bool,
pub kind: DeribitProductType,
pub maker_commission: Decimal,
pub max_leverage: Option<i64>,
pub max_liquidation_commission: Option<Decimal>,
pub min_trade_amount: Decimal,
pub option_type: Option<DeribitOptionType>,
pub price_index: Option<String>,
pub quote_currency: Ustr,
pub settlement_currency: Option<Ustr>,
pub settlement_period: Option<String>,
pub strike: Option<Decimal>,
pub taker_commission: Decimal,
pub tick_size: Decimal,
pub tick_size_steps: Option<Vec<DeribitTickSizeStep>>,
}Expand description
Deribit instrument definition.
Fields§
§base_currency: UstrThe underlying currency being traded
block_trade_commission: Option<Decimal>Block trade commission for instrument
block_trade_min_trade_amount: Option<Decimal>Minimum amount for block trading
block_trade_tick_size: Option<Decimal>Specifies minimal price change for block trading
contract_size: DecimalContract size for instrument
counter_currency: Option<Ustr>Counter currency for the instrument
creation_timestamp: i64The time when the instrument was first created (milliseconds since UNIX epoch)
expiration_timestamp: Option<i64>The time when the instrument will expire (milliseconds since UNIX epoch)
future_type: Option<String>Future type (deprecated, use instrument_type instead)
instrument_id: i64Instrument ID
instrument_name: UstrUnique instrument identifier (e.g., “BTC-PERPETUAL”)
instrument_type: Option<String>Type of the instrument: “linear” or “reversed”
is_active: boolIndicates if the instrument can currently be traded
kind: DeribitProductTypeProduct type: “future”, “option”, “spot”, “future_combo”, “option_combo”
maker_commission: DecimalMaker commission for instrument
max_leverage: Option<i64>Maximal leverage for instrument (only for futures)
max_liquidation_commission: Option<Decimal>Maximal liquidation trade commission for instrument (only for futures)
min_trade_amount: DecimalMinimum amount for trading
option_type: Option<DeribitOptionType>The option type (only for options)
price_index: Option<String>Name of price index that is used for this instrument
quote_currency: UstrThe currency in which the instrument prices are quoted
settlement_currency: Option<Ustr>Settlement currency for the instrument (not present for spot)
settlement_period: Option<String>The settlement period (not present for spot)
strike: Option<Decimal>The strike value (only for options)
taker_commission: DecimalTaker commission for instrument
tick_size: DecimalSpecifies minimal price change and number of decimal places for instrument prices
tick_size_steps: Option<Vec<DeribitTickSizeStep>>Tick size steps for different price ranges
Trait Implementations§
Source§impl Clone for DeribitInstrument
impl Clone for DeribitInstrument
Source§fn clone(&self) -> DeribitInstrument
fn clone(&self) -> DeribitInstrument
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeribitInstrument
impl Debug for DeribitInstrument
Source§impl<'de> Deserialize<'de> for DeribitInstrument
impl<'de> Deserialize<'de> for DeribitInstrument
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>,
Auto Trait Implementations§
impl Freeze for DeribitInstrument
impl RefUnwindSafe for DeribitInstrument
impl Send for DeribitInstrument
impl Sync for DeribitInstrument
impl Unpin for DeribitInstrument
impl UnsafeUnpin for DeribitInstrument
impl UnwindSafe for DeribitInstrument
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<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