status
Retrieve a complete portfolio snapshot: cash by currency, holdings with units, average cost, live price, and unrealized P&L per position and total. Read-only; use before trades or to check P&L.
Instructions
Get a full snapshot of the user's portfolio: cash balances per currency, every holding with units / average cost / live price, and unrealized P&L per position and in total.
Use when the user asks "show my portfolio", "how is my P&L", or before proposing any trade. Read-only; fetches live quotes, so values change between calls.
Returns:
Object with cash (currency → amount), all_holdings (every position,
priced the same way whatever the symbol: units, avg_cost, live price,
market value, pnl_pct; null price fields when a quote is unavailable;
each carries alerts, the user's per-asset alert lines with the
distance still to go, e.g. "距 price_below 还有 3.2%" — a tracked asset
with alert lines but no holding row appears as an is_tracking_only row),
total_assets_cny, fx (rate to CNY per non-CNY currency in use), an
optional gold summary when a gold-per-gram holding exists, and
performance (real-account TWR 30d / YTD / since inception, XIRR, max
drawdown with peak/trough dates, annualised volatility, return vs the
configured benchmark, price_basis per symbol (raw | adjusted), and data_quality;
or {"status": "insufficient_history"} until the ledger spans 2 trading days),
income_30d (dividends / interest received in the last 30 days by currency;
only present when there are any), and pending_fund_orders +
pending_fund_orders_line (off-exchange fund orders placed but not yet
confirmed — cash already deducted, total_assets_cny counts them at face
value; only present when there are any).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |