dashboardPortfolio
The portfolio summary for the active workspace identified by ownerID (the
org alias or a workspace UUID), scoped strictly to the caller's running bots
in that workspace whose mode is mode (default live). Ask once per mode for
the live and the paper (dry_run) aggregate.
dashboardPortfolio(
ownerID: String!
mode: BotBotMode! = live
): DashboardPortfolio!
Arguments
dashboardPortfolio.ownerID ● String! non-null scalar
dashboardPortfolio.mode ● BotBotMode! non-null enum
Type
DashboardPortfolio object
Decision-ready portfolio aggregate across the caller's RUNNING bots of ONE bot mode (live or dry_run) in the active workspace, computed once on the server. Live and paper (dry_run) bots are never summed together: paper stake is simulated, live stake is real money.
- totalValue: Σ (open-position stake + unrealized profit)
- openPnl: Σ unrealized profit on open positions
- pnlDelta: openPnl as a percent of committed stake (the ▲/▼ % indicator)
- currency: the shared stake currency of the contributing bots ("" when empty)
- pnlSeries: trailing-7d cumulative realized PnL, one point per UTC day
- allocation: one slice per running bot holding ≥1 open position (pcts ≈ 100)
The query errors with code MIXED_STAKE_CURRENCY when the contributing bots of the requested mode do not share a single stake currency (a single aggregate would mix unlike units). The guard is per mode: a live USDT fleet and a paper BTC fleet are both valid.