pub struct SimpleOrderFill {
pub side: Option<u32>,
pub market: Option<u32>,
pub symbol: Option<String>,
pub order_id: Option<String>,
pub id: Option<String>,
pub qty: Option<String>,
pub price: Option<String>,
pub create_time: Option<u64>,
pub trading_period: Option<u32>,
pub exchange: Option<String>,
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>订单id
id: Option<String>成交id
qty: Option<String>成交股数
price: Option<String>成交价格
create_time: Option<u64>单位微秒, 成交创建时间
trading_period: Option<u32>订单所属时段,取值参考 TradingPeriod
exchange: Option<String>§input_source: Option<u32>input_source
round_timestamp: Option<i64>圆整后的时间戳,优先使用这个,create_time+trading_period供旧客户端使用
Implementations§
Source§impl SimpleOrderFill
impl SimpleOrderFill
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 price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price 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 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 exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange 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 SimpleOrderFill
impl Clone for SimpleOrderFill
Source§fn clone(&self) -> SimpleOrderFill
fn clone(&self) -> SimpleOrderFill
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SimpleOrderFill
impl Debug for SimpleOrderFill
Source§impl Default for SimpleOrderFill
impl Default for SimpleOrderFill
Source§impl Hash for SimpleOrderFill
impl Hash for SimpleOrderFill
Source§impl Message for SimpleOrderFill
impl Message for SimpleOrderFill
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 SimpleOrderFill
impl PartialEq for SimpleOrderFill
impl Eq for SimpleOrderFill
impl StructuralPartialEq for SimpleOrderFill
Auto Trait Implementations§
impl Freeze for SimpleOrderFill
impl RefUnwindSafe for SimpleOrderFill
impl Send for SimpleOrderFill
impl Sync for SimpleOrderFill
impl Unpin for SimpleOrderFill
impl UnsafeUnpin for SimpleOrderFill
impl UnwindSafe for SimpleOrderFill
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.