pub struct MarginInfo {
pub enable_margin: Option<bool>,
pub ratio_mortgage: Option<i64>,
pub ratio_long_margin_initial: Option<i64>,
pub enable_short_sell: Option<bool>,
pub short_sell_rate: Option<i64>,
pub volume_short_available: Option<i64>,
pub ratio_short_margin_initial: Option<i64>,
}Expand description
融资融券信息,订阅位:SBIT_MARGIN_INFO
Fields§
§enable_margin: Option<bool>是否可融资,如果为true,后两个字段才存在
ratio_mortgage: Option<i64>股票抵押率,[放大10^5倍],前端展示百分比
ratio_long_margin_initial: Option<i64>融资初始保证金率,[放大10^5倍],前端展示百分比
enable_short_sell: Option<bool>是否可卖空,如果为true,后三个字段才存在
short_sell_rate: Option<i64>卖空参考利率,[放大10^6倍],前端展示百分比
volume_short_available: Option<i64>剩余可卖空数量(股)
ratio_short_margin_initial: Option<i64>卖空(融券)初始保证金率,[放大10^5倍],前端展示百分比
Implementations§
Source§impl MarginInfo
impl MarginInfo
Sourcepub fn enable_margin(&self) -> bool
pub fn enable_margin(&self) -> bool
Returns the value of enable_margin, or the default value if enable_margin is unset.
Sourcepub fn ratio_mortgage(&self) -> i64
pub fn ratio_mortgage(&self) -> i64
Returns the value of ratio_mortgage, or the default value if ratio_mortgage is unset.
Sourcepub fn ratio_long_margin_initial(&self) -> i64
pub fn ratio_long_margin_initial(&self) -> i64
Returns the value of ratio_long_margin_initial, or the default value if ratio_long_margin_initial is unset.
Sourcepub fn enable_short_sell(&self) -> bool
pub fn enable_short_sell(&self) -> bool
Returns the value of enable_short_sell, or the default value if enable_short_sell is unset.
Sourcepub fn short_sell_rate(&self) -> i64
pub fn short_sell_rate(&self) -> i64
Returns the value of short_sell_rate, or the default value if short_sell_rate is unset.
Sourcepub fn volume_short_available(&self) -> i64
pub fn volume_short_available(&self) -> i64
Returns the value of volume_short_available, or the default value if volume_short_available is unset.
Sourcepub fn ratio_short_margin_initial(&self) -> i64
pub fn ratio_short_margin_initial(&self) -> i64
Returns the value of ratio_short_margin_initial, or the default value if ratio_short_margin_initial is unset.
Trait Implementations§
Source§impl Clone for MarginInfo
impl Clone for MarginInfo
Source§fn clone(&self) -> MarginInfo
fn clone(&self) -> MarginInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarginInfo
impl Debug for MarginInfo
Source§impl Default for MarginInfo
impl Default for MarginInfo
Source§impl Hash for MarginInfo
impl Hash for MarginInfo
Source§impl Message for MarginInfo
impl Message for MarginInfo
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.Source§impl PartialEq for MarginInfo
impl PartialEq for MarginInfo
impl Copy for MarginInfo
impl Eq for MarginInfo
impl StructuralPartialEq for MarginInfo
Auto Trait Implementations§
impl Freeze for MarginInfo
impl RefUnwindSafe for MarginInfo
impl Send for MarginInfo
impl Sync for MarginInfo
impl Unpin for MarginInfo
impl UnsafeUnpin for MarginInfo
impl UnwindSafe for MarginInfo
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
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
§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
§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
key and return true if they are equal.