pub struct RoaOrderNewReq {
pub msg_header: Option<RoaMsgHeader>,
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 security_type: Option<u32>,
pub market: Option<u32>,
}Fields§
§msg_header: Option<RoaMsgHeader>§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
security_type: Option<u32>详见公共协议cryptotrade_cmn.SecurityType
market: Option<u32>详见公共协议cryptotrade_cmn.StockMarket
Implementations§
Source§impl RoaOrderNewReq
impl RoaOrderNewReq
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 RoaOrderNewReq
impl Clone for RoaOrderNewReq
Source§fn clone(&self) -> RoaOrderNewReq
fn clone(&self) -> RoaOrderNewReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RoaOrderNewReq
impl Debug for RoaOrderNewReq
Source§impl Default for RoaOrderNewReq
impl Default for RoaOrderNewReq
Source§impl Hash for RoaOrderNewReq
impl Hash for RoaOrderNewReq
Source§impl Message for RoaOrderNewReq
impl Message for RoaOrderNewReq
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 RoaOrderNewReq
impl PartialEq for RoaOrderNewReq
impl Eq for RoaOrderNewReq
impl StructuralPartialEq for RoaOrderNewReq
Auto Trait Implementations§
impl Freeze for RoaOrderNewReq
impl RefUnwindSafe for RoaOrderNewReq
impl Send for RoaOrderNewReq
impl Sync for RoaOrderNewReq
impl Unpin for RoaOrderNewReq
impl UnsafeUnpin for RoaOrderNewReq
impl UnwindSafe for RoaOrderNewReq
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.