Struct crypto_message::CandlestickMsg
source · pub struct CandlestickMsg {Show 15 fields
pub exchange: String,
pub market_type: MarketType,
pub symbol: String,
pub pair: String,
pub msg_type: MessageType,
pub timestamp: i64,
pub json: String,
pub begin_time: i64,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
pub period: String,
pub quote_volume: Option<f64>,
}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
begin_time: i64Begin time of the candle cycle, in seconds
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 Debug for CandlestickMsg
impl Debug for CandlestickMsg
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 Serialize for CandlestickMsg
impl Serialize 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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