pub struct OKXCandleMsg {
pub ts: u64,
pub o: String,
pub h: String,
pub l: String,
pub c: String,
pub vol: String,
pub vol_ccy: String,
pub vol_ccy_quote: String,
pub confirm: OKXCandleConfirm,
}Expand description
Candlestick data for an instrument.
Fields§
§ts: u64Candlestick timestamp, Unix timestamp format in milliseconds.
o: StringOpening price.
h: StringHighest price.
l: StringLowest price.
c: StringClosing price.
vol: StringTrading volume in contracts.
vol_ccy: StringTrading volume in quote currency.
vol_ccy_quote: String§confirm: OKXCandleConfirmWhether this is a completed candle.
Trait Implementations§
Source§impl Debug for OKXCandleMsg
impl Debug for OKXCandleMsg
Source§impl<'de> Deserialize<'de> for OKXCandleMsg
impl<'de> Deserialize<'de> for OKXCandleMsg
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 OKXCandleMsg
impl RefUnwindSafe for OKXCandleMsg
impl Send for OKXCandleMsg
impl Sync for OKXCandleMsg
impl Unpin for OKXCandleMsg
impl UnwindSafe for OKXCandleMsg
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
§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