Skip to main content

TypeScript shape

interface GetDetailedPairsStatsInput {
  pairAddress: string;
  networkId: number;
  tokenOfInterest?: TokenOfInterest | null;
  timestamp?: number | null;
  durations?: DetailedPairStatsDuration[] | null;
  bucketCount?: number | null;
  statsType?: TokenPairStatisticsType | null;
}
pairAddress
Address!
required
Pair contract address.
networkId
NetworkId!
required
Network ID.
tokenOfInterest
TokenOfInterest
Which token (token0 or token1) for price. See TokenOfInterest.
timestamp
Int
Optional timestamp for historical stats.
durations
[DetailedPairStatsDuration!]
Time windows to return. See DetailedPairStatsDuration.
bucketCount
Int
Number of buckets per window.
statsType
TokenPairStatisticsType
FILTERED or UNFILTERED. See TokenPairStatisticsType.