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

# Get Portfolio Assets

> Every token the wallet holds, per chain, with live USD pricing — the raw token list behind the balance total.

**Credits:** 30 per successful call.



## OpenAPI

````yaml /openapi.yaml get /v1/portfolio/assets
openapi: 3.1.0
info:
  title: DeFi Orbit API
  version: 1.0.0
  description: Public REST API for DeFi Orbit positions, lending, portfolio, and usage.
servers:
  - url: https://api.defiorbit.xyz
security:
  - bearerAuth: []
tags:
  - name: Portfolio
  - name: Snapshots
  - name: Uniswap V3
  - name: Aerodrome V3
  - name: Orca
  - name: Aave V3
  - name: Morpho
  - name: Kamino
  - name: Usage
paths:
  /v1/portfolio/assets:
    get:
      tags:
        - Portfolio
      summary: Get Portfolio Assets
      description: >-
        Every token the wallet holds, per chain, with live USD pricing — the raw
        token list behind the balance total.


        **Credits:** 30 per successful call.
      operationId: get_v1_portfolio_assets
      parameters:
        - name: wallet
          in: query
          required: true
          schema:
            type: string
            description: Wallet address.
            example: '0xbf7620d0377b0660a6cbaef5cdfe2e00eddc1495'
            x-default: '0xbf7620d0377b0660a6cbaef5cdfe2e00eddc1495'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/RequestId'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          portfolio:
                            type: object
                            properties:
                              totalValueUSD:
                                type: number
                            required:
                              - totalValueUSD
                          tokenHoldings:
                            type: object
                            properties:
                              totalValueUSD:
                                type: number
                              tokens:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    address:
                                      type: string
                                    symbol:
                                      type: string
                                    name:
                                      type: string
                                    iconUrl:
                                      type: string
                                      nullable: true
                                      description: >-
                                        Logo URL, or null when none is
                                        available.
                                    priceUSD:
                                      type: number
                                    balance:
                                      type: number
                                    balanceUSD:
                                      type: number
                                    portfolioPercent:
                                      type: number
                                    priceChange24hPercent:
                                      type: number
                                      nullable: true
                                      description: >-
                                        Percent price change over 24 hours, or
                                        null when the source has none.
                                    decimals:
                                      type: integer
                                    network:
                                      $ref: '#/components/schemas/Network'
                                  required:
                                    - address
                                    - symbol
                                    - name
                                    - iconUrl
                                    - priceUSD
                                    - balance
                                    - balanceUSD
                                    - portfolioPercent
                                    - priceChange24hPercent
                                    - decimals
                                    - network
                            required:
                              - totalValueUSD
                              - tokens
                          wallets:
                            type: array
                            items:
                              type: object
                              properties:
                                address:
                                  type: string
                                totalValueUSD:
                                  type: number
                              required:
                                - address
                                - totalValueUSD
                          dAppHoldings:
                            type: array
                            items:
                              type: object
                          chainExposure:
                            type: array
                            items:
                              type: object
                              properties:
                                network:
                                  $ref: '#/components/schemas/Network'
                                valueUSD:
                                  type: number
                                percent:
                                  type: number
                              required:
                                - network
                                - valueUSD
                                - percent
                          allocationBreakdown:
                            type: object
                            properties:
                              idle:
                                type: object
                                properties:
                                  stablecoins:
                                    type: number
                                  majors:
                                    type: number
                                  tokens:
                                    type: number
                                  total:
                                    type: number
                                required:
                                  - stablecoins
                                  - majors
                                  - tokens
                                  - total
                              deployed:
                                type: object
                                properties:
                                  lending:
                                    type: number
                                  borrowing:
                                    type: number
                                  vaults:
                                    type: number
                                  staked:
                                    type: number
                                  total:
                                    type: number
                                required:
                                  - lending
                                  - borrowing
                                  - vaults
                                  - staked
                                  - total
                            required:
                              - idle
                              - deployed
                          meta:
                            type: object
                            properties:
                              lastUpdatedAt:
                                type: integer
                                description: >-
                                  Unix milliseconds when the portfolio provider
                                  last updated this wallet.
                              warnings:
                                type: array
                                items:
                                  type: string
                            required:
                              - lastUpdatedAt
                              - warnings
                        required:
                          - portfolio
                          - tokenHoldings
                          - wallets
                          - dAppHoldings
                          - chainExposure
                          - allocationBreakdown
                          - meta
                    required:
                      - data
              example:
                data:
                  portfolio:
                    totalValueUSD: 357.97
                  tokenHoldings:
                    totalValueUSD: 357.97
                    tokens:
                      - address: 0xtoken
                        symbol: WAVAX(Wormhole)
                        name: Wrapped AVAX
                        iconUrl: null
                        priceUSD: 6.608
                        balance: 54.172518
                        balanceUSD: 357.97
                        portfolioPercent: 100
                        priceChange24hPercent: null
                        decimals: 18
                        network:
                          chainId: 8453
                          name: Base
                          slug: base
                          iconUrl: null
                  wallets:
                    - address: '0xbf7620d0377b0660a6cbaef5cdfe2e00eddc1495'
                      totalValueUSD: 357.97
                  dAppHoldings: []
                  chainExposure:
                    - network:
                        chainId: 8453
                        name: Base
                        slug: base
                        iconUrl: null
                      valueUSD: 357.97
                      percent: 100
                  allocationBreakdown:
                    idle:
                      stablecoins: 0
                      majors: 0
                      tokens: 357.97
                      total: 357.97
                    deployed:
                      lending: 0
                      borrowing: 0
                      vaults: 0
                      staked: 0
                      total: 0
                  meta:
                    lastUpdatedAt: 1717200000000
                    warnings: []
                request_id: req_...
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          $ref: '#/components/responses/BadGateway'
components:
  schemas:
    RequestId:
      type: object
      required:
        - request_id
      properties:
        request_id:
          type: string
          description: Id to quote when you contact support.
    Network:
      type: object
      required:
        - chainId
        - name
        - slug
        - iconUrl
      properties:
        chainId:
          type: integer
        name:
          type: string
        slug:
          type: string
        iconUrl:
          type: string
          nullable: true
          description: Logo URL, or null when none is available.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
  responses:
    BadRequest:
      description: Missing or invalid parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_PARAMETER
              message: page must be a positive integer.
              request_id: req_...
    Unauthorized:
      description: Missing, malformed, invalid, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_API_KEY
              message: Missing API key.
              request_id: req_...
    PaymentRequired:
      description: The organization does not have enough credits.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INSUFFICIENT_CREDITS
              message: Insufficient API credits.
              request_id: req_...
    Forbidden:
      description: The organization is suspended, or the endpoint or feature is disabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: ACCOUNT_SUSPENDED
              message: This organization is suspended.
              request_id: req_...
    TooManyRequests:
      description: The organization exceeded its requests-per-second limit.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests per second for the organization.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Unix time when the window resets.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMIT_EXCEEDED
              message: Rate limit exceeded. Please try again later.
              request_id: req_...
    InternalError:
      description: Unexpected server error, or pricing is not configured.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL_ERROR
              message: An unexpected error occurred.
              request_id: req_...
    BadGateway:
      description: The upstream data provider failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UPSTREAM_ERROR
              message: Portfolio data provider temporarily unavailable.
              request_id: req_...
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your API key from the
        [dashboard](https://platform.defiorbit.xyz/dashboard/keys). The key
        starts with `do_sk_`.
      x-default: YOUR_API_KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.