PriceFields

Struct PriceFields 

Source
pub struct PriceFields {
Show 90 fields pub mid_open: Option<f64>, pub high: Option<f64>, pub low: Option<f64>, pub bid: Option<f64>, pub offer: Option<f64>, pub change: Option<f64>, pub change_pct: Option<f64>, pub market_delay: Option<f64>, pub market_state: Option<String>, pub update_time: Option<String>, pub bid_quote_id: Option<String>, pub ask_quote_id: Option<String>, pub bid_price1: Option<f64>, pub bid_price2: Option<f64>, pub bid_price3: Option<f64>, pub bid_price4: Option<f64>, pub bid_price5: Option<f64>, pub ask_price1: Option<f64>, pub ask_price2: Option<f64>, pub ask_price3: Option<f64>, pub ask_price4: Option<f64>, pub ask_price5: Option<f64>, pub bid_size1: Option<f64>, pub bid_size2: Option<f64>, pub bid_size3: Option<f64>, pub bid_size4: Option<f64>, pub bid_size5: Option<f64>, pub ask_size1: Option<f64>, pub ask_size2: Option<f64>, pub ask_size3: Option<f64>, pub ask_size4: Option<f64>, pub ask_size5: Option<f64>, pub currency0: Option<String>, pub currency1: Option<String>, pub currency2: Option<String>, pub currency3: Option<String>, pub currency4: Option<String>, pub currency5: Option<String>, pub c1_bid_size_1: Option<f64>, pub c1_bid_size_2: Option<f64>, pub c1_bid_size_3: Option<f64>, pub c1_bid_size_4: Option<f64>, pub c1_bid_size_5: Option<f64>, pub c2_bid_size_1: Option<f64>, pub c2_bid_size_2: Option<f64>, pub c2_bid_size_3: Option<f64>, pub c2_bid_size_4: Option<f64>, pub c2_bid_size_5: Option<f64>, pub c3_bid_size_1: Option<f64>, pub c3_bid_size_2: Option<f64>, pub c3_bid_size_3: Option<f64>, pub c3_bid_size_4: Option<f64>, pub c3_bid_size_5: Option<f64>, pub c4_bid_size_1: Option<f64>, pub c4_bid_size_2: Option<f64>, pub c4_bid_size_3: Option<f64>, pub c4_bid_size_4: Option<f64>, pub c4_bid_size_5: Option<f64>, pub c5_bid_size_1: Option<f64>, pub c5_bid_size_2: Option<f64>, pub c5_bid_size_3: Option<f64>, pub c5_bid_size_4: Option<f64>, pub c5_bid_size_5: Option<f64>, pub c1_ask_size_1: Option<f64>, pub c1_ask_size_2: Option<f64>, pub c1_ask_size_3: Option<f64>, pub c1_ask_size_4: Option<f64>, pub c1_ask_size_5: Option<f64>, pub c2_ask_size_1: Option<f64>, pub c2_ask_size_2: Option<f64>, pub c2_ask_size_3: Option<f64>, pub c2_ask_size_4: Option<f64>, pub c2_ask_size_5: Option<f64>, pub c3_ask_size_1: Option<f64>, pub c3_ask_size_2: Option<f64>, pub c3_ask_size_3: Option<f64>, pub c3_ask_size_4: Option<f64>, pub c3_ask_size_5: Option<f64>, pub c4_ask_size_1: Option<f64>, pub c4_ask_size_2: Option<f64>, pub c4_ask_size_3: Option<f64>, pub c4_ask_size_4: Option<f64>, pub c4_ask_size_5: Option<f64>, pub c5_ask_size_1: Option<f64>, pub c5_ask_size_2: Option<f64>, pub c5_ask_size_3: Option<f64>, pub c5_ask_size_4: Option<f64>, pub c5_ask_size_5: Option<f64>, pub timestamp: Option<f64>, pub dealing_flag: Option<DealingFlag>,
}
Expand description

Price field data containing bid, offer, and market status information

Fields§

§mid_open: Option<f64>

The opening price at the middle of the bid-ask spread

§high: Option<f64>

The highest price reached during the trading session

§low: Option<f64>

The lowest price reached during the trading session

§bid: Option<f64>

Current bid price for the instrument

§offer: Option<f64>

Current offer (ask) price for the instrument

§change: Option<f64>

Price change from previous close

§change_pct: Option<f64>

Percentage change from previous close

§market_delay: Option<f64>

Market data delay in seconds

§market_state: Option<String>

Current market state (e.g., “OPEN”, “CLOSED”, “SUSPENDED”)

§update_time: Option<String>

Timestamp of the last price update

§bid_quote_id: Option<String>

Unique identifier for the bid quote

§ask_quote_id: Option<String>

Unique identifier for the ask quote

§bid_price1: Option<f64>

First level bid price in the order book

§bid_price2: Option<f64>

Second level bid price in the order book

§bid_price3: Option<f64>

Third level bid price in the order book

§bid_price4: Option<f64>

Fourth level bid price in the order book

§bid_price5: Option<f64>

Fifth level bid price in the order book

§ask_price1: Option<f64>

First level ask price in the order book

§ask_price2: Option<f64>

Second level ask price in the order book

§ask_price3: Option<f64>

Third level ask price in the order book

§ask_price4: Option<f64>

Fourth level ask price in the order book

§ask_price5: Option<f64>

Fifth level ask price in the order book

§bid_size1: Option<f64>

Volume available at the first level bid price

§bid_size2: Option<f64>

Volume available at the second level bid price

§bid_size3: Option<f64>

