pub struct Instrument {Show 28 fields
pub base_currency: InstrumentBaseCurrency,
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<InstrumentCounterCurrency>,
pub creation_timestamp: i64,
pub expiration_timestamp: i64,
pub future_type: Option<InstrumentFutureType>,
pub instrument_id: Option<i64>,
pub instrument_name: String,
pub instrument_type: Option<String>,
pub is_active: bool,
pub kind: Kind,
pub maker_commission: Option<f64>,
pub max_leverage: Option<i64>,
pub max_liquidation_commission: Option<f64>,
pub min_trade_amount: f64,
pub option_type: Option<InstrumentOptionType>,
pub price_index: String,
pub quote_currency: InstrumentQuoteCurrency,
pub rfq: bool,
pub settlement_currency: Option<InstrumentSettlementCurrency>,
pub settlement_period: InstrumentSettlementPeriod,
pub strike: Option<f64>,
pub taker_commission: Option<f64>,
pub tick_size: f64,
pub tick_size_steps: Option<Vec<TickSizeStep>>,
}Fields§
§base_currency: InstrumentBaseCurrency§block_trade_commission: Option<f64>§block_trade_min_trade_amount: Option<f64>§block_trade_tick_size: Option<f64>§contract_size: f64§counter_currency: Option<InstrumentCounterCurrency>§creation_timestamp: i64§expiration_timestamp: i64§future_type: Option<InstrumentFutureType>§instrument_id: Option<i64>§instrument_name: String§instrument_type: Option<String>§is_active: bool§kind: Kind§maker_commission: Option<f64>§max_leverage: Option<i64>§max_liquidation_commission: Option<f64>§min_trade_amount: f64§option_type: Option<InstrumentOptionType>§price_index: String§quote_currency: InstrumentQuoteCurrency§rfq: bool§settlement_currency: Option<InstrumentSettlementCurrency>§settlement_period: InstrumentSettlementPeriod§strike: Option<f64>§taker_commission: Option<f64>§tick_size: f64§tick_size_steps: Option<Vec<TickSizeStep>>Trait Implementations§
Source§impl Clone for Instrument
impl Clone for Instrument
Source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instrument
impl Debug for Instrument
Source§impl Default for Instrument
impl Default for Instrument
Source§fn default() -> Instrument
fn default() -> Instrument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Instrument
impl<'de> Deserialize<'de> for Instrument
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
Source§impl PartialEq for Instrument
impl PartialEq for Instrument
Source§impl Serialize for Instrument
impl Serialize for Instrument
impl StructuralPartialEq for Instrument
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnwindSafe for Instrument
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