Skip to main content

AccFundInfo

Struct AccFundInfo 

Source
pub struct AccFundInfo {
Show 70 fields pub currency: Option<u32>, pub total_asset: Option<String>, pub hold: Option<String>, pub available: Option<String>, pub initial_margin: Option<String>, pub maintenance_margin: Option<String>, pub max_power_long: Option<String>, pub max_power_short: Option<String>, pub drawable: Option<String>, pub mv: Option<String>, pub long_mv: Option<String>, pub short_mv: Option<String>, pub loan_max: Option<String>, pub debit_recover: Option<String>, pub margin_call_balance: Option<String>, pub margin_call_balance_ratio: Option<String>, pub margin_call_recover: Option<String>, pub risk_level: Option<u32>, pub absolute_safe_mcb_ratio: Option<String>, pub margin_call: Option<String>, pub risk_status: Option<u32>, pub pdt_seq: Vec<i32>, pub is_pdt: Option<bool>, pub beginning_dtbp: Option<String>, pub remaining_dtbp: Option<String>, pub unrealized_profit: Option<String>, pub realized_profit: Option<String>, pub cash_in_credit: Option<String>, pub dt_call_amount: Option<String>, pub risk_status_client: Option<i32>, pub net_cash_power: Option<String>, pub pending_asset: Option<String>, pub dt_status: Option<i32>, pub fund_cashing: Option<bool>, pub fund_market_value: Option<String>, pub temp_available_fund_credit: Option<String>, pub average_profit: Option<String>, pub diluted_profit: Option<String>, pub lever_multi: Option<String>, pub mm_balance_ratio: Option<String>, pub mm_balance: Option<String>, pub stock_market: Option<u32>, pub client_level: Option<u32>, pub remaining_general_nisa_limit: Option<String>, pub margin_requirement: Option<String>, pub remaining_tsumitate_nisa_limit: Option<String>, pub premium_option_mv: Option<String>, pub swap: Option<String>, pub accumulated_incomes: Option<String>, pub fund_value: Option<String>, pub custody_balance: Option<String>, pub available_custody_balance: Option<String>, pub custody_to_hold_balance: Option<String>, pub crypto_available: Option<String>, pub crypto_hold: Option<String>, pub virtual_limit: Option<String>, pub remaining_virtual_limit: Option<String>, pub virtual_limit_state: Option<u32>, pub elv: Option<String>, pub buy_power: Option<String>, pub im: Option<String>, pub im_ratio: Option<String>, pub margin_total: Option<String>, pub margin_cash_total: Option<String>, pub margin_position_total: Option<String>, pub withdrawable: Option<String>, pub accrued_fee: Option<String>, pub position_im: Option<String>, pub position_mm: Option<String>, pub position_sem: Option<String>,
}
Expand description

账户资金信息

Fields§

§currency: Option<u32>

货币类型,取值参考 Currency 枚举

§total_asset: Option<String>

资产净值

§hold: Option<String>

冻结资金

§available: Option<String>

可用资金

§initial_margin: Option<String>

初始保证金

§maintenance_margin: Option<String>

维持保证金

§max_power_long: Option<String>

最大做多购买力

§max_power_short: Option<String>

最大做空购买力

§drawable: Option<String>

现金可提,和AccCashInfo.cash_drawable一致

§mv: Option<String>

持仓市值

§long_mv: Option<String>

多头持仓市值

§short_mv: Option<String>

空头持仓市值

§loan_max: Option<String>

最高借贷额

§debit_recover: Option<String>

追收金额

§margin_call_balance: Option<String>

MarginCall保证金剩余

§margin_call_balance_ratio: Option<String>

过夜风控比例

§margin_call_recover: Option<String>

追缴保证金

§risk_level: Option<u32>

已废弃,风控监察不会返回,新客户端不使用这个字段

§absolute_safe_mcb_ratio: Option<String>

RiskLevel==ABSOLUTE_SAFE时, 客户端需用来展示的固定过夜风控比例

§margin_call: Option<String>

MarginCall保证金

§risk_status: Option<u32>

需要找风控拿最新的状态码

§pdt_seq: Vec<i32>

日内交易序列,【美分】目前适用

§is_pdt: Option<bool>

是否PDT用户

§beginning_dtbp: Option<String>

日内交易购买力,is_pdt==true时才有

