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
impl Clone for PriceFields
Source§fn clone(&self) -> PriceFields
fn clone(&self) -> PriceFields
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PriceFields
impl Debug for PriceFields
Source§impl Default for PriceFields
impl Default for PriceFields
Source§fn default() -> PriceFields
fn default() -> PriceFields
Source§impl<'de> Deserialize<'de> for PriceFields
impl<'de> Deserialize<'de> for PriceFields
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for PriceFields
impl Display for PriceFields
Auto Trait Implementations§
impl Freeze for PriceFields
impl RefUnwindSafe for PriceFields
impl Send for PriceFields
impl Sync for PriceFields
impl Unpin for PriceFields
impl UnwindSafe for PriceFields
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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