pub struct LevelOneFutures {Show 44 fields
pub key: String,
pub delayed: Option<bool>,
pub asset_main_type: Option<AssetMainType>,
pub bid_price: Option<f64>,
pub ask_price: Option<f64>,
pub last_price: Option<f64>,
pub bid_size: Option<i64>,
pub ask_size: Option<i64>,
pub bid_id: Option<String>,
pub ask_id: Option<String>,
pub total_volume: Option<f64>,
pub last_size: Option<i64>,
pub quote_time: Option<i64>,
pub trade_time: Option<i64>,
pub high_price: Option<f64>,
pub low_price: Option<f64>,
pub close_price: Option<f64>,
pub exchange_id: Option<String>,
pub description: Option<String>,
pub last_id: Option<String>,
pub open_price: Option<f64>,
pub net_change: Option<f64>,
pub future_percent_change: Option<f64>,
pub exchange_name: Option<String>,
pub security_status: Option<String>,
pub open_interest: Option<i64>,
pub mark: Option<f64>,
pub tick: Option<f64>,
pub tick_amount: Option<f64>,
pub product: Option<String>,
pub future_price_format: Option<String>,
pub future_trading_hours: Option<String>,
pub future_is_tradable: Option<bool>,
pub future_multiplier: Option<f64>,
pub future_is_active: Option<bool>,
pub future_settlement_price: Option<f64>,
pub future_active_symbol: Option<String>,
pub future_expiration_date: Option<i64>,
pub expiration_style: Option<String>,
pub ask_time: Option<i64>,
pub bid_time: Option<i64>,
pub quoted_in_session: Option<bool>,
pub settlement_date: Option<i64>,
pub extra: HashMap<String, Value>,
}Expand description
A LEVELONE_FUTURES quote. Deltas carry only the changed fields.
Fields§
§key: StringThe subscription key (field 0).
delayed: Option<bool>§asset_main_type: Option<AssetMainType>§bid_price: Option<f64>§ask_price: Option<f64>§last_price: Option<f64>§bid_size: Option<i64>§ask_size: Option<i64>§bid_id: Option<String>Exchange code of the bid.
ask_id: Option<String>Exchange code of the ask.
total_volume: Option<f64>§last_size: Option<i64>§quote_time: Option<i64>Epoch milliseconds.
trade_time: Option<i64>Epoch milliseconds.
high_price: Option<f64>§low_price: Option<f64>§close_price: Option<f64>Previous day’s close.
exchange_id: Option<String>§description: Option<String>§last_id: Option<String>Exchange code of the last trade.
open_price: Option<f64>§net_change: Option<f64>§future_percent_change: Option<f64>§exchange_name: Option<String>§security_status: Option<String>§open_interest: Option<i64>§mark: Option<f64>§tick: Option<f64>Minimum price movement.
tick_amount: Option<f64>Money value of one tick.
product: Option<String>§future_price_format: Option<String>§future_trading_hours: Option<String>§future_is_tradable: Option<bool>§future_multiplier: Option<f64>§future_is_active: Option<bool>§future_settlement_price: Option<f64>§future_active_symbol: Option<String>§future_expiration_date: Option<i64>Epoch milliseconds.
expiration_style: Option<String>§ask_time: Option<i64>Epoch milliseconds.
bid_time: Option<i64>Epoch milliseconds.
quoted_in_session: Option<bool>§settlement_date: Option<i64>Epoch milliseconds.
extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl LevelOneFutures
impl LevelOneFutures
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using LevelOneFuturesFields::FIELDS.
Trait Implementations§
Source§impl Clone for LevelOneFutures
impl Clone for LevelOneFutures
Source§impl Debug for LevelOneFutures
impl Debug for LevelOneFutures
Source§impl Default for LevelOneFutures
impl Default for LevelOneFutures
Source§impl<'de> Deserialize<'de> for LevelOneFutures
impl<'de> Deserialize<'de> for LevelOneFutures
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
Source§impl JsonSchema for LevelOneFutures
Available on crate feature schemars only.
impl JsonSchema for LevelOneFutures
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LevelOneFutures
impl PartialEq for LevelOneFutures
Source§impl Serialize for LevelOneFutures
impl Serialize for LevelOneFutures
impl StructuralPartialEq for LevelOneFutures
Auto Trait Implementations§
impl Freeze for LevelOneFutures
impl RefUnwindSafe for LevelOneFutures
impl Send for LevelOneFutures
impl Sync for LevelOneFutures
impl Unpin for LevelOneFutures
impl UnsafeUnpin for LevelOneFutures
impl UnwindSafe for LevelOneFutures
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
Mutably borrows from an owned value. Read more