> ## 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.

# Yield and accounting

> Interpret yield, annualized rates, historical performance, and accounting reports.

Use the yield endpoint for current source rates and lifetime earnings, the earned series for historical performance, and accounting reports to reconcile a period. These metrics measure different things; choose the one your application needs to display.

## How yield accrues

All yield sources are variable-rate. Rates change over time based on market conditions and protocol performance.

### Tokens and shares valued by an exchange rate

The value of these positions can rise or fall. When Ground deploys USDC or USDT, the stablecoin is converted into a compatible yield token or vault shares at the current exchange rate. Yield, losses, and provider valuations change the NAV (net asset value) per share and therefore the value in the source’s deposit token.

The wallet's `balance.totalUsd` reflects the current market value of all positions, so NAV appreciation is automatically captured in the balance.

## Wallet-level earnings

Use `earnedUsd` to display the wallet's lifetime yield earnings across its yield positions, including earnings from positions that have been closed. Stock price gains and losses are excluded.

`balance.totalUsd` is current marked value. `balance.earnedUsd` records lifetime realized gross yield; it excludes stock price changes and is not the difference between current value and deposits. Fees, market-price changes, and currency movements also affect wallet value.

## The yield endpoint

Use `GET /v3/wallets/:id/yield` for a detailed yield breakdown:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X GET "$BASE_URL/v3/wallets/$WALLET_ID/yield" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "walletId": "9d1a1c83-3a1c-4c14-9c5a-0c9a57a4a7db",
  "earnedUsd": "250.000000",
  "annualizedUsd": "3821.400000",
  "currentBalanceUsd": "82500.000000",
  "positions": [
    {
      "assetId": "03389041-80ad-4dcf-8fe2-3536bcfe92db",
      "name": "Syrup USDC",
      "denominationCurrency": "USD",
      "apyPct": 4.53,
      "pct": 40,
      "deployedValueUsd": "33000.000000",
      "navUpdateMode": "continuous",
      "priceAsOf": "2026-10-19T12:00:00.000Z"
    },
    {
      "assetId": "80f900d0-a4b8-4c97-bdc2-8e2ab5228e19",
      "name": "Morpho Gauntlet USDC Prime",
      "denominationCurrency": "USD",
      "apyPct": 4.72,
      "pct": 30,
      "deployedValueUsd": "24750.000000",
      "navUpdateMode": "continuous",
      "priceAsOf": "2026-10-19T12:00:00.000Z"
    },
    {
      "assetId": "6c6c676a-4111-472b-b29c-3e7e00d1a49c",
      "name": "Morpho Steakhouse USDC Prime",
      "denominationCurrency": "USD",
      "apyPct": 4.68,
      "pct": 30,
      "deployedValueUsd": "24750.000000",
      "navUpdateMode": "continuous",
      "priceAsOf": "2026-10-19T12:00:00.000Z"
    }
  ]
}
```

`earnedUsd` matches the wallet’s lifetime realized gross yield. `annualizedUsd` estimates annual yield at current position values and source rates. `positions` supplies each source’s APY, currency, deployed value, and percentage of the total wallet balance, including cash.

Use [Get wallet yield](https://docs.groundtech.co/v3/api-reference/compute-yield.md) for the full field definitions.

## Displaying yield to users

### Recommended approach

1. **Total earned** — use `balance.earnedUsd` from the wallet response or `earnedUsd` from the yield endpoint
2. **Indicative portfolio APY** — when all held sources have `denominationCurrency: "USD"`, compute a blended APY from the yield endpoint's `positions` array:
   ```
   indicativeApyPct = sum(source.apyPct * source.pct / 100) for each source
   ```
   Use the same product-specific rates as the asset catalog. This is an indicative blend of source rates, not a measurement of the wallet’s historical return. Cash earns 0% and is included in the total balance used for the weights. This works for manual and auto-rebalancing wallets. If a held source is non-USD or has unavailable APY, show the blend as unavailable.
3. **Yield breakdown** — show each yield source's `name`, `apyPct`, and `pct` from the yield endpoint
4. **Performance over time** — for charts, use `GET /v3/accounting/yield/earned-series`: `cumulativeEarnedUsd` per point for an earned-dollars line, and the precomputed `blendedApyPct` per point for an APY line (computed server-side from historical trailing NAV growth, rather than today’s catalog rates). See [Historical performance](#earned-and-apy-over-time).

### Non-USD investments

When a wallet holds CETES or another non-USD investment, this endpoint returns
the source's APY in `denominationCurrency` and `annualizedUsd: null`. The earned-series endpoint
also returns `blendedApyPct: null` for dates when non-USD investments were held.
Display these rates as unavailable, not 0%. USD balances and earned amounts remain available.
Display CETES's MXN APY separately, using the position's `denominationCurrency` label.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "walletId": "b1c2d3e4-0000-4000-8000-000000000001",
  "earnedUsd": "0.040000",
  "annualizedUsd": null,
  "currentBalanceUsd": "18.950000",
  "positions": [
    {
      "assetId": "2b88a61a-c919-491d-84ab-78f353e55230",
      "name": "Etherfuse Mexican Treasuries (CETES)",
      "denominationCurrency": "MXN",
      "apyPct": 5.7,
      "pct": 80,
      "deployedValueUsd": "15.160000",
      "navUpdateMode": "discrete",
      "priceAsOf": "2026-10-23T12:00:00.000Z"
    }
  ]
}
```

