pub struct OrderNewReq {
pub msg_header: Option<CryptoMsgHeader>,
pub side: Option<u32>,
pub stock_id: Option<u64>,
pub symbol: Option<String>,
pub exchange: Option<String>,
pub price: Option<String>,
pub order_qty: Option<String>,
pub ord_type: Option<u32>,
pub time_in_force: Option<u32>,
pub text: Option<String>,
pub security_type: Option<u32>,
pub market: Option<u32>,
}Fields§
§msg_header: Option<CryptoMsgHeader>§side: Option<u32>详见公共协议cryptotrade_cmn.OrderSide
stock_id: Option<u64>§symbol: Option<String>futu_symbol
exchange: Option<String>交易所
price: Option<String>§order_qty: Option<String>§ord_type: Option<u32>详见公共协议cryptotrade_cmn.OrderType
time_in_force: Option<u32>详见公共协议cryptotrade_cmn.TimeInForce
text: Option<String>可见字符, 最长100字节, server不根据此字段做任何逻辑, 只存储+校验
security_type: Option<u32>§market: Option<u32>详见公共协议cryptotrade_cmn.StockMarket
Implementations§
Source§impl OrderNewReq
impl OrderNewReq
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id 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(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price 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 ord_type(&self) -> u32
pub fn ord_type(&self) -> u32
Returns the value of ord_type, or the default value if ord_type 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 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.
Trait Implementations§
Source§impl Clone for OrderNewReq
impl Clone for OrderNewReq
Source§fn clone(&self) -> OrderNewReq
fn clone(&self) -> OrderNewReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderNewReq
impl Debug for OrderNewReq
Source§impl Default for OrderNewReq
impl Default for OrderNewReq
Source§impl Hash for OrderNewReq
impl Hash for OrderNewReq
Source§impl Message for OrderNewReq
impl Message for OrderNewReq
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 OrderNewReq
impl PartialEq for OrderNewReq
impl Eq for OrderNewReq
impl StructuralPartialEq for OrderNewReq
Auto Trait Implementations§
impl Freeze for OrderNewReq
impl RefUnwindSafe for OrderNewReq
impl Send for OrderNewReq
impl Sync for OrderNewReq
impl Unpin for OrderNewReq
impl UnsafeUnpin for OrderNewReq
impl UnwindSafe for OrderNewReq
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.