# Get portfolio performance history

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/portfolio-history:
    get:
      summary: Get portfolio performance history
      deprecated: false
      description: ''
      operationId: getPortfolioHistory
      tags:
        - REST API/Endpoints/Portfolio
        - Portfolio
      parameters:
        - name: equivalent_currency_id
          in: query
          description: ''
          required: false
          example: b88b8879-efe3-11eb-b56f-0691764446a7
          schema:
            type: string
            format: uuid
        - name: timeframe
          in: query
          description: ''
          required: false
          example: WEEK
          schema:
            type: string
            enum:
              - DAY
              - WEEK
              - MONTH
              - SIX_MONTH
              - YEAR
      responses:
        '200':
          description: Portfolio performance history for the authenticated user
          content:
            '*/*':
              schema:
                properties:
                  data:
                    properties:
                      datapoints:
                        type: array
                        items:
                          properties:
                            time:
                              type: string
                              format: date-time
                            value:
                              properties:
                                value:
                                  type: string
                                assetId:
                                  type: string
                                  format: uuid
                                currencyId:
                                  type: string
                                  format: uuid
                              x-apidog-orders:
                                - value
                                - assetId
                                - currencyId
                              type: object
                          x-apidog-orders:
                            - time
                            - value
                          type: object
                      returnPercentage:
                        type: string
                    x-apidog-orders:
                      - datapoints
                      - returnPercentage
                    type: object
                x-apidog-orders:
                  - data
                type: object
          headers: {}
          x-apidog-name: OK
        '400':
          description: Invalid query parameters
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
        '401':
          description: Unauthorized - missing or invalid API key
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                    x-apidog-orders:
                      - code
                x-apidog-orders:
                  - error
          headers: {}
          x-apidog-name: ''
      security:
        - x-api-key: []
          x-apidog:
            schemeGroups:
              - id: 6ykNMH3yFNfxZUQpnljT0
                schemeIds:
                  - x-api-key
            required: true
            use:
              id: 6ykNMH3yFNfxZUQpnljT0
            scopes:
              6ykNMH3yFNfxZUQpnljT0:
                x-api-key: []
      x-apidog-folder: REST API/Endpoints/Portfolio
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/365298/apis/api-4375769-run
components:
  schemas: {}
  securitySchemes:
    x-api-key:
      type: apikey
      name: x-api-key
      in: header
servers:
  - url: https://api.public.bitpanda.com
    description: Production
security: []

```