pub struct UsShortInterestItem {
pub timestamp: Option<i64>,
pub timestamp_str: Option<String>,
pub shares_short: Option<u64>,
pub short_percent: Option<f64>,
pub avg_daily_share_volume: Option<u64>,
pub days_to_cover: Option<f64>,
pub close_price: Option<f64>,
pub last_close_price: Option<f64>,
}Expand description
美股空头持仓单条记录
Fields§
§timestamp: Option<i64>数据所在交易日时间戳(秒)
timestamp_str: Option<String>数据所在交易日字符串,格式 YYYY-MM-DD,对应市场时区
卖空股数
short_percent: Option<f64>卖空比例,百分号前的值,如 12.34 表示 12.34%
平均日成交量
days_to_cover: Option<f64>回补天数
close_price: Option<f64>收盘价
last_close_price: Option<f64>上次收盘价
Implementations§
Source§impl UsShortInterestItem
impl UsShortInterestItem
Sourcepub fn timestamp(&self) -> i64
pub fn timestamp(&self) -> i64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn timestamp_str(&self) -> &str
pub fn timestamp_str(&self) -> &str
Returns the value of timestamp_str, or the default value if timestamp_str is unset.
Returns the value of shares_short, or the default value if shares_short is unset.
Sourcepub fn short_percent(&self) -> f64
pub fn short_percent(&self) -> f64
Returns the value of short_percent, or the default value if short_percent is unset.
Returns the value of avg_daily_share_volume, or the default value if avg_daily_share_volume 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 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 last_close_price(&self) -> f64
pub fn last_close_price(&self) -> f64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Trait Implementations§
Source§impl Clone for UsShortInterestItem
impl Clone for UsShortInterestItem
Source§fn clone(&self) -> UsShortInterestItem
fn clone(&self) -> UsShortInterestItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UsShortInterestItem
impl Debug for UsShortInterestItem
Source§impl Default for UsShortInterestItem
impl Default for UsShortInterestItem
Source§impl<'de> Deserialize<'de> for UsShortInterestItemwhere
UsShortInterestItem: Default,
impl<'de> Deserialize<'de> for UsShortInterestItemwhere
UsShortInterestItem: 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 UsShortInterestItem
impl Message for UsShortInterestItem
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.