pub enum PriceType {
Open,
High,
Low,
Close,
Typical,
Weighted,
Average,
Median,
}Expand description
Price type to extract from OHLCV data.
Variants§
Open
Open price
High
High price
Low
Low price
Close
Close price
Typical
Typical price: (High + Low + Close) / 3
Weighted
Weighted close: (High + Low + Close + Close) / 4
Average
Average price: (High + Low) / 2
Median
Median price: (High + Low) / 2 (same as Average)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceType
impl<'de> Deserialize<'de> for PriceType
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
impl Copy for PriceType
impl Eq for PriceType
impl StructuralPartialEq for PriceType
Auto Trait Implementations§
impl Freeze for PriceType
impl RefUnwindSafe for PriceType
impl Send for PriceType
impl Sync for PriceType
impl Unpin for PriceType
impl UnwindSafe for PriceType
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