pub struct CandleV1 {Show 20 fields
pub time: DateTime<Utc>,
pub open: Decimal,
pub high: Decimal,
pub low: Decimal,
pub close: Decimal,
pub volume: Decimal,
pub buy_volume: Decimal,
pub sell_volume: Decimal,
pub mid_open: Option<Decimal>,
pub mid_close: Option<Decimal>,
pub mid_high: Option<Decimal>,
pub mid_low: Option<Decimal>,
pub bid_open: Option<Decimal>,
pub bid_close: Option<Decimal>,
pub bid_high: Option<Decimal>,
pub bid_low: Option<Decimal>,
pub ask_open: Option<Decimal>,
pub ask_close: Option<Decimal>,
pub ask_high: Option<Decimal>,
pub ask_low: Option<Decimal>,
}Expand description
NB: buy_volume + sell_volume <> volume; volume may count trades that don’t have a discernible direction.
Fields§
§time: DateTime<Utc>§open: Decimal§high: Decimal§low: Decimal§close: Decimal§volume: Decimal§buy_volume: Decimal§sell_volume: Decimal§mid_open: Option<Decimal>§mid_close: Option<Decimal>§mid_high: Option<Decimal>§mid_low: Option<Decimal>§bid_open: Option<Decimal>§bid_close: Option<Decimal>§bid_high: Option<Decimal>§bid_low: Option<Decimal>§ask_open: Option<Decimal>§ask_close: Option<Decimal>§ask_high: Option<Decimal>§ask_low: Option<Decimal>Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for CandleV1
impl<'de> Deserialize<'de> for CandleV1
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 Ord for CandleV1
impl Ord for CandleV1
source§impl PartialOrd for CandleV1
impl PartialOrd for CandleV1
impl Copy for CandleV1
impl Eq for CandleV1
impl StructuralPartialEq for CandleV1
Auto Trait Implementations§
impl Freeze for CandleV1
impl RefUnwindSafe for CandleV1
impl Send for CandleV1
impl Sync for CandleV1
impl Unpin for CandleV1
impl UnwindSafe for CandleV1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.