§remaining_dtbp: Option<String>

剩余日内交易购买力,is_pdt==true时才有

§unrealized_profit: Option<String>

未实现盈亏

§realized_profit: Option<String>

已实现盈亏

§cash_in_credit: Option<String>

入金授信开仓上限,目前只有期货用到

§dt_call_amount: Option<String>

客户当前由于日内交易的代缴金额

§risk_status_client: Option<i32>

账户风险状态码,客户端专用

§net_cash_power: Option<String>

A=1,非常安全 A=2,安全 A=3,较安全 A=4,较低风险 A=5,中等风险 A=6,偏高风险 A=7,预警 A=8,危险 A=9,危险

净现金购买力

§pending_asset: Option<String>

在途资产净值

§dt_status: Option<i32>

日内交易状态

§fund_cashing: Option<bool>

是否采用现金宝现金化,账户为融资账户且现金化开关打开时,该字段为true

§fund_market_value: Option<String>

证券账户关联的基金账户的现金宝市值

§temp_available_fund_credit: Option<String>

临时可用基金授信

§average_profit: Option<String>

累计持仓盈亏(股票)/收益(基金)

§diluted_profit: Option<String>

累计持仓盈亏(股票)/收益(基金)

§lever_multi: Option<String>

杠杆倍数

§mm_balance_ratio: Option<String>

强平比例

§mm_balance: Option<String>

剩余流动性 elv-mm

§stock_market: Option<u32>

交易市场 仅diff_market_fund_info_list用到

§client_level: Option<u32>

(透传风控监察协议0xb8f3)客户端级别类型 0-3定义见 risk_factor_parser.ClientLevel,目前客户端展示的是这个字段

§remaining_general_nisa_limit: Option<String>

一般nisa子账户的剩余限额

§margin_requirement: Option<String>

保证金(现金账户)

§remaining_tsumitate_nisa_limit: Option<String>

储蓄nisa子账户的剩余限额

§premium_option_mv: Option<String>

70~79 号段为期货专用

权利金期权市值

§swap: Option<String>

80~99号段为杠杆式外汇专用

隔夜利息

§accumulated_incomes: Option<String>

100~199号段为基金专用

账户级累计收益

§fund_value: Option<String>

基金持仓市值

§custody_balance: Option<String>

200~299号数字货币专用

数字货币托管钱包资产

§available_custody_balance: Option<String>

数字货币托管钱包可用资产

§custody_to_hold_balance: Option<String>

数字货币托管钱包冻结资产

§crypto_available: Option<String>

数字货币可用资产

§crypto_hold: Option<String>

数字货币冻结资产

§virtual_limit: Option<String>

虚拟资产持仓限额,decimal类型

§remaining_virtual_limit: Option<String>

虚拟资产剩余持仓限额,不小于0,decimal类型

§virtual_limit_state: Option<u32>

虚拟资产持仓限额状态,取值枚举见【VIRTUAL_LIMIT_STATE】

§elv: Option<String>

300~349为JP信用/衍生品账户专用

收入保证金总额(受入保証金合計)

§buy_power: Option<String>

信用账户最大购买力(新规建余力)

§im: Option<String>

保证金占用总额(必要保証金)

§im_ratio: Option<String>

委托保证金率(委託保證金率)

§margin_total: Option<String>

差额保证金总额(差入保証金合計)

§margin_cash_total: Option<String>

保证金现金总额(保証金現金合計)

§margin_position_total: Option<String>

保证金证券总额(代用有価証券合計)

§withdrawable: Option<String>

信用账户可振替到现物账户的金额(振替(引出)余力)

§accrued_fee: Option<String>

应计费用,持仓的应计费用汇总

§position_im: Option<String>

必要保证金(initial margin),JP衍生品账户专用

§position_mm: Option<String>

维持保证金(maintenance margin),JP衍生品账户专用

§position_sem: Option<String>

最低维持证据金(soft edge margin),JP衍生品账户专用

Implementations§

Source§

impl AccFundInfo

Source

pub fn currency(&self) -> u32

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

Source

pub fn total_asset(&self) -> &str

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

Source

pub fn hold(&self) -> &str

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

Source

pub fn available(&self) -> &str

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

Source

pub fn initial_margin(&self) -> &str

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

Source

pub fn maintenance_margin(&self) -> &str

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

