pub struct SimpleOrder {Show 15 fields
pub side: Option<u32>,
pub market: Option<u32>,
pub symbol: Option<String>,
pub order_id: Option<String>,
pub type: Option<u32>,
pub qty: Option<String>,
pub cum_qty: Option<String>,
pub price: Option<String>,
pub avg_fill_price: Option<String>,
pub exchange: Option<String>,
pub create_time: Option<u64>,
pub status: Option<u32>,
pub trading_period: Option<u32>,
pub input_source: Option<u32>,
pub round_timestamp: Option<i64>,
}Fields§
§side: Option<u32>取值参考 Side
market: Option<u32>取值参考 Market
symbol: Option<String>股票代码
order_id: Option<String>订单号, 生命周期内维持不变
type: Option<u32>取值参考 OrderType
qty: Option<String>订单股数
cum_qty: Option<String>总已成交股数
price: Option<String>订单价格
avg_fill_price: Option<String>订单平均成交价
exchange: Option<String>§create_time: Option<u64>单位微秒
status: Option<u32>取值参考 OrderStatus
trading_period: Option<u32>订单所属时段,取值参考 TradingPeriod
input_source: Option<u32>input_source
round_timestamp: Option<i64>圆整后的时间戳,优先使用这个,create_time+trading_period供旧客户端使用
Implementations§
Source§impl SimpleOrder
impl SimpleOrder
Sourcepub fn market(&self) -> u32
pub fn market(&self) -> u32
Returns the value of market, or the default value if market 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 order_id(&self) -> &str
pub fn order_id(&self) -> &str
Returns the value of order_id, or the default value if order_id is unset.
Sourcepub fn cum_qty(&self) -> &str
pub fn cum_qty(&self) -> &str
Returns the value of cum_qty, or the default value if cum_qty 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 avg_fill_price(&self) -> &str
pub fn avg_fill_price(&self) -> &str
Returns the value of avg_fill_price, or the default value if avg_fill_price 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 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 status(&self) -> u32
pub fn status(&self) -> u32
Returns the value of status, or the default value if status is unset.
Sourcepub fn trading_period(&self) -> u32
pub fn trading_period(&self) -> u32
Returns the value of trading_period, or the default value if trading_period is unset.
Sourcepub fn input_source(&self) -> u32
pub fn input_source(&self) -> u32
Returns the value of input_source, or the default value if input_source is unset.
Sourcepub fn round_timestamp(&self) -> i64
pub fn round_timestamp(&self) -> i64
Returns the value of round_timestamp, or the default value if round_timestamp is unset.
Trait Implementations§
Source§impl Clone for SimpleOrder
impl Clone for SimpleOrder
Source§fn clone(&self) -> SimpleOrder
fn clone(&self) -> SimpleOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SimpleOrder
impl Debug for SimpleOrder
Source§impl Default for SimpleOrder
impl Default for SimpleOrder
Source§impl Hash for SimpleOrder
impl Hash for SimpleOrder
Source§impl Message for SimpleOrder
impl Message for SimpleOrder
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 SimpleOrder
impl PartialEq for SimpleOrder
impl Eq for SimpleOrder
impl StructuralPartialEq for SimpleOrder
Auto Trait Implementations§
impl Freeze for SimpleOrder
impl RefUnwindSafe for SimpleOrder
impl Send for SimpleOrder
impl Sync for SimpleOrder
impl Unpin for SimpleOrder
impl UnsafeUnpin for SimpleOrder
impl UnwindSafe for SimpleOrder
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.