pub struct MarginTradingProperty {Show 25 fields
pub stock_id: String,
pub is_long_permit: u32,
pub is_short_permit: u32,
pub short_pool_remain: String,
pub short_fee_rate: String,
pub is_long_open_position: u32,
pub is_short_open_position: u32,
pub alert_long_ratio: f64,
pub alert_short_ratio: f64,
pub im_long_ratio: f64,
pub im_short_ratio: f64,
pub mcm_long_ratio: f64,
pub mcm_short_ratio: f64,
pub mm_long_ratio: f64,
pub mm_short_ratio: f64,
pub margin_ratio: f64,
pub utime: u64,
pub leverage_ratio: f64,
pub stock_nc_name: String,
pub exchange_code: String,
pub sem_long_ratio: f64,
pub sem_short_ratio: f64,
pub uid: u64,
pub long_used_rule: i32,
pub short_used_rule: i32,
}Fields§
§stock_id: StringPRI KEY, 股票代码 AAPL,700
is_long_permit: u32是否允许融资
is_short_permit: u32是否允许卖空
short_pool_remain: String卖空池剩余量
short_fee_rate: String卖空参考利率
is_long_open_position: u32是否可以融资开仓
is_short_open_position: u32是否可以卖空开仓
alert_long_ratio: f64融资预警比率
alert_short_ratio: f64做空预警比率
im_long_ratio: f64融资初始保证金率
im_short_ratio: f64做空初始保证金率
mcm_long_ratio: f64融资margin call保证金率
mcm_short_ratio: f64做空margin call保证金率
mm_long_ratio: f64融资维护保证金率
mm_short_ratio: f64做空维护保证金率
margin_ratio: f64股票抵押率
utime: u64最后更新时间
leverage_ratio: f64美股ETF杠杆倍数,默认为1
stock_nc_name: String股票名称
exchange_code: String交易所代码
sem_long_ratio: f64融资软边缘保证金率
sem_short_ratio: f64做空软边缘保证金率
uid: u64牛牛号
long_used_rule: i32融资保证金率计算使用规则
short_used_rule: i32融券保证金率计算使用规则
Trait Implementations§
Source§impl Clone for MarginTradingProperty
impl Clone for MarginTradingProperty
Source§fn clone(&self) -> MarginTradingProperty
fn clone(&self) -> MarginTradingProperty
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 MarginTradingProperty
impl Debug for MarginTradingProperty
Source§impl Default for MarginTradingProperty
impl Default for MarginTradingProperty
Source§impl Message for MarginTradingProperty
impl Message for MarginTradingProperty
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 MarginTradingProperty
impl PartialEq for MarginTradingProperty
impl StructuralPartialEq for MarginTradingProperty
Auto Trait Implementations§
impl Freeze for MarginTradingProperty
impl RefUnwindSafe for MarginTradingProperty
impl Send for MarginTradingProperty
impl Sync for MarginTradingProperty
impl Unpin for MarginTradingProperty
impl UnsafeUnpin for MarginTradingProperty
impl UnwindSafe for MarginTradingProperty
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