#[non_exhaustive]pub struct ChartMeta {Show 22 fields
pub symbol: String,
pub currency: Option<String>,
pub exchange_name: Option<String>,
pub full_exchange_name: Option<String>,
pub instrument_type: Option<String>,
pub first_trade_date: Option<i64>,
pub regular_market_time: Option<i64>,
pub has_pre_post_market_data: Option<bool>,
pub gmt_offset: Option<i64>,
pub timezone: Option<String>,
pub exchange_timezone_name: Option<String>,
pub regular_market_price: Option<f64>,
pub fifty_two_week_high: Option<f64>,
pub fifty_two_week_low: Option<f64>,
pub regular_market_day_high: Option<f64>,
pub regular_market_day_low: Option<f64>,
pub regular_market_volume: Option<i64>,
pub chart_previous_close: Option<f64>,
pub previous_close: Option<f64>,
pub price_hint: Option<i32>,
pub data_granularity: Option<String>,
pub range: Option<String>,
}Expand description
Metadata for chart data
Note: This struct cannot be manually constructed - obtain via Ticker::chart().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringStock symbol
currency: Option<String>Currency
exchange_name: Option<String>Exchange name
full_exchange_name: Option<String>Full exchange name
instrument_type: Option<String>Instrument type
first_trade_date: Option<i64>First trade date (Unix timestamp)
regular_market_time: Option<i64>Regular market time (Unix timestamp)
has_pre_post_market_data: Option<bool>Has pre/post market data
gmt_offset: Option<i64>GMT offset
timezone: Option<String>Timezone
exchange_timezone_name: Option<String>Exchange timezone name
regular_market_price: Option<f64>Regular market price
fifty_two_week_high: Option<f64>Fifty two week high
fifty_two_week_low: Option<f64>Fifty two week low
regular_market_day_high: Option<f64>Regular market day high
regular_market_day_low: Option<f64>Regular market day low
regular_market_volume: Option<i64>Regular market volume
chart_previous_close: Option<f64>Chart previous close
previous_close: Option<f64>Previous close
price_hint: Option<i32>Price hint (decimal places)
data_granularity: Option<String>Data granularity
range: Option<String>Range
Implementations§
Source§impl ChartMeta
impl ChartMeta
Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Converts this struct to a single-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Sourcepub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
pub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
Converts a slice of structs to a multi-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChartMeta
impl<'de> Deserialize<'de> for ChartMeta
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>,
Auto Trait Implementations§
impl Freeze for ChartMeta
impl RefUnwindSafe for ChartMeta
impl Send for ChartMeta
impl Sync for ChartMeta
impl Unpin for ChartMeta
impl UnsafeUnpin for ChartMeta
impl UnwindSafe for ChartMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> ⓘ
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