pub struct Candlestick {
pub time: Option<Timestamp>,
pub bid: Option<CandlestickData>,
pub ask: Option<CandlestickData>,
pub mid: Option<CandlestickData>,
pub volume: Option<i64>,
pub complete: Option<bool>,
}Expand description
The Candlestick representation
Fields§
§time: Option<Timestamp>The start time of the candlestick
bid: Option<CandlestickData>The candlestick data based on bids. Only provided if bid-based candles were requested.
ask: Option<CandlestickData>The candlestick data based on asks. Only provided if ask-based candles were requested.
mid: Option<CandlestickData>The candlestick data based on midpoints. Only provided if midpoint-based candles were requested.
volume: Option<i64>The number of prices created during the time-range represented by the candlestick.
complete: Option<bool>A flag indicating if the candlestick is complete. A complete candlestick is one whose ending time is not in the future.
Trait Implementations§
Source§impl Clone for Candlestick
impl Clone for Candlestick
Source§impl Debug for Candlestick
impl Debug for Candlestick
Source§impl<'de> Deserialize<'de> for Candlestick
impl<'de> Deserialize<'de> for Candlestick
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
Source§impl PartialEq for Candlestick
impl PartialEq for Candlestick
Source§impl Serialize for Candlestick
impl Serialize for Candlestick
impl StructuralPartialEq for Candlestick
Auto Trait Implementations§
impl Freeze for Candlestick
impl RefUnwindSafe for Candlestick
impl Send for Candlestick
impl Sync for Candlestick
impl Unpin for Candlestick
impl UnsafeUnpin for Candlestick
impl UnwindSafe for Candlestick
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