[][src]Struct twsapi::core::common::BarData

pub struct BarData {
    pub date: String,
    pub open: f64,
    pub high: f64,
    pub low: f64,
    pub close: f64,
    pub volume: i64,
    pub bar_count: i32,
    pub average: f64,
}

date - the bar's date and time (either as a yyyymmss hh:mm:ssformatted string or as system time according to the request) open - the bar's open point high - the bar's high point low - the bar's low point close - the bar's closing point volume - the bar's traded volume if available count - the number of trades during the bar's timespan (only available for TRADES). bar_count - running count of the bars received for this request average - average price of the bar

Fields

date: Stringopen: f64high: f64low: f64close: f64volume: i64bar_count: i32average: f64

Implementations

impl BarData[src]

pub fn new(
    date: String,
    open: f64,
    high: f64,
    low: f64,
    close: f64,
    volume: i64,
    bar_count: i32,
    average: f64
) -> Self
[src]

Trait Implementations

impl Clone for BarData[src]

impl Debug for BarData[src]

impl Default for BarData[src]

impl<'de> Deserialize<'de> for BarData[src]

impl Display for BarData[src]

impl Serialize for BarData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any