Skip to main content

Overview

Query aggregated trading activity for a wallet as a time-series chart. Supports custom time ranges and resolutions for building portfolio performance charts, volume histograms, and PnL overlays.
  • Aggregated volume (USD) per bucket
  • Realized profit (USD) per bucket
  • Swap counts per bucket
  • Optional per-network filtering
  • Custom start / end timestamps and resolution

Returns

walletChart
WalletChartResponse!
See WalletChartResponse, WalletChartData, and WalletChartRange for full type details.

Arguments

input
WalletChartInput!
See WalletChartInput for full details.

Example

{
  walletChart(input: {
    walletAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
    range: { start: 1730000000, end: 1732592000 }
    resolution: "1d"
  }) {
    walletAddress
    networkId
    resolution
    range { start end }
    data {
      timestamp
      volumeUsd
      volumeUsdAll
      realizedProfitUsd
      swaps
    }
    backfillState
  }
}

Playground