Source

pub fn max_power_long(&self) -> &str

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

Source

pub fn max_power_short(&self) -> &str

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

Source

pub fn drawable(&self) -> &str

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

Source

pub fn mv(&self) -> &str

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

Source

pub fn long_mv(&self) -> &str

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

Source

pub fn short_mv(&self) -> &str

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

Source

pub fn loan_max(&self) -> &str

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

Source

pub fn debit_recover(&self) -> &str

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

Source

pub fn margin_call_balance(&self) -> &str

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

Source

pub fn margin_call_balance_ratio(&self) -> &str

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

Source

pub fn margin_call_recover(&self) -> &str

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

Source

pub fn risk_level(&self) -> u32

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

Source

pub fn absolute_safe_mcb_ratio(&self) -> &str

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

Source

pub fn margin_call(&self) -> &str

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

Source

pub fn risk_status(&self) -> u32

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

Source

pub fn is_pdt(&self) -> bool

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

Source

pub fn beginning_dtbp(&self) -> &str

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

Source

pub fn remaining_dtbp(&self) -> &str

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

Source

pub fn unrealized_profit(&self) -> &str

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

Source

pub fn realized_profit(&self) -> &str

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

Source

pub fn cash_in_credit(&self) -> &str

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

Source

pub fn dt_call_amount(&self) -> &str

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

Source

pub fn risk_status_client(&self) -> i32

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

Source

pub fn net_cash_power(&self) -> &str

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

Source

pub fn pending_asset(&self) -> &str

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

Source

pub fn dt_status(&self) -> i32

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

Source

pub fn fund_cashing(&self) -> bool

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

Source

pub fn fund_market_value(&self) -> &str

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

Source

pub fn temp_available_fund_credit(&self) -> &str

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

Source

pub fn average_profit(&self) -> &str

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

Source

pub fn diluted_profit(&self) -> &str

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

Source

pub fn lever_multi(&self) -> &str

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

Source

pub fn mm_balance_ratio(&self) -> &str

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

Source

pub fn mm_balance(&self) -> &str

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

Source

pub fn stock_market(&self) -> u32

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

Source

pub fn client_level(&self) -> u32

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

Source

pub fn remaining_general_nisa_limit(&self) -> &str

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

Source

pub fn margin_requirement(&self) -> &str

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

Source

pub fn remaining_tsumitate_nisa_limit(&self) -> &str

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

Source

pub fn premium_option_mv(&self) -> &str

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

Source

pub fn swap(&self) -> &str

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

Source

pub fn accumulated_incomes(&self) -> &str

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

Source

pub fn fund_value(&self) -> &str

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

Source

pub fn custody_balance(&self) -> &str

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

Source

pub fn available_custody_balance(&self) -> &str

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

Source

pub fn custody_to_hold_balance(&self) -> &str

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

Source

pub fn crypto_available(&self) -> &str

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

Source

pub fn crypto_hold(&self) -> &str

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

Source

pub fn virtual_limit(&self) -> &str

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

Source

pub fn remaining_virtual_limit(&self) -> &str

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

Source

pub fn virtual_limit_state(&self) -> u32

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

Source

pub fn elv(&self) -> &str

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

Source

pub fn buy_power(&self) -> &str

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

Source

pub fn im(&self) -> &str

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

Source

pub fn im_ratio(&self) -> &str

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

Source

pub fn margin_total(&self) -> &str

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

Source

pub fn margin_cash_total(&self) -> &str

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

Source

pub fn margin_position_total(&self) -> &str

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

Source

pub fn withdrawable(&self) -> &str

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

Source

pub fn accrued_fee(&self) -> &str

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

Source

pub fn position_im(&self) -> &str

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

Source

pub fn position_mm(&self) -> &str

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

Source

pub fn position_sem(&self) -> &str

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

Trait Implementations§

Source§

impl Clone for AccFundInfo

Source§

fn clone(&self) -> AccFundInfo

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 AccFundInfo

Source§

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

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

impl Default for AccFundInfo

Source§

fn default() -> Self

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

impl Hash for AccFundInfo

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 AccFundInfo

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 AccFundInfo

Source§

fn eq(&self, other: &AccFundInfo) -> 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 AccFundInfo

Source§

impl StructuralPartialEq for AccFundInfo

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