#[non_exhaustive]pub struct InstrumentUpdate {Show 48 fields
pub inst_type: String,
pub series_id: String,
pub inst_id: String,
pub inst_id_code: NumberString,
pub uly: String,
pub inst_family: String,
pub category: String,
pub base_ccy: String,
pub quote_ccy: String,
pub settle_ccy: String,
pub ct_val: NumberString,
pub ct_mult: NumberString,
pub ct_val_ccy: String,
pub opt_type: String,
pub stk: NumberString,
pub list_time: NumberString,
pub cont_td_sw_time: NumberString,
pub pre_mkt_sw_time: NumberString,
pub exp_time: NumberString,
pub lever: NumberString,
pub tick_sz: NumberString,
pub lot_sz: NumberString,
pub min_sz: NumberString,
pub ct_type: String,
pub alias: String,
pub state: String,
pub open_type: String,
pub rule_type: String,
pub max_lmt_sz: NumberString,
pub max_lmt_amt: NumberString,
pub max_mkt_sz: NumberString,
pub max_mkt_amt: NumberString,
pub max_twap_sz: NumberString,
pub max_iceberg_sz: NumberString,
pub max_trigger_sz: NumberString,
pub max_stop_sz: NumberString,
pub auction_end_time: NumberString,
pub future_settlement: bool,
pub trade_quote_ccy_list: Vec<String>,
pub inst_category: String,
pub pos_lmt_amt: NumberString,
pub pos_lmt_pct: NumberString,
pub long_pos_remaining_quota: NumberString,
pub short_pos_remaining_quota: NumberString,
pub max_plat_oi_lmt: NumberString,
pub group_id: String,
pub upc_chg: Vec<InstrumentUpcomingParamChange>,
pub extra: ExtraFields,
}Expand description
Public-data instruments channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-instruments-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.inst_type: StringInstrument type, e.g., SPOT, MARGIN, SWAP, FUTURES, OPTION.
series_id: StringSeries ID (event contracts only).
inst_id: StringInstrument ID, e.g., BTC-USDT.
inst_id_code: NumberStringInternal numeric code for the instrument.
uly: StringUnderlying index, e.g., BTC-USD (derivatives only).
inst_family: StringInstrument family, e.g., BTC-USD (derivatives only).
category: StringFee schedule category.
base_ccy: StringBase currency, e.g., BTC (SPOT/MARGIN only).
quote_ccy: StringQuote currency, e.g., USDT (SPOT/MARGIN only).
settle_ccy: StringSettlement currency (derivatives only).
ct_val: NumberStringContract value (derivatives only).
ct_mult: NumberStringContract multiplier (derivatives only).
ct_val_ccy: StringCurrency of the contract value (derivatives only).
opt_type: StringOption type: C (call) or P (put). Empty for non-option instruments.
stk: NumberStringStrike price (options only).
list_time: NumberStringListing time (Unix milliseconds).
cont_td_sw_time: NumberStringTime at which the instrument transitions to continuous trading (Unix milliseconds).
pre_mkt_sw_time: NumberStringPre-market trading start time (Unix milliseconds).
exp_time: NumberStringExpiry/delivery time (Unix milliseconds); empty for perpetuals.
lever: NumberStringMaximum leverage available.
tick_sz: NumberStringTick size (minimum price increment).
lot_sz: NumberStringLot size (minimum order size increment).
min_sz: NumberStringMinimum order size.
ct_type: StringContract type: linear or inverse (derivatives only).
alias: StringDelivery alias: this_week, next_week, quarter, next_quarter.
state: StringInstrument state.
Documented values: live, suspend, preopen, settlement.
open_type: StringOpen interest limit type.
Documented values: normal (no limit), limited.
rule_type: StringApplicable trading rules: normal, pre_market.
max_lmt_sz: NumberStringMaximum limit order size.
max_lmt_amt: NumberStringMaximum limit order amount in USD.
max_mkt_sz: NumberStringMaximum market order size.
max_mkt_amt: NumberStringMaximum market order amount in USD.
max_twap_sz: NumberStringMaximum TWAP order size.
max_iceberg_sz: NumberStringMaximum iceberg order size.
max_trigger_sz: NumberStringMaximum trigger order size.
max_stop_sz: NumberStringMaximum stop order size.
auction_end_time: NumberStringCall-auction end time (Unix milliseconds); empty when not in auction.
future_settlement: boolWhether futures settlement is enabled for this instrument.
trade_quote_ccy_list: Vec<String>List of supported quote currencies for this instrument.
inst_category: StringInstrument sub-category.
pos_lmt_amt: NumberStringMaximum total position size (USD amount).
pos_lmt_pct: NumberStringMaximum position size as a percentage of total open interest.
long_pos_remaining_quota: NumberStringRemaining long-position quota for this instrument.
short_pos_remaining_quota: NumberStringRemaining short-position quota for this instrument.
max_plat_oi_lmt: NumberStringMaximum platform-wide open-interest limit.
group_id: StringInstrument group ID.
upc_chg: Vec<InstrumentUpcomingParamChange>Upcoming parameter changes scheduled for this instrument.
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for InstrumentUpdate
impl Clone for InstrumentUpdate
Source§fn clone(&self) -> InstrumentUpdate
fn clone(&self) -> InstrumentUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more