pub struct TriggerInfo {Show 13 fields
pub trigger_type: Option<u32>,
pub arrival_price_info: Option<ArrivalPriceInfo>,
pub trailing_stop_info: Option<TrailingStopInfo>,
pub trigger_status: Option<u32>,
pub trigger_time: Option<u64>,
pub expire_time: Option<u64>,
pub trigger_ba_trading: Option<bool>,
pub create_time: Option<u64>,
pub order_qty: Option<String>,
pub order_price: Option<String>,
pub update_time: Option<u64>,
pub enable_auto_short: Option<bool>,
pub price_type: Option<u32>,
}Expand description
条件单相关信息
Fields§
§trigger_type: Option<u32>触发类型, 取值参考 TriggerType (只读)
arrival_price_info: Option<ArrivalPriceInfo>各种不同的具体的TriggerInfo
trailing_stop_info: Option<TrailingStopInfo>§trigger_status: Option<u32>触发单状态 取值参考 TriggerStatus (只读)
trigger_time: Option<u64>触发时间 单位微秒 (只读)
expire_time: Option<u64>过期时间 单位微秒 (读写)
trigger_ba_trading: Option<bool>true:支持盘前盘后触发,false:只能盘中触发
create_time: Option<u64>创建时间 单位微秒 (只读)
order_qty: Option<String>触发时刻下单数量 (读写)
order_price: Option<String>触发时刻订单价格,跟踪止损单不填(空和0都不行) (读写)
update_time: Option<u64>更新时间 单位微秒 (只读)
enable_auto_short: Option<bool>是否允许转为卖空单,【期货】特指是否允许转方向(卖单->卖空 or 买单转buyback) (读写)
price_type: Option<u32>对价或最新价格,取值参考 PriceType, 目前期货平仓用到
Implementations§
Source§impl TriggerInfo
impl TriggerInfo
Sourcepub fn trigger_type(&self) -> u32
pub fn trigger_type(&self) -> u32
Returns the value of trigger_type, or the default value if trigger_type is unset.
Sourcepub fn trigger_status(&self) -> u32
pub fn trigger_status(&self) -> u32
Returns the value of trigger_status, or the default value if trigger_status is unset.
Sourcepub fn trigger_time(&self) -> u64
pub fn trigger_time(&self) -> u64
Returns the value of trigger_time, or the default value if trigger_time is unset.
Sourcepub fn expire_time(&self) -> u64
pub fn expire_time(&self) -> u64
Returns the value of expire_time, or the default value if expire_time is unset.
Sourcepub fn trigger_ba_trading(&self) -> bool
pub fn trigger_ba_trading(&self) -> bool
Returns the value of trigger_ba_trading, or the default value if trigger_ba_trading is unset.
Sourcepub fn create_time(&self) -> u64
pub fn create_time(&self) -> u64
Returns the value of create_time, or the default value if create_time is unset.
Sourcepub fn order_qty(&self) -> &str
pub fn order_qty(&self) -> &str
Returns the value of order_qty, or the default value if order_qty is unset.
Sourcepub fn order_price(&self) -> &str
pub fn order_price(&self) -> &str
Returns the value of order_price, or the default value if order_price is unset.
Sourcepub fn update_time(&self) -> u64
pub fn update_time(&self) -> u64
Returns the value of update_time, or the default value if update_time is unset.
Sourcepub fn enable_auto_short(&self) -> bool
pub fn enable_auto_short(&self) -> bool
Returns the value of enable_auto_short, or the default value if enable_auto_short is unset.
Sourcepub fn price_type(&self) -> u32
pub fn price_type(&self) -> u32
Returns the value of price_type, or the default value if price_type is unset.
Trait Implementations§
Source§impl Clone for TriggerInfo
impl Clone for TriggerInfo
Source§fn clone(&self) -> TriggerInfo
fn clone(&self) -> TriggerInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TriggerInfo
impl Debug for TriggerInfo
Source§impl Default for TriggerInfo
impl Default for TriggerInfo
Source§impl Hash for TriggerInfo
impl Hash for TriggerInfo
Source§impl Message for TriggerInfo
impl Message for TriggerInfo
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 TriggerInfo
impl PartialEq for TriggerInfo
impl Eq for TriggerInfo
impl StructuralPartialEq for TriggerInfo
Auto Trait Implementations§
impl Freeze for TriggerInfo
impl RefUnwindSafe for TriggerInfo
impl Send for TriggerInfo
impl Sync for TriggerInfo
impl Unpin for TriggerInfo
impl UnsafeUnpin for TriggerInfo
impl UnwindSafe for TriggerInfo
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.