## Historical performance

### Earned and APY over time

`GET /v3/accounting/yield/earned-series` returns a time series for charting wallet performance, scoped to one wallet (`walletId`) or the whole organization (`scope=organization`). Each point carries two distinct metrics:

* `cumulativeEarnedUsd` -- lifetime cumulative earned value, mark-to-market. This includes realized and unrealized gains: it moves both ways and can dip to show losses, unlike the monotonic `balance.earnedUsd`.
* `blendedApyPct` -- the wallet's blended APY at that point, in percent. Each held yield source contributes its trailing \~30-day NAV growth (annualized), weighted by marked position value, with idle cash weighted at 0%. This is a historical NAV-based rate, independent of wallet size. It can differ from a blend of today’s catalog rates; the cumulative fields measure dollar performance. Sources with fewer than seven days of history contribute 0%; non-USD holdings or an empty wallet make the blend unavailable.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X GET "$BASE_URL/v3/accounting/yield/earned-series?walletId=$WALLET_ID" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "scope": "wallet",
  "interval": "day",
  "status": "exact",
  "series": [
    {
      "asOf": "2026-08-23T00:00:00.000Z",
      "cumulativeEarnedUsd": "0.383780",
      "blendedApyPct": 4.24,
      "status": "ok"
    }
  ]
}
```

Wallet APY is unavailable while the wallet holds non-USD investments. Earnings remain available, and each investment’s APY is shown in its own currency.

## Reconcile an accounting period

Use [Accounting activity](https://docs.groundtech.co/v3/api-reference/list-accounting-activity.md) for signed journal lines, [Period summary](https://docs.groundtech.co/v3/api-reference/get-accounting-yield-period-summary.md) for a time-bounded breakdown, or [Accounting statement](https://docs.groundtech.co/v3/api-reference/get-accounting-statement.md) to prepare the report and activity together. Select the wallet or organization scope and UTC period supported by the endpoint.

A journal line’s sign describes the movement in that account. Investing can debit cash and credit an investment under the same journal entry; `yield_source_deposit` does not mean every line is positive. Group lines by journal entry when reconciling a transaction.

The report’s `assets` breakdown covers yield-bearing investments, identified by `assetId` and `assetLabel`. Read each report’s status and reason before treating an estimate or incomplete period as exact. The statement reports whether its included activity is complete; narrow an oversized period or scope rather than assuming an incomplete listing is the whole ledger.


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