Skip to main content
Retrieve complete portfolio for the authenticated caller.
object
required
Dictionary containing portfolio data if found, None otherwise Portfolio includes:
  • Aggregate metrics (margin, PnL, equity, volume, fees, etc.)
  • All positions (open and closed)
  • All orders (filled, open, cancelled)
Raises
  • ValueError — If API_SERVER_URL or ACCOUNT environment variable is not set
Example