pub struct ShortSellingRankItem {Show 18 fields
pub security: Security,
pub name: Option<String>,
pub close_price: Option<f64>,
pub change_ratio: Option<f64>,
pub change_ratio5_d: Option<f64>,
pub change_ratio10_d: Option<f64>,
pub volume: Option<i64>,
pub short_number: Option<i64>,
pub short_number_change: Option<i64>,
pub short_ratio: Option<f64>,
pub short_ratio_change: Option<f64>,
pub short_position_volume: Option<i64>,
pub short_position_ratio: Option<f64>,
pub days_to_cover: Option<f64>,
pub week_avg_short_number: Option<i64>,
pub week_avg_short_ratio: Option<f64>,
pub month_avg_short_number: Option<i64>,
pub month_avg_short_ratio: Option<f64>,
}Expand description
卖空异动数据项
Fields§
§security: Security股票
name: Option<String>名称
close_price: Option<f64>收盘价
change_ratio: Option<f64>涨跌幅(%)
change_ratio5_d: Option<f64>5日涨跌幅(%)
change_ratio10_d: Option<f64>10日涨跌幅(%)
volume: Option<i64>成交量
short_number: Option<i64>卖空数量
short_number_change: Option<i64>卖空变化量
short_ratio: Option<f64>卖空比例(%)
short_ratio_change: Option<f64>卖空变化比例(%)
short_position_volume: Option<i64>空头持仓数量
short_position_ratio: Option<f64>空头持仓比例(%)
days_to_cover: Option<f64>回补天数
week_avg_short_number: Option<i64>近一周日均卖空
week_avg_short_ratio: Option<f64>近一周日均卖空比例(%)
month_avg_short_number: Option<i64>近一月日均卖空
month_avg_short_ratio: Option<f64>近一月日均卖空比例(%)
Implementations§
Source§impl ShortSellingRankItem
impl ShortSellingRankItem
Sourcepub fn close_price(&self) -> f64
pub fn close_price(&self) -> f64
Returns the value of close_price, or the default value if close_price is unset.
Sourcepub fn change_ratio(&self) -> f64
pub fn change_ratio(&self) -> f64
Returns the value of change_ratio, or the default value if change_ratio is unset.
Sourcepub fn change_ratio5_d(&self) -> f64
pub fn change_ratio5_d(&self) -> f64
Returns the value of change_ratio5_d, or the default value if change_ratio5_d is unset.
Sourcepub fn change_ratio10_d(&self) -> f64
pub fn change_ratio10_d(&self) -> f64
Returns the value of change_ratio10_d, or the default value if change_ratio10_d is unset.
Sourcepub fn volume(&self) -> i64
pub fn volume(&self) -> i64
Returns the value of volume, or the default value if volume is unset.
Sourcepub fn short_number(&self) -> i64
pub fn short_number(&self) -> i64
Returns the value of short_number, or the default value if short_number is unset.
Sourcepub fn short_number_change(&self) -> i64
pub fn short_number_change(&self) -> i64
Returns the value of short_number_change, or the default value if short_number_change is unset.
Sourcepub fn short_ratio(&self) -> f64
pub fn short_ratio(&self) -> f64
Returns the value of short_ratio, or the default value if short_ratio is unset.
Sourcepub fn short_ratio_change(&self) -> f64
pub fn short_ratio_change(&self) -> f64
Returns the value of short_ratio_change, or the default value if short_ratio_change is unset.
Sourcepub fn short_position_volume(&self) -> i64
pub fn short_position_volume(&self) -> i64
Returns the value of short_position_volume, or the default value if short_position_volume is unset.
Sourcepub fn short_position_ratio(&self) -> f64
pub fn short_position_ratio(&self) -> f64
Returns the value of short_position_ratio, or the default value if short_position_ratio is unset.
Sourcepub fn days_to_cover(&self) -> f64
pub fn days_to_cover(&self) -> f64
Returns the value of days_to_cover, or the default value if days_to_cover is unset.
Sourcepub fn week_avg_short_number(&self) -> i64
pub fn week_avg_short_number(&self) -> i64
Returns the value of week_avg_short_number, or the default value if week_avg_short_number is unset.
Sourcepub fn week_avg_short_ratio(&self) -> f64
pub fn week_avg_short_ratio(&self) -> f64
Returns the value of week_avg_short_ratio, or the default value if week_avg_short_ratio is unset.
Sourcepub fn month_avg_short_number(&self) -> i64
pub fn month_avg_short_number(&self) -> i64
Returns the value of month_avg_short_number, or the default value if month_avg_short_number is unset.
Sourcepub fn month_avg_short_ratio(&self) -> f64
pub fn month_avg_short_ratio(&self) -> f64
Returns the value of month_avg_short_ratio, or the default value if month_avg_short_ratio is unset.
Trait Implementations§
Source§impl Clone for ShortSellingRankItem
impl Clone for ShortSellingRankItem
Source§fn clone(&self) -> ShortSellingRankItem
fn clone(&self) -> ShortSellingRankItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShortSellingRankItem
impl Debug for ShortSellingRankItem
Source§impl Default for ShortSellingRankItem
impl Default for ShortSellingRankItem
Source§impl<'de> Deserialize<'de> for ShortSellingRankItemwhere
ShortSellingRankItem: Default,
impl<'de> Deserialize<'de> for ShortSellingRankItemwhere
ShortSellingRankItem: Default,
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>,
Source§impl Message for ShortSellingRankItem
impl Message for ShortSellingRankItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.