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: f64v1.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§
Auto Trait Implementations§
impl Freeze for FundsOut
impl RefUnwindSafe for FundsOut
impl Send for FundsOut
impl Sync for FundsOut
impl Unpin for FundsOut
impl UnsafeUnpin for FundsOut
impl UnwindSafe for FundsOut
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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