pub struct LevelOneEquity {Show 57 fields
pub key: String,
pub delayed: Option<bool>,
pub asset_main_type: Option<AssetMainType>,
pub asset_sub_type: Option<AssetSubType>,
pub cusip: Option<String>,
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 ask_id: Option<String>,
pub bid_id: Option<String>,
pub total_volume: Option<i64>,
pub last_size: Option<i64>,
pub high_price: Option<f64>,
pub low_price: Option<f64>,
pub close_price: Option<f64>,
pub exchange_id: Option<String>,
pub marginable: Option<bool>,
pub description: Option<String>,
pub last_id: Option<String>,
pub open_price: Option<f64>,
pub net_change: Option<f64>,
pub fifty_two_week_high: Option<f64>,
pub fifty_two_week_low: Option<f64>,
pub pe_ratio: Option<f64>,
pub div_amount: Option<f64>,
pub div_yield: Option<f64>,
pub nav: Option<f64>,
pub exchange_name: Option<String>,
pub div_date: Option<String>,
pub regular_market_quote: Option<bool>,
pub regular_market_trade: Option<bool>,
pub regular_market_last_price: Option<f64>,
pub regular_market_last_size: Option<i64>,
pub regular_market_net_change: Option<f64>,
pub security_status: Option<String>,
pub mark: Option<f64>,
pub quote_time: Option<i64>,
pub trade_time: Option<i64>,
pub regular_market_trade_time: Option<i64>,
pub bid_time: Option<i64>,
pub ask_time: Option<i64>,
pub ask_mic_id: Option<String>,
pub bid_mic_id: Option<String>,
pub last_mic_id: Option<String>,
pub net_percent_change: Option<f64>,
pub regular_market_percent_change: Option<f64>,
pub mark_change: Option<f64>,
pub mark_percent_change: Option<f64>,
pub htb_quantity: Option<i64>,
pub htb_rate: Option<f64>,
pub hard_to_borrow: Option<i64>,
pub shortable: Option<i64>,
pub post_market_change: Option<f64>,
pub post_market_percent_change: Option<f64>,
pub extra: HashMap<String, Value>,
}Expand description
A LEVELONE_EQUITIES quote. Deltas carry only the changed fields.
Fields§
§key: StringThe subscription key (field 0).
delayed: Option<bool>§asset_main_type: Option<AssetMainType>§asset_sub_type: Option<AssetSubType>§cusip: Option<String>§bid_price: Option<f64>§ask_price: Option<f64>§last_price: Option<f64>§bid_size: Option<i64>§ask_size: Option<i64>§ask_id: Option<String>Exchange code of the ask.
bid_id: Option<String>Exchange code of the bid.
total_volume: Option<i64>§last_size: Option<i64>§high_price: Option<f64>§low_price: Option<f64>§close_price: Option<f64>Previous day’s close.
exchange_id: Option<String>Primary listing exchange code.
marginable: Option<bool>§description: Option<String>§last_id: Option<String>Exchange code of the last trade.
open_price: Option<f64>§net_change: Option<f64>§fifty_two_week_high: Option<f64>§fifty_two_week_low: Option<f64>§pe_ratio: Option<f64>§div_amount: Option<f64>Annual dividend amount.
div_yield: Option<f64>Mutual fund net asset value.
exchange_name: Option<String>§div_date: Option<String>§regular_market_quote: Option<bool>Whether the last quote came from the regular session.
regular_market_trade: Option<bool>Whether the last trade came from the regular session.
regular_market_last_price: Option<f64>§regular_market_last_size: Option<i64>§regular_market_net_change: Option<f64>§security_status: Option<String>§mark: Option<f64>§quote_time: Option<i64>Epoch milliseconds.
trade_time: Option<i64>Epoch milliseconds.
regular_market_trade_time: Option<i64>Epoch milliseconds.
bid_time: Option<i64>Epoch milliseconds.
ask_time: Option<i64>Epoch milliseconds.
ask_mic_id: Option<String>§bid_mic_id: Option<String>§last_mic_id: Option<String>§net_percent_change: Option<f64>§regular_market_percent_change: Option<f64>§mark_change: Option<f64>§mark_percent_change: Option<f64>§htb_quantity: Option<i64>§htb_rate: Option<f64>§hard_to_borrow: Option<i64>-1 unknown, 0 no, 1 yes.
shortable: Option<i64>-1 unknown, 0 no, 1 yes.
post_market_change: Option<f64>§post_market_percent_change: Option<f64>§extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl LevelOneEquity
impl LevelOneEquity
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using LevelOneEquityFields::FIELDS.
Trait Implementations§
Source§impl Clone for LevelOneEquity
impl Clone for LevelOneEquity
Source§impl Debug for LevelOneEquity
impl Debug for LevelOneEquity
Source§impl Default for LevelOneEquity
impl Default for LevelOneEquity
Source§impl<'de> Deserialize<'de> for LevelOneEquity
impl<'de> Deserialize<'de> for LevelOneEquity
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 LevelOneEquity
Available on crate feature schemars only.
impl JsonSchema for LevelOneEquity
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 LevelOneEquity
impl PartialEq for LevelOneEquity
Source§impl Serialize for LevelOneEquity
impl Serialize for LevelOneEquity
impl StructuralPartialEq for LevelOneEquity
Auto Trait Implementations§
impl Freeze for LevelOneEquity
impl RefUnwindSafe for LevelOneEquity
impl Send for LevelOneEquity
impl Sync for LevelOneEquity
impl Unpin for LevelOneEquity
impl UnsafeUnpin for LevelOneEquity
impl UnwindSafe for LevelOneEquity
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