pub struct Uslv2OrderList {
pub lv2_type: Option<i32>,
pub ask_flag: Option<i32>,
pub ask_list: Vec<Uslv2Order>,
pub bid_flag: Option<i32>,
pub bid_list: Vec<Uslv2Order>,
pub recv_time: Option<u32>,
pub vss_time_ms: Option<u64>,
pub server_send_to_client_time_ms: Option<i64>,
pub server_recv_bid_from_exchange_time_ms: Option<i64>,
pub server_recv_ask_from_exchange_time_ms: Option<i64>,
pub not_cal_delay: Option<i32>,
pub order_size_precision: Option<i32>,
}Expand description
美股LV2订单列表。订阅位:SBIT_US_LV2_ORDER 和 SBIT_USOPT_LV2_ORDER (复用)
Fields§
§lv2_type: Option<i32>lv2品种。参考FTCmdStockQuoteSubData.proto中的UsLv2OrderType
ask_flag: Option<i32>是否有卖盘订单列表
ask_list: Vec<Uslv2Order>卖盘订单列表
bid_flag: Option<i32>是否有买盘订阅列表
bid_list: Vec<Uslv2Order>买盘订单列表
recv_time: Option<u32>从上游收到数据的时间
vss_time_ms: Option<u64>§server_send_to_client_time_ms: Option<i64>富途服务器发送给客户端的时间
server_recv_bid_from_exchange_time_ms: Option<i64>富途服务器从交易所收到数据的时间(for bid)
server_recv_ask_from_exchange_time_ms: Option<i64>富途服务器从交易所收到数据的时间(for ask)
not_cal_delay: Option<i32>不能用作统计时延 0:统计 1:不统计
order_size_precision: Option<i32>v1.4.110 final E.5 LOW: 补 field 12 对齐 C++ NNProtoFile/Server/PB/Quote/FTCmdStockQuoteCoverageData.proto:559. Rust handler 暂无 caller 但 proto 不留漂移 (per pitfall #23 防第 4 次复发).
订单数量精度n, 对USLV2Order中size放大了10^n次方
Implementations§
Source§impl Uslv2OrderList
impl Uslv2OrderList
Sourcepub fn lv2_type(&self) -> i32
pub fn lv2_type(&self) -> i32
Returns the value of lv2_type, or the default value if lv2_type is unset.
Sourcepub fn ask_flag(&self) -> i32
pub fn ask_flag(&self) -> i32
Returns the value of ask_flag, or the default value if ask_flag is unset.
Sourcepub fn bid_flag(&self) -> i32
pub fn bid_flag(&self) -> i32
Returns the value of bid_flag, or the default value if bid_flag is unset.
Sourcepub fn recv_time(&self) -> u32
pub fn recv_time(&self) -> u32
Returns the value of recv_time, or the default value if recv_time is unset.
Sourcepub fn vss_time_ms(&self) -> u64
pub fn vss_time_ms(&self) -> u64
Returns the value of vss_time_ms, or the default value if vss_time_ms is unset.
Sourcepub fn server_send_to_client_time_ms(&self) -> i64
pub fn server_send_to_client_time_ms(&self) -> i64
Returns the value of server_send_to_client_time_ms, or the default value if server_send_to_client_time_ms is unset.
Sourcepub fn server_recv_bid_from_exchange_time_ms(&self) -> i64
pub fn server_recv_bid_from_exchange_time_ms(&self) -> i64
Returns the value of server_recv_bid_from_exchange_time_ms, or the default value if server_recv_bid_from_exchange_time_ms is unset.
Sourcepub fn server_recv_ask_from_exchange_time_ms(&self) -> i64
pub fn server_recv_ask_from_exchange_time_ms(&self) -> i64
Returns the value of server_recv_ask_from_exchange_time_ms, or the default value if server_recv_ask_from_exchange_time_ms is unset.
Sourcepub fn not_cal_delay(&self) -> i32
pub fn not_cal_delay(&self) -> i32
Returns the value of not_cal_delay, or the default value if not_cal_delay is unset.
Sourcepub fn order_size_precision(&self) -> i32
pub fn order_size_precision(&self) -> i32
Returns the value of order_size_precision, or the default value if order_size_precision is unset.
Trait Implementations§
Source§impl Clone for Uslv2OrderList
impl Clone for Uslv2OrderList
Source§fn clone(&self) -> Uslv2OrderList
fn clone(&self) -> Uslv2OrderList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Uslv2OrderList
impl Debug for Uslv2OrderList
Source§impl Default for Uslv2OrderList
impl Default for Uslv2OrderList
Source§impl Message for Uslv2OrderList
impl Message for Uslv2OrderList
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.