Skip to main content

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.

This query is deprecated. Use getDetailedPairStats instead, it has more resolutions and better support

Returns

DetailedStats
DetailedStats
See DetailedStats

Arguments

pairId
String!
required
The ID of the pair (address:networkId).
tokenOfInterest
TokenOfInterest
The token of interest used to calculate token-specific stats for the pair. Can be token0 or token1. See TokenOfInterest
timestamp
Int
The unix timestamp for the stats. Defaults to current.
windowSizes
[DetailedStatsWindowSize]
The list of window sizes to get detailed stats for. See DetailedStatsWindowSize
bucketCount
Int
The number of aggregated values to receive. Note: Each duration has predetermined bucket sizes. The first n-1 buckets are historical. The last bucket is a snapshot of current data. duration day1: 6 buckets (4 hours each) plus 1 partial bucket duration hour12: 12 buckets (1 hour each) plus 1 partial bucket duration hour4: 8 buckets (30 min each) plus 1 partial bucket duration hour1: 12 buckets (5 min each) plus 1 partial bucket duration min5: 5 buckets (1 min each) plus 1 partial bucket For example, requesting 11 buckets for a min5 duration will return the last 10 minutes worth of data plus a snapshot for the current minute.
statsType
TokenPairStatisticsType
The type of statistics returned. Can be FILTERED or UNFILTERED. Default is UNFILTERED. See TokenPairStatisticsType