pub struct Market {Show 41 fields
pub ticker: String,
pub event_ticker: String,
pub market_type: MarketType,
pub yes_sub_title: String,
pub no_sub_title: String,
pub created_time: Timestamp,
pub updated_time: Field<Timestamp>,
pub open_time: Timestamp,
pub close_time: Timestamp,
pub latest_expiration_time: Timestamp,
pub settlement_timer_seconds: i64,
pub status: MarketStatus,
pub yes_bid_dollars: FixedPoint,
pub yes_bid_size_fp: FixedPoint,
pub yes_ask_dollars: FixedPoint,
pub yes_ask_size_fp: FixedPoint,
pub no_bid_dollars: FixedPoint,
pub no_ask_dollars: FixedPoint,
pub last_price_dollars: FixedPoint,
pub volume_fp: FixedPoint,
pub volume_24h_fp: FixedPoint,
pub result: MarketResult,
pub can_close_early: bool,
pub open_interest_fp: FixedPoint,
pub notional_value_dollars: FixedPoint,
pub previous_yes_bid_dollars: FixedPoint,
pub previous_yes_ask_dollars: FixedPoint,
pub previous_price_dollars: FixedPoint,
pub settlement_bounds_type: SettlementBoundsType,
pub expiration_value: String,
pub rules_primary: String,
pub rules_secondary: String,
pub price_level_structure: PriceLevelStructure,
pub price_ranges: Vec<PriceRange>,
pub exchange_index: Field<i32>,
pub settlement_value_dollars: Field<FixedPoint>,
pub settlement_floor_dollars: Field<FixedPoint>,
pub settlement_ts: Field<Timestamp>,
pub expected_expiration_time: Field<Timestamp>,
pub mve_collection_ticker: Field<String>,
pub mve_selected_legs: Field<Vec<Value>>,
}Expand description
Raw market metadata and exact quote, volume, and settlement values.
Fields§
§ticker: String§event_ticker: String§market_type: MarketType§yes_sub_title: String§no_sub_title: String§created_time: Timestamp§updated_time: Field<Timestamp>§open_time: Timestamp§close_time: Timestamp§latest_expiration_time: Timestamp§settlement_timer_seconds: i64§status: MarketStatus§yes_bid_dollars: FixedPoint§yes_bid_size_fp: FixedPoint§yes_ask_dollars: FixedPoint§yes_ask_size_fp: FixedPoint§no_bid_dollars: FixedPoint§no_ask_dollars: FixedPoint§last_price_dollars: FixedPoint§volume_fp: FixedPoint§volume_24h_fp: FixedPoint§result: MarketResult§can_close_early: bool§open_interest_fp: FixedPoint§notional_value_dollars: FixedPoint§previous_yes_bid_dollars: FixedPoint§previous_yes_ask_dollars: FixedPoint§previous_price_dollars: FixedPoint§settlement_bounds_type: SettlementBoundsType§expiration_value: String§rules_primary: String§rules_secondary: String§price_level_structure: PriceLevelStructure§price_ranges: Vec<PriceRange>§exchange_index: Field<i32>§settlement_value_dollars: Field<FixedPoint>§settlement_floor_dollars: Field<FixedPoint>§settlement_ts: Field<Timestamp>§expected_expiration_time: Field<Timestamp>§mve_collection_ticker: Field<String>§mve_selected_legs: Field<Vec<Value>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Market
impl<'de> Deserialize<'de> for Market
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Market
impl StructuralPartialEq for Market
Auto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnsafeUnpin for Market
impl UnwindSafe for Market
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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 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> ⓘ
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