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

<div data-generated>
  ## 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](/api-reference/queries/detailedwalletstats.md): Returns detailed stats for a wallet.
</div>
