Struct ib_client::models::history_data::HistoryData[][src]

pub struct HistoryData {
    pub symbol: Option<String>,
    pub text: Option<String>,
    pub price_factor: Option<i32>,
    pub start_time: Option<String>,
    pub high: Option<String>,
    pub low: Option<String>,
    pub time_period: Option<String>,
    pub bar_length: Option<i32>,
    pub md_availability: Option<String>,
    pub mkt_data_delay: Option<i32>,
    pub outside_rth: Option<bool>,
    pub trading_day_duration: Option<i32>,
    pub volume_factor: Option<i32>,
    pub price_display_rule: Option<i32>,
    pub price_display_value: Option<String>,
    pub negative_capable: Option<bool>,
    pub message_version: Option<i32>,
    pub data: Option<Vec<HistoryDataData>>,
    pub points: Option<i32>,
    pub travel_time: Option<i32>,
}

Fields

symbol: Option<String>

Underlying Symbol of the corresponding contract

text: Option<String>

companyName of the corresponding contract

price_factor: Option<i32>

priceFactor is price increment obtained from display rule

start_time: Option<String>

start date time in the format YYYYMMDD-HH:mm:ss

high: Option<String>

High value during this time series with format %h/%v/%t. %h is the high price (scaled by priceFactor), %v is volume (volume factor will always be 100 (reported volume = actual volume/100)) and %t is minutes from start time of the chart

low: Option<String>

Low value during this time series with format %l/%v/%t. %l is the low price (scaled by priceFactor), %v is volume (volume factor will always be 100 (reported volume = actual volume/100)) and %t is minutes from start time of the chart

time_period: Option<String>

The duration for the historical data request

bar_length: Option<i32>

The number of seconds in a bar

md_availability: Option<String>

Market Data Availability. The field may contain two chars. The first char is the primary code: S = Streaming, R = Realtime, D = Delayed, Z = Frozen, Y = Frozen Delayed. The second char is the secondary code: P = Snapshot Available, p = Consolidated.

mkt_data_delay: Option<i32>

The time it takes, in milliseconds, to process the historical data request

outside_rth: Option<bool>

The historical data returned includes outside of regular trading hours

trading_day_duration: Option<i32>

The number of seconds in the trading day

volume_factor: Option<i32>price_display_rule: Option<i32>price_display_value: Option<String>negative_capable: Option<bool>message_version: Option<i32>data: Option<Vec<HistoryDataData>>points: Option<i32>

total number of points

travel_time: Option<i32>

Implementations

impl HistoryData[src]

pub fn new() -> HistoryData[src]

Trait Implementations

impl Clone for HistoryData[src]

impl Debug for HistoryData[src]

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

impl PartialEq<HistoryData> for HistoryData[src]

impl Serialize for HistoryData[src]

impl StructuralPartialEq for HistoryData[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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, 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.