pub struct DeriveTicker {Show 30 fields
pub amount_step: Decimal,
pub base_asset_address: Ustr,
pub base_asset_sub_id: Ustr,
pub base_currency: Ustr,
pub base_fee: Decimal,
pub best_ask_amount: Decimal,
pub best_ask_price: Decimal,
pub best_bid_amount: Decimal,
pub best_bid_price: Decimal,
pub index_price: Decimal,
pub instrument_name: Ustr,
pub instrument_type: DeriveInstrumentType,
pub is_active: bool,
pub maker_fee_rate: Decimal,
pub mark_price: Decimal,
pub mark_price_fee_rate_cap: Option<Decimal>,
pub max_price: Decimal,
pub maximum_amount: Decimal,
pub min_price: Decimal,
pub minimum_amount: Decimal,
pub option_details: Option<DeriveOptionPublicDetails>,
pub option_pricing: Option<DeriveOptionPricing>,
pub perp_details: Option<DerivePerpPublicDetails>,
pub quote_currency: Ustr,
pub scheduled_activation: i64,
pub scheduled_deactivation: i64,
pub stats: Option<DeriveAggregateTradingStats>,
pub taker_fee_rate: Decimal,
pub tick_size: Decimal,
pub timestamp: i64,
}Expand description
Legacy full ticker snapshot pushed on the deprecated WS
ticker.{instrument_name}.{interval} channel.
Fields§
§amount_step: DecimalMinimum order amount increment.
base_asset_address: UstrOn-chain address of the base asset.
base_asset_sub_id: UstrSub-id of the base asset within the asset module (decimal string).
base_currency: UstrUnderlying currency.
base_fee: DecimalBase flat fee in USD.
best_ask_amount: DecimalBest ask amount.
best_ask_price: DecimalBest ask price.
best_bid_amount: DecimalBest bid amount.
best_bid_price: DecimalBest bid price.
index_price: DecimalCurrent oracle index price for the underlying.
instrument_name: UstrInstrument identifier.
instrument_type: DeriveInstrumentTypeInstrument category.
is_active: boolWhether the instrument is currently tradable.
maker_fee_rate: DecimalMaker fee rate.
mark_price: DecimalCurrent mark price.
mark_price_fee_rate_cap: Option<Decimal>Optional fee-rate cap derived from mark price.
max_price: DecimalMaximum allowed price.
maximum_amount: DecimalMaximum order amount.
min_price: DecimalMinimum allowed price.
minimum_amount: DecimalMinimum order amount.
option_details: Option<DeriveOptionPublicDetails>Option-specific reference data.
option_pricing: Option<DeriveOptionPricing>Option pricing greeks (options only).
perp_details: Option<DerivePerpPublicDetails>Perp-specific reference data.
quote_currency: UstrQuote currency.
scheduled_activation: i64Scheduled activation timestamp (UNIX ms).
scheduled_deactivation: i64Scheduled deactivation timestamp (UNIX ms).
stats: Option<DeriveAggregateTradingStats>24-hour rolling statistics. Populated by the WebSocket ticker channel.
taker_fee_rate: DecimalTaker fee rate.
tick_size: DecimalMinimum price increment.
timestamp: i64Ticker timestamp (UNIX ms).
Trait Implementations§
Source§impl Clone for DeriveTicker
impl Clone for DeriveTicker
Source§fn clone(&self) -> DeriveTicker
fn clone(&self) -> DeriveTicker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeriveTicker
impl Debug for DeriveTicker
Source§impl<'de> Deserialize<'de> for DeriveTicker
impl<'de> Deserialize<'de> for DeriveTicker
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 DeriveTicker
impl RefUnwindSafe for DeriveTicker
impl Send for DeriveTicker
impl Sync for DeriveTicker
impl Unpin for DeriveTicker
impl UnsafeUnpin for DeriveTicker
impl UnwindSafe for DeriveTicker
Blanket Implementations§
impl<T> Allocation for T
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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