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

# GetDetailedPairsStatsInput

> Input for a single pair in getDetailedPairsStats: address, network, optional token of interest, time windows, bucket count, stats type.

### TypeScript shape

```ts theme={null}
interface GetDetailedPairsStatsInput {
  pairAddress: string;
  networkId: number;
  tokenOfInterest?: TokenOfInterest | null;
  timestamp?: number | null;
  durations?: DetailedPairStatsDuration[] | null;
  bucketCount?: number | null;
  statsType?: TokenPairStatisticsType | null;
}
```

<ResponseField name="pairAddress" type="Address!" required>
  Pair contract address.
</ResponseField>

<ResponseField name="networkId" type="NetworkId!" required>
  Network ID.
</ResponseField>

<ResponseField name="tokenOfInterest" type="TokenOfInterest">
  Which token (token0 or token1) for price. See [TokenOfInterest](/api-reference/graphql/types/TokenOfInterest).
</ResponseField>

<ResponseField name="timestamp" type="Int">
  Optional timestamp for historical stats.
</ResponseField>

<ResponseField name="durations" type="[DetailedPairStatsDuration!]">
  Time windows to return. See [DetailedPairStatsDuration](/api-reference/graphql/types/DetailedPairStatsDuration).
</ResponseField>

<ResponseField name="bucketCount" type="Int">
  Number of buckets per window.
</ResponseField>

<ResponseField name="statsType" type="TokenPairStatisticsType">
  FILTERED or UNFILTERED. See [TokenPairStatisticsType](/api-reference/graphql/types/TokenPairStatisticsType).
</ResponseField>
