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

# WindowedWalletStatsYear

> The stats for a wallet over the 1-year window. Mirrors `WindowedWalletStats`, but exposes 1-year-scoped non-currency stats so `uniqueTokens` can be deprecated for the 1-year window only.

## GraphQL

```
type WindowedWalletStatsYear {
  walletAddress: String!
  networkId: Int
  start: Int!
  end: Int!
  lastTransactionAt: Int!
  statsUsd: WindowedDetailedCurrencyWalletStats!
  statsNonCurrency: WindowedDetailedNonCurrencyWalletStatsYear!
}

type WindowedDetailedCurrencyWalletStats {
  volumeUsd: String!
  volumeUsdAll: String!
  heldTokenAcquisitionCostUsd: String!
  soldTokenAcquisitionCostUsd: String!
  realizedProfitUsd: String!
  realizedProfitUsdExNative: String
  averageProfitUsdPerTrade: String!
  averageSwapAmountUsd: String!
  realizedProfitPercentage: Float!
  realizedProfitPercentageExNative: Float
}

type WindowedDetailedNonCurrencyWalletStatsYear {
  swaps: Int!
  wins: Int!
  losses: Int!
  avgHoldPeriodSec: Float
}
```

### Used By

**Returned by**

* [detailedWalletStats](https://docs.codex.io/api-reference/queries/detailedwalletstats.md): Returns detailed stats for a wallet.


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