pub struct ReportInfo {Show 28 fields
pub router_exchange: Option<String>,
pub exec_type: Option<String>,
pub symbol: Option<String>,
pub symbol_base: Option<String>,
pub symbol_quote: Option<String>,
pub exec_id: Option<String>,
pub account: Option<String>,
pub order_id_up: Option<String>,
pub cl_ord_id: Option<String>,
pub orig_cl_ord_id: Option<String>,
pub order_qty: Option<String>,
pub last_qty: Option<String>,
pub cum_qty: Option<String>,
pub leaves_qty: Option<String>,
pub price: Option<String>,
pub last_px: Option<String>,
pub avg_px: Option<String>,
pub ord_status: Option<String>,
pub ord_type: Option<String>,
pub side: Option<String>,
pub text: Option<String>,
pub tif: Option<String>,
pub transact_time: Option<u64>,
pub report_type: Option<String>,
pub order_id: Option<String>,
pub account_id: Option<u64>,
pub cid: Option<u64>,
pub last_mkt: Option<String>,
}Fields§
§router_exchange: Option<String>上游交易所
exec_type: Option<String>执行报告类型
symbol: Option<String>§symbol_base: Option<String>§symbol_quote: Option<String>§exec_id: Option<String>执行报告 id
account: Option<String>上游account id
order_id_up: Option<String>上游订单 id
cl_ord_id: Option<String>§orig_cl_ord_id: Option<String>§order_qty: Option<String>订单数量
last_qty: Option<String>本次成交量
cum_qty: Option<String>累计成交量
leaves_qty: Option<String>未成交量
price: Option<String>§last_px: Option<String>§avg_px: Option<String>§ord_status: Option<String>订单状态,fix 枚举:0-新订单,1-部分成交,2-完全成交,4-已撤销,8-已拒绝,C-已过期
ord_type: Option<String>订单类型,fix 枚举:1-市价单,2-限价单
side: Option<String>买卖方向,fix 枚举:1-买,2-卖
text: Option<String>§tif: Option<String>fix 枚举:0-当日有效,1-Good Till Cancel撤销前有效
transact_time: Option<u64>上游报告处理(创建)时间,微秒
report_type: Option<String>报告类型 OrderFill-成交报告,OrderNew-下单成功报告,OrderReject-下单拒绝报告(执行报告中的拒绝),OrderCancel-撤单报告,CancelReject-撤单拒绝报告,SessionReject-会话拒绝报告,Expired-过期报告,Unknown-未知报
order_id: Option<String>内部订单id
account_id: Option<u64>账户长ID
cid: Option<u64>customer id
last_mkt: Option<String>成交的执行市场原始值
Implementations§
Source§impl ReportInfo
impl ReportInfo
Sourcepub fn router_exchange(&self) -> &str
pub fn router_exchange(&self) -> &str
Returns the value of router_exchange, or the default value if router_exchange is unset.
Sourcepub fn exec_type(&self) -> &str
pub fn exec_type(&self) -> &str
Returns the value of exec_type, or the default value if exec_type 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 symbol_base(&self) -> &str
pub fn symbol_base(&self) -> &str
Returns the value of symbol_base, or the default value if symbol_base is unset.
Sourcepub fn symbol_quote(&self) -> &str
pub fn symbol_quote(&self) -> &str
Returns the value of symbol_quote, or the default value if symbol_quote is unset.
Sourcepub fn exec_id(&self) -> &str
pub fn exec_id(&self) -> &str
Returns the value of exec_id, or the default value if exec_id is unset.
Sourcepub fn account(&self) -> &str
pub fn account(&self) -> &str
Returns the value of account, or the default value if account is unset.
Sourcepub fn order_id_up(&self) -> &str
pub fn order_id_up(&self) -> &str
Returns the value of order_id_up, or the default value if order_id_up is unset.
Sourcepub fn cl_ord_id(&self) -> &str
pub fn cl_ord_id(&self) -> &str
Returns the value of cl_ord_id, or the default value if cl_ord_id is unset.
Sourcepub fn orig_cl_ord_id(&self) -> &str
pub fn orig_cl_ord_id(&self) -> &str
Returns the value of orig_cl_ord_id, or the default value if orig_cl_ord_id 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 last_qty(&self) -> &str
pub fn last_qty(&self) -> &str
Returns the value of last_qty, or the default value if last_qty 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 leaves_qty(&self) -> &str
pub fn leaves_qty(&self) -> &str
Returns the value of leaves_qty, or the default value if leaves_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 last_px(&self) -> &str
pub fn last_px(&self) -> &str
Returns the value of last_px, or the default value if last_px is unset.
Sourcepub fn avg_px(&self) -> &str
pub fn avg_px(&self) -> &str
Returns the value of avg_px, or the default value if avg_px is unset.
Sourcepub fn ord_status(&self) -> &str
pub fn ord_status(&self) -> &str
Returns the value of ord_status, or the default value if ord_status is unset.
Sourcepub fn ord_type(&self) -> &str
pub fn ord_type(&self) -> &str
Returns the value of ord_type, or the default value if ord_type is unset.
Sourcepub fn transact_time(&self) -> u64
pub fn transact_time(&self) -> u64
Returns the value of transact_time, or the default value if transact_time is unset.
Sourcepub fn report_type(&self) -> &str
pub fn report_type(&self) -> &str
Returns the value of report_type, or the default value if report_type 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 account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Trait Implementations§
Source§impl Clone for ReportInfo
impl Clone for ReportInfo
Source§fn clone(&self) -> ReportInfo
fn clone(&self) -> ReportInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReportInfo
impl Debug for ReportInfo
Source§impl Default for ReportInfo
impl Default for ReportInfo
Source§impl Hash for ReportInfo
impl Hash for ReportInfo
Source§impl Message for ReportInfo
impl Message for ReportInfo
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 ReportInfo
impl PartialEq for ReportInfo
impl Eq for ReportInfo
impl StructuralPartialEq for ReportInfo
Auto Trait Implementations§
impl Freeze for ReportInfo
impl RefUnwindSafe for ReportInfo
impl Send for ReportInfo
impl Sync for ReportInfo
impl Unpin for ReportInfo
impl UnsafeUnpin for ReportInfo
impl UnwindSafe for ReportInfo
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.