Struct crypto_message::CandlestickMsg
source · [−]pub struct CandlestickMsg {}Fields
exchange: StringThe exchange name, unique for each exchage
market_type: MarketTypeMarket type
symbol: StringExchange-specific trading symbol or id, recognized by RESTful API
pair: StringUnified pair, base/quote, e.g., BTC/USDT
msg_type: MessageTypeMessage type
timestamp: i64Unix timestamp, in milliseconds
json: Stringthe original JSON message
open: f64high: f64low: f64close: f64volume: f64base volume
period: Stringm, minute; H, hour; D, day; W, week; M, month; Y, year
quote_volume: Option<f64>quote volume
Trait Implementations
sourceimpl<'de> Deserialize<'de> for CandlestickMsg
impl<'de> Deserialize<'de> for CandlestickMsg
sourcefn 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
sourceimpl Ord for CandlestickMsg
impl Ord for CandlestickMsg
sourceimpl PartialEq<CandlestickMsg> for CandlestickMsg
impl PartialEq<CandlestickMsg> for CandlestickMsg
sourceimpl PartialOrd<CandlestickMsg> for CandlestickMsg
impl PartialOrd<CandlestickMsg> for CandlestickMsg
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for CandlestickMsg
impl Serialize for CandlestickMsg
impl Eq for CandlestickMsg
Auto Trait Implementations
impl RefUnwindSafe for CandlestickMsg
impl Send for CandlestickMsg
impl Sync for CandlestickMsg
impl Unpin for CandlestickMsg
impl UnwindSafe for CandlestickMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more