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

# Get Portfolio Stats

> Crypto-only wallet statistics for the authenticated customer. Returns per-asset values, day/total returns, and (with ?overall=true) an aggregate AUD value of all crypto holdings. This endpoint does NOT include the customer's AUD cash balance — to report a total portfolio value (crypto + AUD), also call the balances endpoint and add the AUD entry.



## OpenAPI

````yaml /openapi.json get /api/private/v2/wallet-stats/
openapi: 3.0.3
info:
  title: Digital Surge API
  version: '2.0'
  description: >-
    Digital Surge is an Australian cryptocurrency exchange. This API provides
    programmatic access to your account: live AUD pricing for hundreds of
    assets, instant swaps, recurring buys, price triggers, portfolio balances,
    transaction history, and crypto withdrawals.


    **Authentication** — create an API key in the Digital Surge app under
    *Account Settings → API Keys* and send it with every request:
    `Authorization: Bearer <your-api-key>`. Read-only and read & write keys are
    available.


    **Guides and interactive documentation** — https://digitalsurge.com.au/docs


    **AI agents** — connect via the Digital Surge MCP server:
    https://mcp.digitalsurge.com.au/mcp
servers:
  - url: https://app.digitalsurge.com.au
    description: Production
security: []
tags:
  - name: Public
    description: Unauthenticated endpoints — market data, asset info, pricing
  - name: Private
    description: Authenticated endpoints — trading, portfolio, account management
paths:
  /api/private/v2/wallet-stats/:
    get:
      tags:
        - Private
      summary: Get Portfolio Stats
      description: >-
        Crypto-only wallet statistics for the authenticated customer. Returns
        per-asset values, day/total returns, and (with ?overall=true) an
        aggregate AUD value of all crypto holdings. This endpoint does NOT
        include the customer's AUD cash balance — to report a total portfolio
        value (crypto + AUD), also call the balances endpoint and add the AUD
        entry.
      operationId: private_v2_wallet_stats_list
      parameters:
        - in: query
          name: asset
          schema:
            type: string
          description: Filter to specific asset code
        - in: query
          name: overall
          schema:
            type: boolean
          description: Include overall portfolio statistics
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedPortfolioValueSummaryV2ResponseList
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    PaginatedPortfolioValueSummaryV2ResponseList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/PortfolioValueSummaryV2Response'
    PortfolioValueSummaryV2Response:
      type: object
      properties:
        overall:
          $ref: '#/components/schemas/PortfolioOverallStats'
        assets:
          type: array
          items:
            $ref: '#/components/schemas/PortfolioAssetStats'
      required:
        - assets
        - overall
    PortfolioOverallStats:
      type: object
      properties:
        overall_aud_wallet_value:
          type: string
          nullable: true
        overall_day_return:
          type: string
          nullable: true
        overall_day_return_percentage:
          type: string
          nullable: true
        overall_total_return:
          type: string
          nullable: true
        overall_total_return_percentage:
          type: string
          nullable: true
      required:
        - overall_aud_wallet_value
        - overall_day_return
        - overall_day_return_percentage
        - overall_total_return
        - overall_total_return_percentage
    PortfolioAssetStats:
      type: object
      properties:
        asset:
          type: string
        approximate_value:
          type: string
          nullable: true
        current_balance:
          type: string
          nullable: true
        current_buy_price:
          type: string
          nullable: true
        current_sell_price:
          type: string
          nullable: true
        last_buy_price:
          type: string
          nullable: true
        last_sell_price:
          type: string
          nullable: true
        day_buy_return:
          type: string
          nullable: true
        day_buy_return_percentage:
          type: string
          nullable: true
        total_avg_buy:
          type: string
          nullable: true
        total_avg_sell:
          type: string
          nullable: true
        total_buy_return:
          type: string
          nullable: true
        total_buy_return_percentage:
          type: string
          nullable: true
        stale_price:
          type: boolean
      required:
        - approximate_value
        - asset
        - current_balance
        - current_buy_price
        - current_sell_price
        - day_buy_return
        - day_buy_return_percentage
        - last_buy_price
        - last_sell_price
        - total_avg_buy
        - total_avg_sell
        - total_buy_return
        - total_buy_return_percentage
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal API key, created in the Digital Surge app under Account
        Settings → API Keys. Send it with every request as `Authorization:
        Bearer <your-api-key>`.

````