pub struct AccountInfoReq {Show 20 fields
pub msg_header: Option<MsgHeader>,
pub union_currency: Option<u32>,
pub select_field_list: Vec<u32>,
pub quote_level: Option<u32>,
pub quote_type: Option<u32>,
pub with_position_im: Option<bool>,
pub notice_type: Option<u32>,
pub with_matched_quantity: Option<bool>,
pub without_fund_and_bond_data: Option<bool>,
pub use_overnight_price: Option<bool>,
pub without_combo: Option<bool>,
pub without_delisted_symbol: Option<bool>,
pub without_zero_quantity_pstn: Option<bool>,
pub aas_fallback: Option<bool>,
pub version: Option<u64>,
pub expand_portfolio: Option<bool>,
pub asset_category: Option<u32>,
pub op_nn_uid: Option<u64>,
pub high_prec_cur_price: Option<bool>,
pub use_high_prec: Option<bool>,
}Expand description
获取用户账户信息
Fields§
§msg_header: Option<MsgHeader>§union_currency: Option<u32>指定union_fund_info和union_today_statistic的换算币种,取值参考 Currency 枚举 请求期货(5),新加坡(6)可以指定货币,将不同币种的持仓转成目标币种,其他市场没有不同币种的持仓,因此无法指定货币,也不能返回分币种信息。只能使用默认币种:港股(HKD港币),美股(USD美元)
select_field_list: Vec<u32>指定需要返回的字段,不填写则全部返回,参考SelectField字段
quote_level: Option<u32>指定行情权限等级,具体参考QuoteLevel枚举
quote_type: Option<u32>指定行情盘前盘后价格类型,具体参考QuoteType枚举
with_position_im: Option<bool>risk oa使用
是否计算单个品种持仓保证金, 默认不计算
notice_type: Option<u32>通知类型,参考NoticeType枚举,若非svr推送导致的请求,则不填
with_matched_quantity: Option<bool>是否返回期权张数,默认不返回 [仅供ROA使用]
without_fund_and_bond_data: Option<bool>交易tab3.0改版增加
是否返回/计入基金和债券持仓数据,默认计入
use_overnight_price: Option<bool>美股5*24小时增加
是否使用夜盘价,默认不使用
without_combo: Option<bool>组合持仓增加
是否返回组合数据, 默认返回
without_delisted_symbol: Option<bool>过滤持仓参数
是否返回退市futu_symbol, 默认返回
without_zero_quantity_pstn: Option<bool>是否返回数量为0的持仓, 默认返回
aas_fallback: Option<bool>兜底逻辑
是否走兜底逻辑,默认不走
version: Option<u64>资产变更推送的version,没有则不填
expand_portfolio: Option<bool>投资组合参数 不填或填false,将投资组合聚合,组合汇总在portfolio_pstn_info_list,不在pstn_info_list中返回组合成分明细 填true,将投资组合展开,组合成分明细在pstn_info_list中返回,不在portfolio_pstn_info_list中返回组合汇总
展开投资组合,默认否
asset_category: Option<u32>JP信用/衍生品账户
同一账户下资产/风控数据维度的分类(目前只有JP信用/衍生品账户使用)
op_nn_uid: Option<u64>客户端透传给风控的参数,GetAccounInfo请求GetUniversalAcctInfo、GetUserAccountInfoV2时需要透传
被授权的操作人,及社会化被授信人
high_prec_cur_price: Option<bool>持仓、组合和腿是否返回高精度现价(不包含基金、债券和票据)。最多返回小数点后18位,会截去末尾零。
use_high_prec: Option<bool>所有字段使用高精度。
Implementations§
Source§impl AccountInfoReq
impl AccountInfoReq
Sourcepub fn union_currency(&self) -> u32
pub fn union_currency(&self) -> u32
Returns the value of union_currency, or the default value if union_currency is unset.
Sourcepub fn quote_level(&self) -> u32
pub fn quote_level(&self) -> u32
Returns the value of quote_level, or the default value if quote_level is unset.
Sourcepub fn quote_type(&self) -> u32
pub fn quote_type(&self) -> u32
Returns the value of quote_type, or the default value if quote_type is unset.
Sourcepub fn with_position_im(&self) -> bool
pub fn with_position_im(&self) -> bool
Returns the value of with_position_im, or the default value if with_position_im is unset.
Sourcepub fn notice_type(&self) -> u32
pub fn notice_type(&self) -> u32
Returns the value of notice_type, or the default value if notice_type is unset.
Sourcepub fn with_matched_quantity(&self) -> bool
pub fn with_matched_quantity(&self) -> bool
Returns the value of with_matched_quantity, or the default value if with_matched_quantity is unset.
Sourcepub fn without_fund_and_bond_data(&self) -> bool
pub fn without_fund_and_bond_data(&self) -> bool
Returns the value of without_fund_and_bond_data, or the default value if without_fund_and_bond_data is unset.
Sourcepub fn use_overnight_price(&self) -> bool
pub fn use_overnight_price(&self) -> bool
Returns the value of use_overnight_price, or the default value if use_overnight_price is unset.
Sourcepub fn without_combo(&self) -> bool
pub fn without_combo(&self) -> bool
Returns the value of without_combo, or the default value if without_combo is unset.
Sourcepub fn without_delisted_symbol(&self) -> bool
pub fn without_delisted_symbol(&self) -> bool
Returns the value of without_delisted_symbol, or the default value if without_delisted_symbol is unset.
Sourcepub fn without_zero_quantity_pstn(&self) -> bool
pub fn without_zero_quantity_pstn(&self) -> bool
Returns the value of without_zero_quantity_pstn, or the default value if without_zero_quantity_pstn is unset.
Sourcepub fn aas_fallback(&self) -> bool
pub fn aas_fallback(&self) -> bool
Returns the value of aas_fallback, or the default value if aas_fallback is unset.
Sourcepub fn version(&self) -> u64
pub fn version(&self) -> u64
Returns the value of version, or the default value if version is unset.
Sourcepub fn expand_portfolio(&self) -> bool
pub fn expand_portfolio(&self) -> bool
Returns the value of expand_portfolio, or the default value if expand_portfolio is unset.
Sourcepub fn asset_category(&self) -> u32
pub fn asset_category(&self) -> u32
Returns the value of asset_category, or the default value if asset_category is unset.
Sourcepub fn op_nn_uid(&self) -> u64
pub fn op_nn_uid(&self) -> u64
Returns the value of op_nn_uid, or the default value if op_nn_uid is unset.
Sourcepub fn high_prec_cur_price(&self) -> bool
pub fn high_prec_cur_price(&self) -> bool
Returns the value of high_prec_cur_price, or the default value if high_prec_cur_price is unset.
Sourcepub fn use_high_prec(&self) -> bool
pub fn use_high_prec(&self) -> bool
Returns the value of use_high_prec, or the default value if use_high_prec is unset.
Trait Implementations§
Source§impl Clone for AccountInfoReq
impl Clone for AccountInfoReq
Source§fn clone(&self) -> AccountInfoReq
fn clone(&self) -> AccountInfoReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountInfoReq
impl Debug for AccountInfoReq
Source§impl Default for AccountInfoReq
impl Default for AccountInfoReq
Source§impl Hash for AccountInfoReq
impl Hash for AccountInfoReq
Source§impl Message for AccountInfoReq
impl Message for AccountInfoReq
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 AccountInfoReq
impl PartialEq for AccountInfoReq
impl Eq for AccountInfoReq
impl StructuralPartialEq for AccountInfoReq
Auto Trait Implementations§
impl Freeze for AccountInfoReq
impl RefUnwindSafe for AccountInfoReq
impl Send for AccountInfoReq
impl Sync for AccountInfoReq
impl Unpin for AccountInfoReq
impl UnsafeUnpin for AccountInfoReq
impl UnwindSafe for AccountInfoReq
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.