pub struct Quote {Show 62 fields
pub instrument_id: String,
pub datetime: String,
pub last_price: f64,
pub ask_price1: f64,
pub ask_volume1: i64,
pub ask_price2: f64,
pub ask_volume2: i64,
pub ask_price3: f64,
pub ask_volume3: i64,
pub ask_price4: f64,
pub ask_volume4: i64,
pub ask_price5: f64,
pub ask_volume5: i64,
pub bid_price1: f64,
pub bid_volume1: i64,
pub bid_price2: f64,
pub bid_volume2: i64,
pub bid_price3: f64,
pub bid_volume3: i64,
pub bid_price4: f64,
pub bid_volume4: i64,
pub bid_price5: f64,
pub bid_volume5: i64,
pub highest: f64,
pub lowest: f64,
pub open: f64,
pub close: f64,
pub average: f64,
pub volume: i64,
pub amount: f64,
pub open_interest: i64,
pub lower_limit: f64,
pub upper_limit: f64,
pub settlement: f64,
pub pre_settlement: f64,
pub change: f64,
pub change_percent: f64,
pub strike_price: f64,
pub pre_open_interest: i64,
pub pre_close: f64,
pub pre_volume: i64,
pub margin: f64,
pub commission: f64,
pub class: String,
pub exchange_id: String,
pub product_id: String,
pub product_short_name: String,
pub underlying_product: String,
pub underlying_symbol: String,
pub delivery_year: i32,
pub delivery_month: i32,
pub expire_datetime: i64,
pub volume_multiple: i32,
pub price_tick: f64,
pub price_decs: i32,
pub max_market_order_vol: i32,
pub min_market_order_vol: i32,
pub max_limit_order_vol: i32,
pub min_limit_order_vol: i32,
pub expired: bool,
pub py: String,
pub epoch: Option<i64>,
}Expand description
行情报价数据
Fields§
§instrument_id: String合约代码
datetime: String行情时间
last_price: f64最新价
ask_price1: f64卖一价
ask_volume1: i64卖一量
ask_price2: f64卖二价
ask_volume2: i64卖二量
ask_price3: f64卖三价
ask_volume3: i64卖三量
ask_price4: f64卖四价
ask_volume4: i64卖四量
ask_price5: f64卖五价
ask_volume5: i64卖五量
bid_price1: f64买一价
bid_volume1: i64买一量
bid_price2: f64买二价
bid_volume2: i64买二量
bid_price3: f64买三价
bid_volume3: i64买三量
bid_price4: f64买四价
bid_volume4: i64买四量
bid_price5: f64买五价
bid_volume5: i64买五量
highest: f64最高价
lowest: f64最低价
open: f64开盘价
close: f64收盘价
average: f64均价
volume: i64成交量
amount: f64成交额
open_interest: i64持仓量
lower_limit: f64跌停价
upper_limit: f64涨停价
settlement: f64结算价
pre_settlement: f64昨结算价
change: f64涨跌
change_percent: f64涨跌幅
strike_price: f64行权价
pre_open_interest: i64昨持仓量
pre_close: f64昨收盘价
pre_volume: i64昨成交量
margin: f64每手保证金
commission: f64每手手续费
class: String合约类型
exchange_id: String交易所代码
product_id: String品种代码
product_short_name: String品种简称
underlying_product: String标的产品
underlying_symbol: String标的合约
delivery_year: i32交割年份
delivery_month: i32交割月份
expire_datetime: i64到期时间
volume_multiple: i32合约乘数
price_tick: f64最小变动价位
price_decs: i32价格小数位数
max_market_order_vol: i32市价单最大下单量
min_market_order_vol: i32市价单最小下单量
max_limit_order_vol: i32限价单最大下单量
min_limit_order_vol: i32限价单最小下单量
expired: bool是否已下市
py: String拼音
epoch: Option<i64>Implementations§
Source§impl Quote
impl Quote
Sourcepub fn update_change(&mut self)
pub fn update_change(&mut self)
更新涨跌和涨跌幅
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
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
Auto Trait Implementations§
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
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