Struct ActiveSymbolItem

Source
pub struct ActiveSymbolItem {
Show 22 fields pub allow_forward_starting: Option<AllowForwardStarting>, pub delay_amount: Option<i64>, pub display_name: String, pub display_order: i64, pub exchange_is_open: ExchangeIsOpen, pub exchange_name: Option<String>, pub intraday_interval_minutes: Option<i64>, pub is_trading_suspended: IsTradingSuspended, pub market: String, pub market_display_name: String, pub pip: String, pub quoted_currency_symbol: Option<String>, pub spot: Option<String>, pub spot_age: Option<String>, pub spot_percentage_change: Option<String>, pub spot_time: Option<String>, pub subgroup: String, pub subgroup_display_name: String, pub submarket: String, pub submarket_display_name: String, pub symbol: String, pub symbol_type: String,
}
Expand description

The information about each symbol.

Fields§

§allow_forward_starting: Option<AllowForwardStarting>

1 if the symbol is tradable in a forward starting contract, 0 if not.\n

§delay_amount: Option<i64>

Amount the data feed is delayed (in minutes) due to Exchange licensing requirements. Only returned on full active symbols call.\n

§display_name: String

Display name.\n

§display_order: i64

Display order.\n

§exchange_is_open: ExchangeIsOpen

1 if market is currently open, 0 if closed.\n

§exchange_name: Option<String>

Exchange name (for underlyings listed on a Stock Exchange). Only returned on full active symbols call.\n

§intraday_interval_minutes: Option<i64>

Intraday interval minutes. Only returned on full active symbols call.\n

§is_trading_suspended: IsTradingSuspended

1 indicates that trading is currently suspended, 0 if not.\n

§market: String

Market category (forex, indices, etc).\n

§market_display_name: String

Translated market name.\n

§pip: String

Pip size (i.e. minimum fluctuation amount).\n

§quoted_currency_symbol: Option<String>

For stock indices, the underlying currency for that instrument. Only returned on full active symbols call.\n

§spot: Option<String>

Latest spot price of the underlying. Only returned on full active symbols call.\n

§spot_age: Option<String>

Number of seconds elapsed since the last spot price. Only returned on full active symbols call.\n

§spot_percentage_change: Option<String>

Daily percentage for a symbol. Only returned on ‘full’ active symbols call.\n

§spot_time: Option<String>

Latest spot epoch time. Only returned on full active symbols call.\n

§subgroup: String

Subgroup name.\n

§subgroup_display_name: String

Translated subgroup name.\n

§submarket: String

Submarket name.\n

§submarket_display_name: String

Translated submarket name.\n

§symbol: String

The symbol code for this underlying.\n

§symbol_type: String

Symbol type (forex, commodities, etc).\n

Trait Implementations§

Source§

impl Clone for ActiveSymbolItem

Source§

fn clone(&self) -> ActiveSymbolItem

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 ActiveSymbolItem

Source§

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

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

impl<'de> Deserialize<'de> for ActiveSymbolItem

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 Serialize for ActiveSymbolItem

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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, 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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,