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: f64§high: f64§low: f64§close: f64§volume: f64base volume
period: Stringm, minute; H, hour; D, day; W, week; M, month; Y, year
quote_volume: Option<f64>quote volume
Trait Implementations§
source§impl Debug for CandlestickMsg
impl Debug for CandlestickMsg
source§impl<'de> Deserialize<'de> for CandlestickMsg
impl<'de> Deserialize<'de> for CandlestickMsg
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 CandlestickMsg
impl RefUnwindSafe for CandlestickMsg
impl Send for CandlestickMsg
impl Sync for CandlestickMsg
impl Unpin for CandlestickMsg
impl UnwindSafe for CandlestickMsg
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