Skip to main content

IserverHistoryLastResponse

Struct IserverHistoryLastResponse 

Source
pub struct IserverHistoryLastResponse {
Show 23 fields pub bar_length: Option<i32>, pub chart_pan_start_time: Option<String>, pub data: Option<Vec<SingleHistoricalBarLast>>, pub direction: Option<i32>, pub high: Option<String>, pub low: Option<String>, pub md_availability: Option<String>, pub message_version: Option<i32>, pub mkt_data_delay: Option<i32>, pub negative_capable: Option<bool>, pub outside_rth: Option<bool>, pub points: Option<i32>, pub price_display_rule: Option<i32>, pub price_display_value: Option<String>, pub price_factor: Option<i32>, pub server_id: Option<String>, pub start_time: Option<String>, pub symbol: Option<String>, pub text: Option<String>, pub time_period: Option<String>, pub trading_day_duration: Option<i32>, pub travel_time: Option<i32>, pub volume_factor: Option<i32>,
}
Expand description

Object containing the requested historical data and related metadata.

Fields§

§bar_length: Option<i32>

The client-specified bar width, represented in seconds.

§chart_pan_start_time: Option<String>

Internal use. UTC datetime string used to center Client Portal charts. Format YYYYMMDD-hh:mm:ss.

§data: Option<Vec<SingleHistoricalBarLast>>

Array containing OHLC bars for the requested period.

§direction: Option<i32>

Indicates how the period is applied in relation to the startTime. Value will always be -1, indicating that the period extends from the startTime forward into the future.

§high: Option<String>

Internal use. Delivers highest price value in total interval. Used for chart scaling. A string constructed as ‘highestPricepriceFactor/totalVolumevolumeFactor/minutesFromStartTime’.

§low: Option<String>

Internal use. Delivers lowest price value in total interval. Used for chart scaling. A string constructed as ‘lowestPricepriceFactor/totalVolumevolumeFactor/minutesFromStartTime’.

§md_availability: Option<String>

A three-character string reflecting the nature of available data. R = Realtime, D = Delayed, Z = Frozen, Y = Frozen Delayed, N = Not Subscribed. P = Snapshot, p = Consolidated. B = Top of book.

§message_version: Option<i32>

Internal use. Reflects the version of the response schema used.

§mkt_data_delay: Option<i32>

Number of milliseconds taken to satisfy this historical data request.

§negative_capable: Option<bool>

Indicates whether instrument is capable of negative pricing.

§outside_rth: Option<bool>

Indicates whether data from outside regular trading hours is included in the response.

§points: Option<i32>

Count of the number of bars returned in the data array.

§price_display_rule: Option<i32>

Internal use. Governs application of pricing display rule.

§price_display_value: Option<String>

Internal use. Governs rendering of displayed pricing.

§price_factor: Option<i32>

Internal use. Used to scale Client Portal chart Y-axis.

§server_id: Option<String>

Internal use. Identifier of the request.

§start_time: Option<String>

UTC date and time of the start (chronologically earlier) of the complete period in format YYYYMMDD-hh:mm:ss.

§symbol: Option<String>

Symbol of the request instrument.

§text: Option<String>

Description or company name of the instrument.

§time_period: Option<String>

The client-specified period value.

§trading_day_duration: Option<i32>

Length of instrument’s trading day in seconds.

§travel_time: Option<i32>

Internal time in flight to serve the request.

§volume_factor: Option<i32>

Internal use. Used to scale volume histograms.

Trait Implementations§

Source§

impl Clone for IserverHistoryLastResponse

Source§

fn clone(&self) -> IserverHistoryLastResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IserverHistoryLastResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IserverHistoryLastResponse

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for IserverHistoryLastResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for IserverHistoryLastResponse

Source§

fn eq(&self, other: &IserverHistoryLastResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for IserverHistoryLastResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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