pub struct AxInstrument {Show 21 fields
pub symbol: Ustr,
pub state: AxInstrumentState,
pub multiplier: Decimal,
pub minimum_order_size: Decimal,
pub tick_size: Decimal,
pub quote_currency: Ustr,
pub finding_settlement_currency: Ustr,
pub maintenance_margin_pct: Decimal,
pub initial_margin_pct: Decimal,
pub contract_mark_price: Option<Decimal>,
pub contract_size: Option<Decimal>,
pub description: Option<String>,
pub funding_calendar_schedule: Option<String>,
pub funding_frequency: Option<String>,
pub funding_rate_cap_lower_pct: Option<Decimal>,
pub funding_rate_cap_upper_pct: Option<Decimal>,
pub price_band_lower_deviation_pct: Option<Decimal>,
pub price_band_upper_deviation_pct: Option<Decimal>,
pub price_bands: Option<String>,
pub price_quotation: Option<String>,
pub underlying_benchmark_price: Option<Decimal>,
}Expand description
Individual instrument definition.
§References
Fields§
§symbol: UstrTrading symbol for the instrument.
state: AxInstrumentStateCurrent trading state of the instrument (defaults to Open if not provided).
multiplier: DecimalContract multiplier.
minimum_order_size: DecimalMinimum order size.
tick_size: DecimalPrice tick size.
quote_currency: UstrQuote currency symbol.
finding_settlement_currency: UstrFunding settlement currency.
maintenance_margin_pct: DecimalMaintenance margin percentage.
initial_margin_pct: DecimalInitial margin percentage.
contract_mark_price: Option<Decimal>Current mark price for the contract (optional).
contract_size: Option<Decimal>Contract size (optional).
description: Option<String>Instrument description (optional).
funding_calendar_schedule: Option<String>Funding calendar schedule (optional).
funding_frequency: Option<String>Funding frequency (optional).
funding_rate_cap_lower_pct: Option<Decimal>Lower cap for funding rate percentage (optional).
funding_rate_cap_upper_pct: Option<Decimal>Upper cap for funding rate percentage (optional).
price_band_lower_deviation_pct: Option<Decimal>Lower deviation percentage for price bands (optional).
price_band_upper_deviation_pct: Option<Decimal>Upper deviation percentage for price bands (optional).
price_bands: Option<String>Price bands configuration (optional).
price_quotation: Option<String>Price quotation format (optional).
underlying_benchmark_price: Option<Decimal>Underlying benchmark price (optional).
Trait Implementations§
Source§impl Clone for AxInstrument
impl Clone for AxInstrument
Source§fn clone(&self) -> AxInstrument
fn clone(&self) -> AxInstrument
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AxInstrument
impl Debug for AxInstrument
Source§impl<'de> Deserialize<'de> for AxInstrument
impl<'de> Deserialize<'de> for AxInstrument
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 AxInstrument
impl RefUnwindSafe for AxInstrument
impl Send for AxInstrument
impl Sync for AxInstrument
impl Unpin for AxInstrument
impl UnwindSafe for AxInstrument
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