pub struct KrakenFuturesTickerData {Show 29 fields
pub feed: KrakenFuturesFeed,
pub product_id: Ustr,
pub time: Option<i64>,
pub bid: Option<f64>,
pub ask: Option<f64>,
pub bid_size: Option<f64>,
pub ask_size: Option<f64>,
pub last: Option<f64>,
pub volume: Option<f64>,
pub volume_quote: Option<f64>,
pub open_interest: Option<f64>,
pub index: Option<f64>,
pub mark_price: Option<f64>,
pub change: Option<f64>,
pub open: Option<f64>,
pub high: Option<f64>,
pub low: Option<f64>,
pub funding_rate: Option<f64>,
pub funding_rate_prediction: Option<f64>,
pub relative_funding_rate: Option<f64>,
pub relative_funding_rate_prediction: Option<f64>,
pub next_funding_rate_time: Option<f64>,
pub tag: Option<String>,
pub pair: Option<String>,
pub leverage: Option<String>,
pub dtm: Option<i64>,
pub maturity_time: Option<i64>,
pub suspended: Option<bool>,
pub post_only: Option<bool>,
}Expand description
Ticker data from Kraken Futures WebSocket (uses snake_case).
Fields§
§feed: KrakenFuturesFeed§product_id: Ustr§time: Option<i64>§bid: Option<f64>§ask: Option<f64>§bid_size: Option<f64>§ask_size: Option<f64>§last: Option<f64>§volume: Option<f64>§volume_quote: Option<f64>§open_interest: Option<f64>§index: Option<f64>§mark_price: Option<f64>§change: Option<f64>§open: Option<f64>§high: Option<f64>§low: Option<f64>§funding_rate: Option<f64>§funding_rate_prediction: Option<f64>§relative_funding_rate: Option<f64>§relative_funding_rate_prediction: Option<f64>§next_funding_rate_time: Option<f64>§tag: Option<String>§pair: Option<String>§leverage: Option<String>§dtm: Option<i64>§maturity_time: Option<i64>§suspended: Option<bool>§post_only: Option<bool>Trait Implementations§
Source§impl Clone for KrakenFuturesTickerData
impl Clone for KrakenFuturesTickerData
Source§fn clone(&self) -> KrakenFuturesTickerData
fn clone(&self) -> KrakenFuturesTickerData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KrakenFuturesTickerData
impl Debug for KrakenFuturesTickerData
Source§impl<'de> Deserialize<'de> for KrakenFuturesTickerData
impl<'de> Deserialize<'de> for KrakenFuturesTickerData
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 KrakenFuturesTickerData
impl RefUnwindSafe for KrakenFuturesTickerData
impl Send for KrakenFuturesTickerData
impl Sync for KrakenFuturesTickerData
impl Unpin for KrakenFuturesTickerData
impl UnwindSafe for KrakenFuturesTickerData
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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