#[non_exhaustive]pub struct EventContractMarketUpdate {Show 19 fields
pub series_id: String,
pub event_id: String,
pub market_id: String,
pub inst_id: String,
pub title: String,
pub state: String,
pub category: String,
pub rule_type: String,
pub outcome: String,
pub floor_strike: NumberString,
pub settle_value: NumberString,
pub disputed: bool,
pub tick_sz: NumberString,
pub min_sz: NumberString,
pub list_time: NumberString,
pub exp_time: NumberString,
pub fix_time: NumberString,
pub u_time: NumberString,
pub extra: ExtraFields,
}Expand description
event-contract-markets channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-event-contract-markets-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.series_id: StringSeries ID of the event.
event_id: StringEvent ID.
market_id: StringMarket ID within the event.
inst_id: StringInstrument ID, e.g., EVENT-BTC-USDT.
title: StringHuman-readable title of the market.
state: StringMarket state, e.g., live, suspend, settlement.
category: StringEvent category.
rule_type: StringSettlement rule type.
outcome: StringSettlement outcome of the market (after settlement).
floor_strike: NumberStringFloor (minimum) strike price.
settle_value: NumberStringSettlement value (after settlement).
disputed: boolWhether the outcome is disputed.
tick_sz: NumberStringTick size (minimum price increment).
min_sz: NumberStringMinimum order size.
list_time: NumberStringListing time (Unix milliseconds).
exp_time: NumberStringExpiry time (Unix milliseconds).
fix_time: NumberStringSettlement fixing time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for EventContractMarketUpdate
impl Clone for EventContractMarketUpdate
Source§fn clone(&self) -> EventContractMarketUpdate
fn clone(&self) -> EventContractMarketUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more