HeyTraders Documentation

Portfolio API

Portfolio resources aggregate user-owned account projections and historical equity. Every operation requires a user-owned key with read.

Operations

MethodPathRequired scopePurpose
GET/v1/portfolio/overviewreadRead the aggregate portfolio dashboard projection
GET/v1/portfolio/holdingsreadRead broker holdings across all accounts
GET/v1/portfolio/holdings/{account_id}readRead broker holdings for one account
GET/v1/portfolio/historyreadRead historical equity points and summary metrics
GET/v1/portfolio/funding-historyreadRead normalized cross-venue funding payment history
GET/v1/portfolio/daily-pnlreadRead daily total or unrealized PnL points
GET/v1/portfolio/summaryreadRead aggregate performance summary
GET/v1/portfolio/summary/{account_id}readRead one account's performance summary
GET/v1/portfolio/performancereadRead aggregate performance detail
GET/v1/portfolio/performance/{account_id}readRead one account's performance detail

Choosing a resource

  • Use overview for a current cross-account dashboard projection.
  • Use holdings when the broker-owned spot balances, futures balances, and positions are required.
  • Use history for a bounded equity time series and computed summary.
  • Use daily-pnl for date-range PnL points; mode=total uses portfolio-value deltas and mode=unrealized uses open-position unrealized-PnL deltas.
  • Use summary and performance for compact versus detailed analytics.

Account-specific paths enforce ownership. Date ranges and period limits are defined in OpenAPI and may be rejected when inverted or too large.

Availability semantics

Current holdings are broker-backed; historical analytics are derived from persisted snapshots. A failed account fetch is not an empty account and can make the aggregate holdings request unavailable. Preserve nullable valuation fields and freshness metadata. Never convert an unknown price, equity, or PnL to zero unless the response explicitly contains zero.