pub struct OrderLegInfo {
pub leg_id: Option<String>,
pub leg_symbol: Option<String>,
pub leg_exchange: Option<String>,
pub leg_ratio_qty: Option<String>,
pub leg_side: Option<u32>,
pub leg_security_type: Option<u32>,
pub leg_stock_name: Option<String>,
pub leg_hp_multiplier: Option<String>,
pub leg_avg_fill_price: Option<String>,
}Fields§
§leg_id: Option<String>svr 生成,返回给客户端。下单的时候客户端不需要放回,获取订单信息的时候会放回;目前看起来
leg_symbol: Option<String>具体的腿的symbol,TCH220128C430000
leg_exchange: Option<String>对应leg_symbol 对应的exchange
leg_ratio_qty: Option<String>腿信息里面的比例
leg_side: Option<u32>方向
leg_security_type: Option<u32>具体到对应leg_symbol的security_type, 是SECURITY_TYPE_COMMON,还是SECURITY_TYPE_OPTION之类的。
leg_stock_name: Option<String>对应期权的名词
leg_hp_multiplier: Option<String>对应的期权张数 (主订单内部使用,计算成交价)
leg_avg_fill_price: Option<String>腿平均成交价
Implementations§
Source§impl OrderLegInfo
impl OrderLegInfo
Sourcepub fn leg_id(&self) -> &str
pub fn leg_id(&self) -> &str
Returns the value of leg_id, or the default value if leg_id is unset.
Sourcepub fn leg_symbol(&self) -> &str
pub fn leg_symbol(&self) -> &str
Returns the value of leg_symbol, or the default value if leg_symbol is unset.
Sourcepub fn leg_exchange(&self) -> &str
pub fn leg_exchange(&self) -> &str
Returns the value of leg_exchange, or the default value if leg_exchange is unset.
Sourcepub fn leg_ratio_qty(&self) -> &str
pub fn leg_ratio_qty(&self) -> &str
Returns the value of leg_ratio_qty, or the default value if leg_ratio_qty is unset.
Sourcepub fn leg_side(&self) -> u32
pub fn leg_side(&self) -> u32
Returns the value of leg_side, or the default value if leg_side is unset.
Sourcepub fn leg_security_type(&self) -> u32
pub fn leg_security_type(&self) -> u32
Returns the value of leg_security_type, or the default value if leg_security_type is unset.
Sourcepub fn leg_stock_name(&self) -> &str
pub fn leg_stock_name(&self) -> &str
Returns the value of leg_stock_name, or the default value if leg_stock_name is unset.
Sourcepub fn leg_hp_multiplier(&self) -> &str
pub fn leg_hp_multiplier(&self) -> &str
Returns the value of leg_hp_multiplier, or the default value if leg_hp_multiplier is unset.
Sourcepub fn leg_avg_fill_price(&self) -> &str
pub fn leg_avg_fill_price(&self) -> &str
Returns the value of leg_avg_fill_price, or the default value if leg_avg_fill_price is unset.
Trait Implementations§
Source§impl Clone for OrderLegInfo
impl Clone for OrderLegInfo
Source§fn clone(&self) -> OrderLegInfo
fn clone(&self) -> OrderLegInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderLegInfo
impl Debug for OrderLegInfo
Source§impl Default for OrderLegInfo
impl Default for OrderLegInfo
Source§impl Hash for OrderLegInfo
impl Hash for OrderLegInfo
Source§impl Message for OrderLegInfo
impl Message for OrderLegInfo
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 OrderLegInfo
impl PartialEq for OrderLegInfo
impl Eq for OrderLegInfo
impl StructuralPartialEq for OrderLegInfo
Auto Trait Implementations§
impl Freeze for OrderLegInfo
impl RefUnwindSafe for OrderLegInfo
impl Send for OrderLegInfo
impl Sync for OrderLegInfo
impl Unpin for OrderLegInfo
impl UnsafeUnpin for OrderLegInfo
impl UnwindSafe for OrderLegInfo
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.