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

# WindowedWalletStats

> The stats for a wallet over a time window. WindowedWalletStats type reference: every field and its type.

<div data-generated>
  ## GraphQL

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

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

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

  ### Used By

  **Returned by**

  * [detailedWalletStats](/api-reference/queries/detailedwalletstats.md): Returns detailed stats for a wallet.
</div>


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