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

# Get portfolio



## OpenAPI

````yaml /stocks/api-reference/openapi.json get /wallet/portfolio
openapi: 3.1.0
info:
  contact:
    email: support@daya.co
    name: API Support
  description: >-
    Public developer API for the Stocks by Daya product. X-API-Key
    authenticated. Market data, portfolio, balances, activity, order placement,
    and fiat withdrawals. All responses use the standard envelope: { success,
    message?, data?, error?, timestamp }.
  title: Daya Stocks Public API
  version: 1.0.0
servers:
  - url: https://api.daya.co/stocks/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /wallet/portfolio:
    get:
      tags:
        - stocks-account
      summary: Get portfolio
      operationId: getWalletPortfolio
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
                  - properties:
                      data:
                        $ref: >-
                          #/components/schemas/internal_publicapi_v1.PublicPortfolio
                    type: object
          description: Cash + positions with display prices
        '401':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Missing or invalid API key
        '500':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Failed to load portfolio
components:
  schemas:
    github_com_dayacoins_daya-stocks-service_pkg_response.Envelope:
      properties:
        data: {}
        error:
          $ref: >-
            #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData
        message:
          description: Message is an optional banner/toast string.
          type: string
        success:
          type: boolean
        timestamp:
          type: string
      type: object
    internal_publicapi_v1.PublicPortfolio:
      properties:
        delta_24h:
          $ref: '#/components/schemas/internal_publicapi_v1.PublicDelta'
        open_positions_value_usd:
          example: '473.75'
          type: string
        positions:
          items:
            $ref: '#/components/schemas/internal_publicapi_v1.PublicPosition'
          type: array
        total_value_usd:
          example: '1723.75'
          type: string
        updated_at:
          example: '2026-01-15T10:30:00Z'
          type: string
        usd_balance:
          example: '1250.00'
          type: string
      type: object
    github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData:
      properties:
        code:
          type: string
        details: {}
        fields:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
      type: object
    internal_publicapi_v1.PublicDelta:
      properties:
        pct:
          example: '1.25'
          type: string
        value_usd:
          example: '12.34'
          type: string
      type: object
    internal_publicapi_v1.PublicPosition:
      properties:
        available:
          example: '2.5'
          type: string
        category:
          enum:
            - stock
            - etf
            - metal
            - pre_ipo
          example: stock
          type: string
        delta_24h:
          $ref: '#/components/schemas/internal_publicapi_v1.PublicDelta'
        logo_url:
          example: https://cdn.daya.co/logos/aapl.png
          type: string
        name:
          example: Apple Inc.
          type: string
        price_usd:
          example: '189.50'
          type: string
        priced:
          example: true
          type: boolean
        quantity:
          example: '2.5'
          type: string
        status:
          enum:
            - enabled
            - disabled
            - paused
            - closing_only
            - unavailable
            - migrated
            - delisted
          example: enabled
          type: string
        symbol:
          example: AAPL
          type: string
        value_usd:
          example: '473.75'
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Daya API key, sent in the X-API-Key header. Issue and scope keys in
        the Daya dashboard.
      in: header
      name: X-API-Key
      type: apiKey

````