pub struct DydxMarketTradingUpdate {Show 19 fields
pub ticker: Option<String>,
pub status: Option<DydxMarketStatus>,
pub clob_pair_id: Option<String>,
pub atomic_resolution: Option<i32>,
pub quantum_conversion_exponent: Option<i32>,
pub step_base_quantums: Option<i32>,
pub subticks_per_tick: Option<i32>,
pub initial_margin_fraction: Option<String>,
pub maintenance_margin_fraction: Option<String>,
pub base_asset: Option<String>,
pub quote_asset: Option<String>,
pub open_interest: Option<String>,
pub price_change_24h: Option<String>,
pub volume_24h: Option<String>,
pub trades_24h: Option<u64>,
pub max_position_size: Option<String>,
pub incremental_position_size: Option<String>,
pub base_position_size: Option<String>,
pub next_funding_rate: Option<String>,
}Expand description
Trading data for a market from v4_markets channel.
This matches the TradingPerpetualMarket type from dYdX WebSocket docs.
All fields are optional since WebSocket may send partial updates.
Fields§
§ticker: Option<String>Market ticker (e.g., “BTC-USD”).
status: Option<DydxMarketStatus>Market status.
clob_pair_id: Option<String>CLOB pair ID.
atomic_resolution: Option<i32>Atomic resolution for quantization.
quantum_conversion_exponent: Option<i32>Quantum conversion exponent.
step_base_quantums: Option<i32>Step base quantums.
subticks_per_tick: Option<i32>Subticks per tick.
initial_margin_fraction: Option<String>Initial margin fraction.
maintenance_margin_fraction: Option<String>Maintenance margin fraction.
base_asset: Option<String>Base asset symbol.
quote_asset: Option<String>Quote asset symbol.
open_interest: Option<String>Open interest.
price_change_24h: Option<String>24-hour price change.
volume_24h: Option<String>24-hour volume.
trades_24h: Option<u64>24-hour trade count.
max_position_size: Option<String>Maximum position size.
incremental_position_size: Option<String>Incremental position size.
base_position_size: Option<String>Base position size.
next_funding_rate: Option<String>Next funding rate for the market.
Trait Implementations§
Source§impl Clone for DydxMarketTradingUpdate
impl Clone for DydxMarketTradingUpdate
Source§fn clone(&self) -> DydxMarketTradingUpdate
fn clone(&self) -> DydxMarketTradingUpdate
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 DydxMarketTradingUpdate
impl Debug for DydxMarketTradingUpdate
Source§impl<'de> Deserialize<'de> for DydxMarketTradingUpdate
impl<'de> Deserialize<'de> for DydxMarketTradingUpdate
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
Auto Trait Implementations§
impl Freeze for DydxMarketTradingUpdate
impl RefUnwindSafe for DydxMarketTradingUpdate
impl Send for DydxMarketTradingUpdate
impl Sync for DydxMarketTradingUpdate
impl Unpin for DydxMarketTradingUpdate
impl UnsafeUnpin for DydxMarketTradingUpdate
impl UnwindSafe for DydxMarketTradingUpdate
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
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>
Converts
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>
Converts
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].