Volume available at the third level bid price

§bid_size4: Option<f64>

Volume available at the fourth level bid price

§bid_size5: Option<f64>

Volume available at the fifth level bid price

§ask_size1: Option<f64>

Volume available at the first level ask price

§ask_size2: Option<f64>

Volume available at the second level ask price

§ask_size3: Option<f64>

Volume available at the third level ask price

§ask_size4: Option<f64>

Volume available at the fourth level ask price

§ask_size5: Option<f64>

Volume available at the fifth level ask price

§currency0: Option<String>

Base currency code for the trading pair

§currency1: Option<String>

First alternative currency code

§currency2: Option<String>

Second alternative currency code

§currency3: Option<String>

Third alternative currency code

§currency4: Option<String>

Fourth alternative currency code

§currency5: Option<String>

Fifth alternative currency code

§c1_bid_size_1: Option<f64>

Bid size for currency 1 at level 1

§c1_bid_size_2: Option<f64>

Bid size for currency 1 at level 2

§c1_bid_size_3: Option<f64>

Bid size for currency 1 at level 3

§c1_bid_size_4: Option<f64>

Bid size for currency 1 at level 4

§c1_bid_size_5: Option<f64>

Bid size for currency 1 at level 5

§c2_bid_size_1: Option<f64>

Bid size for currency 2 at level 1

§c2_bid_size_2: Option<f64>

Bid size for currency 2 at level 2

§c2_bid_size_3: Option<f64>

Bid size for currency 2 at level 3

§c2_bid_size_4: Option<f64>

Bid size for currency 2 at level 4

§c2_bid_size_5: Option<f64>

Bid size for currency 2 at level 5

§c3_bid_size_1: Option<f64>

Bid size for currency 3 at level 1

§c3_bid_size_2: Option<f64>

Bid size for currency 3 at level 2

§c3_bid_size_3: Option<f64>

Bid size for currency 3 at level 3

§c3_bid_size_4: Option<f64>

Bid size for currency 3 at level 4

§c3_bid_size_5: Option<f64>

Bid size for currency 3 at level 5

§c4_bid_size_1: Option<f64>

Bid size for currency 4 at level 1

§c4_bid_size_2: Option<f64>

Bid size for currency 4 at level 2

§c4_bid_size_3: Option<f64>

Bid size for currency 4 at level 3

§c4_bid_size_4: Option<f64>

Bid size for currency 4 at level 4

§c4_bid_size_5: Option<f64>

Bid size for currency 4 at level 5

§c5_bid_size_1: Option<f64>

Bid size for currency 5 at level 1

§c5_bid_size_2: Option<f64>

Bid size for currency 5 at level 2

§c5_bid_size_3: Option<f64>

Bid size for currency 5 at level 3

§c5_bid_size_4: Option<f64>

Bid size for currency 5 at level 4

§c5_bid_size_5: Option<f64>

Bid size for currency 5 at level 5

§c1_ask_size_1: Option<f64>

Ask size for currency 1 at level 1

§c1_ask_size_2: Option<f64>

Ask size for currency 1 at level 2

§c1_ask_size_3: Option<f64>

Ask size for currency 1 at level 3

§c1_ask_size_4: Option<f64>

Ask size for currency 1 at level 4

§c1_ask_size_5: Option<f64>

Ask size for currency 1 at level 5

§c2_ask_size_1: Option<f64>

Ask size for currency 2 at level 1

§c2_ask_size_2: Option<f64>

Ask size for currency 2 at level 2

§c2_ask_size_3: Option<f64>

Ask size for currency 2 at level 3

§c2_ask_size_4: Option<f64>

Ask size for currency 2 at level 4

§c2_ask_size_5: Option<f64>

Ask size for currency 2 at level 5

§c3_ask_size_1: Option<f64>

Ask size for currency 3 at level 1

§c3_ask_size_2: Option<f64>

Ask size for currency 3 at level 2

§c3_ask_size_3: Option<f64>

Ask size for currency 3 at level 3

§c3_ask_size_4: Option<f64>

Ask size for currency 3 at level 4

§c3_ask_size_5: Option<f64>

Ask size for currency 3 at level 5

§c4_ask_size_1: Option<f64>

Ask size for currency 4 at level 1

§c4_ask_size_2: Option<f64>

Ask size for currency 4 at level 2

§c4_ask_size_3: Option<f64>

Ask size for currency 4 at level 3

§c4_ask_size_4: Option<f64>

Ask size for currency 4 at level 4

§c4_ask_size_5: Option<f64>

Ask size for currency 4 at level 5

§c5_ask_size_1: Option<f64>

Ask size for currency 5 at level 1

§c5_ask_size_2: Option<f64>

Ask size for currency 5 at level 2

§c5_ask_size_3: Option<f64>

Ask size for currency 5 at level 3

§c5_ask_size_4: Option<f64>

Ask size for currency 5 at level 4

§c5_ask_size_5: Option<f64>

Ask size for currency 5 at level 5

§timestamp: Option<f64>

The timestamp of the price update in UTC milliseconds since epoch

§dealing_flag: Option<DealingFlag>

Dealing status flag indicating trading availability/state of the market

Trait Implementations§

Source§

impl Clone for PriceFields

Source§

fn clone(&self) -> PriceFields

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 PriceFields

Source§

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

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

impl Default for PriceFields

Source§

fn default() -> PriceFields

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

impl<'de> Deserialize<'de> for PriceFields

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 Display for PriceFields

Source§

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

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

impl Serialize for PriceFields

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,