Skip to main content

FundsOut

Struct FundsOut 

Source
struct FundsOut {
Show 34 fields power: f64, total_assets: f64, cash: f64, market_val: f64, frozen_cash: f64, debt_cash: f64, avl_withdrawal_cash: f64, currency: Option<i32>, available_funds: Option<f64>, unrealized_pl: Option<f64>, realized_pl: Option<f64>, risk_level: Option<i32>, risk_status: Option<i32>, initial_margin: Option<f64>, maintenance_margin: Option<f64>, margin_call_margin: Option<f64>, max_power_short: Option<f64>, net_cash_power: Option<f64>, long_mv: Option<f64>, short_mv: Option<f64>, pending_asset: Option<f64>, max_withdrawal: Option<f64>, is_pdt: Option<bool>, pdt_seq: Option<String>, beginning_dtbp: Option<f64>, remaining_dtbp: Option<f64>, dt_call_amount: Option<f64>, dt_status: Option<i32>, securities_assets: Option<f64>, fund_assets: Option<f64>, bond_assets: Option<f64>, cash_info_list: Vec<CashInfoOut>, market_info_list: Vec<MarketInfoOut>, currency_warning: Option<String>,
}

Fields§

§power: f64§total_assets: f64§cash: f64

v1.4.106 codex 1612 Candidate A: top-level summary cash, in response currency field. 等于 cash_info_list 跨币种相加 (跨币种不能无汇率相加, 由 backend Ndt_Trd_AccFund.fTotalCash 直传, 对齐 C++ pFunds->set_cash(nnFunds.fTotalCash)). 综合账户用 currency 字段标识此 cash 的口径 (union_currency for futures/universal, 主市场 currency for legacy 普通账户). 分币种现金 breakdown 看 cash_info_list.

§market_val: f64§frozen_cash: f64§debt_cash: f64§avl_withdrawal_cash: f64§currency: Option<i32>

账户主货币(1=HKD / 2=USD / 3=CNY / 4=JPY / 5=SGD / 6=AUD / 7=CAD / 8=MYR)

§available_funds: Option<f64>

可用资金(margin 账户与 cash 不同)

§unrealized_pl: Option<f64>

浮动盈亏

§realized_pl: Option<f64>

已实现盈亏

§risk_level: Option<i32>

风控级别

§risk_status: Option<i32>

风控状态

§initial_margin: Option<f64>

初始保证金

§maintenance_margin: Option<f64>

维持保证金

§margin_call_margin: Option<f64>

保证金追加金额

§max_power_short: Option<f64>

做空购买力

§net_cash_power: Option<f64>

剩余现金购买力 v1.4.104 eli P1-002 (P1) fix: 移除 skip_serializing_if, 让字段 始终出现 (即使 None → null) 以与 REST 33-key shape 对齐. agent 按 “observed fields” 推断 schema 不再误判.

§long_mv: Option<f64>

多头持仓市值

§short_mv: Option<f64>

空头持仓市值

§pending_asset: Option<f64>

挂单占用资产

§max_withdrawal: Option<f64>

可取现上限

§is_pdt: Option<bool>

是否 Pattern Day Trader(US 账户)

§pdt_seq: Option<String>

PDT 标识序列号

§beginning_dtbp: Option<f64>

v1.4.102 BUG-010 fix: 初始日内交易购买力 (DTBP, US PDT 账户). REST 已有但 MCP 漏暴露 — leaf v1.4.100 报告矩阵 9 缺字段之一.

§remaining_dtbp: Option<f64>

剩余日内交易购买力(US PDT 账户)

§dt_call_amount: Option<f64>

日内交易追加金额

§dt_status: Option<i32>

日内交易风险状态

§securities_assets: Option<f64>

证券资产

§fund_assets: Option<f64>

基金资产

§bond_assets: Option<f64>

债券资产

§cash_info_list: Vec<CashInfoOut>

分币种现金信息(多币种账户 per-currency breakdown)

§market_info_list: Vec<MarketInfoOut>

分市场资产信息(综合账户 / 跨市场 per-market breakdown)

§currency_warning: Option<String>

用户显式传 currency, 但 backend 按账户基准币种返回时的提示。 例如 requested USD, returned HKD;未显式传 currency 或返回币种一致时为 None。

Trait Implementations§

Source§

impl Serialize for FundsOut

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> 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.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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, 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