pub struct Statistics24H {
pub price_highest: Option<i64>,
pub price_lowest: Option<i64>,
pub volume: Option<i64>,
pub turnover: Option<i64>,
pub price_change: Option<i64>,
pub ratio_price_change: Option<i64>,
}Expand description
v1.4.110 final E.5 P1#1: 补 24H 滚动成交统计对齐 C++ Quote/FTCmdStockQuoteCoverageData.proto:330-338 crypto 24h 滚动窗口数据 (区分 DealStatistics 的“当日 since open“语义).
Fields§
§price_highest: Option<i64>24H最高价
price_lowest: Option<i64>24H最低价
volume: Option<i64>24H成交量,精度见 DealStatistics.volume_precision
turnover: Option<i64>24H成交额
price_change: Option<i64>24H涨跌额
ratio_price_change: Option<i64>24H涨跌幅,[放大10^5倍],前端展示百分比
Implementations§
Source§impl Statistics24H
impl Statistics24H
Sourcepub fn price_highest(&self) -> i64
pub fn price_highest(&self) -> i64
Returns the value of price_highest, or the default value if price_highest is unset.
Sourcepub fn price_lowest(&self) -> i64
pub fn price_lowest(&self) -> i64
Returns the value of price_lowest, or the default value if price_lowest 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 turnover(&self) -> i64
pub fn turnover(&self) -> i64
Returns the value of turnover, or the default value if turnover is unset.
Sourcepub fn price_change(&self) -> i64
pub fn price_change(&self) -> i64
Returns the value of price_change, or the default value if price_change is unset.
Sourcepub fn ratio_price_change(&self) -> i64
pub fn ratio_price_change(&self) -> i64
Returns the value of ratio_price_change, or the default value if ratio_price_change is unset.
Trait Implementations§
Source§impl Clone for Statistics24H
impl Clone for Statistics24H
Source§fn clone(&self) -> Statistics24H
fn clone(&self) -> Statistics24H
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Statistics24H
impl Debug for Statistics24H
Source§impl Default for Statistics24H
impl Default for Statistics24H
Source§impl Hash for Statistics24H
impl Hash for Statistics24H
Source§impl Message for Statistics24H
impl Message for Statistics24H
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for Statistics24H
impl PartialEq for Statistics24H
impl Copy for Statistics24H
impl Eq for Statistics24H
impl StructuralPartialEq for Statistics24H
Auto Trait Implementations§
impl Freeze for Statistics24H
impl RefUnwindSafe for Statistics24H
impl Send for Statistics24H
impl Sync for Statistics24H
impl Unpin for Statistics24H
impl UnsafeUnpin for Statistics24H
impl UnwindSafe for Statistics24H
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.