pub struct Ohlcv {
pub market_id_exchange: Option<Ustr>,
pub price_open: Option<Decimal>,
pub price_high: Option<Decimal>,
pub price_low: Option<Decimal>,
pub price_close: Option<Decimal>,
pub volume_traded: Decimal,
pub trades_count: i64,
pub time_period_start: Timestamp,
pub time_period_end: Timestamp,
pub time_open: Option<Timestamp>,
pub time_close: Option<Timestamp>,
}Expand description
A bar with nullable prices, exact aggregate volume, and an optional raw market identifier.
Exchange-wide history supplies market_id_exchange; per-market responses can omit it.
Fields§
§market_id_exchange: Option<Ustr>Raw outcome identifier; exchange-wide history can include unknown or missing IDs.
price_open: Option<Decimal>Opening price; absent or null values remain None.
price_high: Option<Decimal>Highest price; absent or null values remain None.
price_low: Option<Decimal>Lowest price; absent or null values remain None.
price_close: Option<Decimal>Closing price; absent or null values remain None.
volume_traded: DecimalProvider aggregate volume, decoded without floating-point conversion.
trades_count: i64Provider-reported trade count.
time_period_start: TimestampPeriod start timestamp.
time_period_end: TimestampPeriod end timestamp, used for both native bar timestamps.
time_open: Option<Timestamp>Provider timestamp of the opening observation, when supplied.
time_close: Option<Timestamp>Provider timestamp of the closing observation, when supplied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ohlcv
impl<'de> Deserialize<'de> for Ohlcv
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>,
impl Eq for Ohlcv
Source§impl From<Ohlcv> for PyFinFeedOhlcv
impl From<Ohlcv> for PyFinFeedOhlcv
impl StructuralPartialEq for Ohlcv
Auto Trait Implementations§
impl Freeze for Ohlcv
impl RefUnwindSafe for Ohlcv
impl Send for Ohlcv
impl Sync for Ohlcv
impl Unpin for Ohlcv
impl UnsafeUnpin for Ohlcv
impl UnwindSafe for Ohlcv
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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