pub struct DydxCandle {Show 13 fields
pub base_token_volume: String,
pub close: String,
pub high: String,
pub low: String,
pub open: String,
pub resolution: String,
pub started_at: DateTime<Utc>,
pub starting_open_interest: String,
pub ticker: String,
pub trades: i64,
pub usd_volume: String,
pub orderbook_mid_price_close: Option<String>,
pub orderbook_mid_price_open: Option<String>,
}Expand description
Candle/bar data from v4_candles channel.
Fields§
§base_token_volume: StringBase token volume.
close: StringClose price.
high: StringHigh price.
low: StringLow price.
open: StringOpen price.
resolution: StringResolution/timeframe.
started_at: DateTime<Utc>Start time.
starting_open_interest: StringStarting open interest.
ticker: StringMarket ticker.
trades: i64Number of trades.
usd_volume: StringUSD volume.
orderbook_mid_price_close: Option<String>Orderbook mid price at close (optional).
orderbook_mid_price_open: Option<String>Orderbook mid price at open (optional).
Trait Implementations§
Source§impl Clone for DydxCandle
impl Clone for DydxCandle
Source§fn clone(&self) -> DydxCandle
fn clone(&self) -> DydxCandle
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 DydxCandle
impl Debug for DydxCandle
Source§impl<'de> Deserialize<'de> for DydxCandle
impl<'de> Deserialize<'de> for DydxCandle
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 DydxCandle
impl RefUnwindSafe for DydxCandle
impl Send for DydxCandle
impl Sync for DydxCandle
impl Unpin for DydxCandle
impl UnwindSafe for DydxCandle
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<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].§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].