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

# Get historical performance

> Shows how earnings and blended APY changed over time for a wallet or your organization. Earnings can decrease when positions lose value.

Read historical earned value and trailing NAV-based APY for a wallet or organization. See [Yield and accounting](https://docs.groundtech.co/v3/docs/portfolio-wallets/calculating-yield-accrual.md#earned-and-apy-over-time) to distinguish these metrics from current source rates.


## OpenAPI

````yaml swagger/v3.yaml GET /v3/accounting/yield/earned-series
openapi: 3.0.0
info:
  title: Ground API
  description: API for Portfolio Wallets, gtokens, MicroVaults, and webhooks.
  version: 3.0.0
servers:
  - url: https://sandbox.groundtech.co
  - url: https://production.groundtech.co
security:
  - bearerAuth: []
tags:
  - name: System
    description: System health and utility endpoints.
  - name: Sandbox Faucets
    description: Sandbox-only test token faucets.
  - name: Portfolio Wallets
    description: >-
      Portfolio wallets with strategy allocation, deposits, withdrawals, and
      yield positions.
  - name: gVaults
    description: >-
      Direct access to gtokens with deposit access controls and optional fee
      wrappers.
  - name: MicroVaults
    description: >-
      Customer-owned onchain vaults with externally held ERC-20 shares. Private
      preview.
  - name: Webhook Endpoints
    description: Webhook endpoint management for portfolio wallet notifications.
paths:
  /v3/accounting/yield/earned-series:
    get:
      tags:
        - Accounting
      summary: Get earned/performance series
      description: >-
        Shows how earnings and blended APY changed over time for a wallet or
        your organization. Earnings can decrease when positions lose value.
      operationId: getAccountingEarnedSeries
      parameters:
        - name: walletId
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Wallet ID for a wallet-scoped series. Provide exactly one of
            `walletId` or `scope=organization`.
        - name: scope
          in: query
          required: false
          schema:
            type: string
            enum:
              - organization
          description: >-
            Use `organization` for an organization-wide series. Provide exactly
            one of `walletId` or `scope=organization`.
        - name: start
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Inclusive ISO-8601 UTC series start. Defaults to the earliest wallet
            creation in scope (inception).
        - name: end
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Inclusive ISO-8601 UTC series end. Defaults to the current request
            time.
        - name: interval
          in: query
          required: false
          schema:
            type: string
            default: auto
            enum:
              - auto
              - day
              - week
              - month
          description: >
            Point granularity. `auto` picks day/week/month from the span so the
            series stays under the point budget; an explicit interval over too
            large a span returns a 400.
      responses:
        '200':
          description: Earned/performance series
          content:
            application/json:
              schema:
                type: object
                properties:
                  scope:
                    type: string
                    enum:
                      - wallet
                      - all
                  portfolioWalletId:
                    type: string
                    format: uuid
                    nullable: true
                  periodStart:
                    type: string
                    format: date-time
                  periodEnd:
                    type: string
                    format: date-time
                  interval:
                    type: string
                    enum:
                      - day
                      - week
                      - month
                  status:
                    type: string
                    enum:
                      - exact
                      - partial
                      - empty
                  series:
                    type: array
                    items:
                      type: object
                      properties:
                        asOf:
                          type: string
                          format: date-time
                        cumulativeEarnedUsd:
                          type: string
                          nullable: true
                          description: >-
                            Lifetime cumulative earned (realized + unrealized,
                            mark-to-market) as of this point. Null marks a data
                            gap — render a gap, never zero.
                        realizedToDateUsd:
                          type: string
                          nullable: true
                        unrealizedToDateUsd:
                          type: string
                          nullable: true
                        deployedValueUsd:
                          type: string
                          nullable: true
                          description: >-
                            Marked value of held yield positions at this point.
                            Excludes idle cash, so it is not a wallet balance.
                        capitalTimeUsdDays:
                          type: string
                          nullable: true
                          description: >-
                            Time integral of open cost across held positions
                            over the interval ending at this point (USD·days).
                        blendedApyPct:
                          type: number
                          nullable: true
                          description: >
                            Allocation-weighted blended APY at this point, in
                            percent. Each held source contributes its trailing
                            ~30-day NAV growth (annualized) weighted by marked
                            position value; idle cash weighs in at 0%, and so
                            does a held source with under 7 days of price
                            history (its rate is not yet knowable, so it dilutes
                            the blend rather than inflating it). Independent of
                            wallet size. Null when the portfolio holds nothing
                            or holds any non-USD-denominated investment at this
                            point.
                        status:
                          type: string
                          enum:
                            - ok
                            - partial
              examples:
                wallet_series:
                  value:
                    scope: wallet
                    portfolioWalletId: 388f4859-36a0-47ca-9f80-abb73aa56fe9
                    periodStart: '2026-05-18T00:00:00.000Z'
                    periodEnd: '2026-08-24T19:21:39.000Z'
                    interval: day
                    status: exact
                    series:
                      - asOf: '2026-08-23T00:00:00.000Z'
                        cumulativeEarnedUsd: '0.383780'
                        realizedToDateUsd: '0.191203'
                        unrealizedToDateUsd: '0.192577'
                        deployedValueUsd: '55.987631'
                        capitalTimeUsdDays: '55.930150'
                        blendedApyPct: 4.24
                        status: ok
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_scope:
                  value:
                    error: Provide exactly one of walletId or scope=organization
                    code: validation_error
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
          description: >-
            Human-readable error message. May change without notice; do not
            parse programmatically.
        code:
          type: string
          description: >-
            Machine-readable error code. Use it for programmatic handling rather
            than parsing the error message.
          enum:
            - validation_error
            - unknown_parameters
            - payload_too_large
            - unsupported_media_type
            - submission_id_conflict
            - feedback_unavailable
            - unsupported_chain
            - unsupported_token
            - invalid_destination_address
            - stellar_destination_account_not_active
            - stellar_destination_usdc_not_enabled
            - precision_overflow
            - invalid_cursor
            - unauthenticated
            - forbidden
            - wallet_not_found
            - wallet_limit_reached
            - withdrawal_not_found
            - deposit_not_found
            - yield_source_not_found
            - wallet_projection_unavailable
            - insufficient_funds
            - duplicate_request_id
            - request_id_conflict
            - invalid_position_weight
            - invalid_withdrawal_plan
            - payout_not_found
            - webhook_not_found
            - webhook_duplicate_url
            - withdrawal_not_cancellable
            - withdrawal_already_cancelled
            - withdrawal_payout_in_progress
            - withdrawal_policy_required
            - workflow_conflict
            - stale_rebalance_plan
            - stale_wallet_strategy
            - payout_already_terminal
            - payout_in_progress
            - payout_not_retryable
            - address_book_entry_not_found
            - address_book_duplicate_entry
            - address_book_whitelist_violation
            - rate_limited
            - rate_limit_exceeded
            - internal_error
            - wallet_creation_failed
            - service_temporarily_unavailable
            - operation_not_supported
            - wallet_withdrawal_active
            - stellar_customer_approval_unavailable
            - withdrawal_signing_required
            - wallet_performance_unavailable
            - tempo_beta_transfer_limit_exceeded
            - product_not_enabled
            - gvault_not_found
            - allowlist_update_pending
            - fee_wrapper_not_found
            - fee_wrapper_fee_update_pending
            - statement_too_large
            - no_reportable_wallets
            - report_timeout
            - read_only_api_key
    AuthErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Authentication or authorization error message.
        message:
          type: string
          nullable: true
          description: Additional auth middleware detail, when present.
        code:
          type: string
          nullable: true
          description: >-
            Some auth and scope failures include a stable code; middleware
            errors may omit it.
  responses:
    Unauthorized:
      description: >-
        The request is missing a valid bearer token, or the token is invalid or
        expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthErrorResponse'
          example:
            error: Unauthenticated request
            message: Missing or invalid bearer token
    NotFound:
      description: >-
        The requested resource does not exist or is not visible to the
        authenticated organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Portfolio wallet not found
            code: wallet_not_found
    TooManyRequests:
      description: >-
        Rate limit exceeded. Limits are enforced by API key/customer identity
        and by endpoint class. Wait for the number of seconds in Retry-After,
        add a small random delay, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Rate limit exceeded
            code: rate_limited
    InternalServerError:
      description: >-
        An unexpected error occurred. Reconcile the original operation before
        retrying a write; preserve its required idempotency key and payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
            code: internal_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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