pub struct DeribitInstrument {Show 27 fields
pub base_currency: Ustr,
pub block_trade_commission: Option<f64>,
pub block_trade_min_trade_amount: Option<f64>,
pub block_trade_tick_size: Option<f64>,
pub contract_size: f64,
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: DeribitInstrumentKind,
pub maker_commission: f64,
pub max_leverage: Option<i64>,
pub max_liquidation_commission: Option<f64>,
pub min_trade_amount: f64,
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<f64>,
pub taker_commission: f64,
pub tick_size: f64,
pub tick_size_steps: Option<Vec<DeribitTickSizeStep>>,
}Expand description
Deribit instrument definition.
Fields§
§base_currency: UstrThe underlying currency being traded
block_trade_commission: Option<f64>Block trade commission for instrument
block_trade_min_trade_amount: Option<f64>Minimum amount for block trading
block_trade_tick_size: Option<f64>Specifies minimal price change for block trading
contract_size: f64Contract 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: DeribitInstrumentKindInstrument kind: “future”, “option”, “spot”, “future_combo”, “option_combo”
maker_commission: f64Maker commission for instrument
max_leverage: Option<i64>Maximal leverage for instrument (only for futures)
max_liquidation_commission: Option<f64>Maximal liquidation trade commission for instrument (only for futures)
min_trade_amount: f64Minimum 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<f64>The strike value (only for options)
taker_commission: f64Taker commission for instrument
tick_size: f64Specifies 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§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 UnwindSafe for DeribitInstrument
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§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