pub struct BatchCloseInfo {
pub order_type: Option<u32>,
pub order_side: Option<u32>,
pub symbol: Option<String>,
pub exchange_code: Option<u32>,
pub qty: Option<String>,
pub security_type: Option<u32>,
pub enable_ba_trade: Option<u32>,
pub time_in_force: Option<u32>,
pub price_type: Option<u32>,
pub exchange: Option<String>,
}Fields§
§order_type: Option<u32>取值参考 OrderType,若填充的是市价单,品种不支持的由svr转成限价单
order_side: Option<u32>取值参考 Side,客户端填充SIDE_BUY或SIDE_SELL,SIDE_BUY的svr会自动转为SIDE_BUY_BACK
symbol: Option<String>§exchange_code: Option<u32>期货所属交易所代码, 从行情获得,【期货】必填
qty: Option<String>下单数量
security_type: Option<u32>指定交易品种
enable_ba_trade: Option<u32>【美股】是否允许盘前盘后时段生效;【港股】是否允许盘前竞价提交。港美股填允许,A股通新股填不允许。取值参考EnableBATradeType
time_in_force: Option<u32>订单期限,取值参考OrderTimeInForce
price_type: Option<u32>对价或最新价格,取值参考 PriceType, 目前期货/股票平仓用到
exchange: Option<String>交易所
Implementations§
Source§impl BatchCloseInfo
impl BatchCloseInfo
Sourcepub fn order_type(&self) -> u32
pub fn order_type(&self) -> u32
Returns the value of order_type, or the default value if order_type is unset.
Sourcepub fn order_side(&self) -> u32
pub fn order_side(&self) -> u32
Returns the value of order_side, or the default value if order_side is unset.
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn exchange_code(&self) -> u32
pub fn exchange_code(&self) -> u32
Returns the value of exchange_code, or the default value if exchange_code is unset.
Sourcepub fn security_type(&self) -> u32
pub fn security_type(&self) -> u32
Returns the value of security_type, or the default value if security_type is unset.
Sourcepub fn enable_ba_trade(&self) -> u32
pub fn enable_ba_trade(&self) -> u32
Returns the value of enable_ba_trade, or the default value if enable_ba_trade is unset.
Sourcepub fn time_in_force(&self) -> u32
pub fn time_in_force(&self) -> u32
Returns the value of time_in_force, or the default value if time_in_force 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 BatchCloseInfo
impl Clone for BatchCloseInfo
Source§fn clone(&self) -> BatchCloseInfo
fn clone(&self) -> BatchCloseInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BatchCloseInfo
impl Debug for BatchCloseInfo
Source§impl Default for BatchCloseInfo
impl Default for BatchCloseInfo
Source§impl Hash for BatchCloseInfo
impl Hash for BatchCloseInfo
Source§impl Message for BatchCloseInfo
impl Message for BatchCloseInfo
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 BatchCloseInfo
impl PartialEq for BatchCloseInfo
impl Eq for BatchCloseInfo
impl StructuralPartialEq for BatchCloseInfo
Auto Trait Implementations§
impl Freeze for BatchCloseInfo
impl RefUnwindSafe for BatchCloseInfo
impl Send for BatchCloseInfo
impl Sync for BatchCloseInfo
impl Unpin for BatchCloseInfo
impl UnsafeUnpin for BatchCloseInfo
impl UnwindSafe for BatchCloseInfo
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.