> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phoenix.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Get trader portfolio values

> Handles `GET /v1/traders/{trader_pubkey}/portfolio-values` via `get.v1.traders.by_trader_pubkey.portfolio_values`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json get /v1/traders/{trader_pubkey}/portfolio-values
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/traders/{trader_pubkey}/portfolio-values:
    get:
      tags:
        - Trader
      summary: Get trader portfolio values
      description: >-
        Handles `GET /v1/traders/{trader_pubkey}/portfolio-values` via
        `get.v1.traders.by_trader_pubkey.portfolio_values`.
      operationId: get.v1.traders.by_trader_pubkey.portfolio_values
      parameters:
        - name: trader_pubkey
          in: path
          description: Trader public key (base58 encoded)
          required: true
          schema:
            type: string
        - name: resolution
          in: query
          description: >-
            Resolution/timeframe: 1m (testing only), 15m, 30m, 1h, 4h, 1d, 1w,
            1M (month)
          required: true
          schema:
            type: string
        - name: startTime
          in: query
          description: 'Start time in milliseconds since Unix epoch (max range: 1 year)'
          required: false
          schema:
            type: integer
            format: int64
        - name: endTime
          in: query
          description: 'End time in milliseconds since Unix epoch (max range: 1 year)'
          required: false
          schema:
            type: integer
            format: int64
        - name: limit
          in: query
          description: 'Max number of data points (default: 1440, max: 2000)'
          required: false
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PortfolioValuePoint'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    PortfolioValuePoint:
      type: object
      description: Portfolio value data point
      required:
        - timestamp
        - startTime
        - endTime
        - value
      properties:
        endTime:
          type: integer
          format: int64
          description: End time in seconds since Unix epoch
        positions:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HashMap'
              description: Positions snapshot for this point in time
        startTime:
          type: integer
          format: int64
          description: Start time in seconds since Unix epoch
        timestamp:
          type: integer
          format: int64
          description: 'Deprecated: Unix timestamp in seconds.'
        value:
          type: number
          format: double
          description: Portfolio value as a floating-point number
    HashMap:
      type: object
      additionalProperties:
        type: object
        description: Position data for a single market stored in snapshots
        required:
          - baseLots
          - quoteLots
          - positionValue
          - initialMargin
        properties:
          baseLots:
            type: string
            description: Base lots as a formatted string
          initialMargin:
            type: string
            description: Initial margin as a formatted string
          positionValue:
            type: string
            description: Position value as a formatted string
          quoteLots:
            type: string
            description: Virtual quote lots as a formatted string
      propertyNames:
        type: string
  securitySchemes:
    PhoenixBearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by `/v1/auth/*` login endpoints.

````