Skip to main content

Returns

DetailedPairStats!
Stats for the pair with optional time windows (e.g. 5m, 1h, 24h). See DetailedPairStats.

Arguments

Address!
required
Pair contract address.
NetworkId!
required
Network ID (e.g. 1, 42161).
TokenOfInterest
Which token to use for price (token0 or token1). See TokenOfInterest.
Int
Optional timestamp for historical stats.
[DetailedPairStatsDuration!]
Which time windows to return. See DetailedPairStatsDuration.
Int
Number of buckets per window.
TokenPairStatisticsType
FILTERED or UNFILTERED. See TokenPairStatisticsType.

Example

Playground