Skip to main content

AccountInfoReq

Struct AccountInfoReq 

Source
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

Source

pub fn union_currency(&self) -> u32

Returns the value of union_currency, or the default value if union_currency is unset.

Source

pub fn quote_level(&self) -> u32

Returns the value of quote_level, or the default value if quote_level is unset.

Source

pub fn quote_type(&self) -> u32

Returns the value of quote_type, or the default value if quote_type is unset.

Source

pub fn with_position_im(&self) -> bool

Returns the value of with_position_im, or the default value if with_position_im is unset.

Source

pub fn notice_type(&self) -> u32

Returns the value of notice_type, or the default value if notice_type is unset.

Source

pub fn with_matched_quantity(&self) -> bool

Returns the value of with_matched_quantity, or the default value if with_matched_quantity is unset.

Source

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.

Source

pub fn use_overnight_price(&self) -> bool

Returns the value of use_overnight_price, or the default value if use_overnight_price is unset.

Source

pub fn without_combo(&self) -> bool

Returns the value of without_combo, or the default value if without_combo is unset.

Source

pub fn without_delisted_symbol(&self) -> bool

Returns the value of without_delisted_symbol, or the default value if without_delisted_symbol is unset.

Source

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.

Source

pub fn aas_fallback(&self) -> bool

Returns the value of aas_fallback, or the default value if aas_fallback is unset.

Source

pub fn version(&self) -> u64

Returns the value of version, or the default value if version is unset.

Source

pub fn expand_portfolio(&self) -> bool

Returns the value of expand_portfolio, or the default value if expand_portfolio is unset.

Source

pub fn asset_category(&self) -> u32

Returns the value of asset_category, or the default value if asset_category is unset.

Source

pub fn op_nn_uid(&self) -> u64

Returns the value of op_nn_uid, or the default value if op_nn_uid is unset.

Source

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.

Source

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

Source§

fn clone(&self) -> AccountInfoReq

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AccountInfoReq

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AccountInfoReq

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for AccountInfoReq

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for AccountInfoReq

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for AccountInfoReq

Source§

fn eq(&self, other: &AccountInfoReq) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for AccountInfoReq

Source§

impl StructuralPartialEq for AccountInfoReq

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more