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.
Returns
Show Properties
Show Properties
FILTERED or UNFILTERED.
See TokenPairStatisticsTypeShow Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).token0.token1.Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Arguments
Show Properties
Show Properties
token0 or token1.
See TokenOfInterestday1: 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.FILTERED or UNFILTERED.
See TokenPairStatisticsTypeExample
Test this query in the Explorer →{
getDetailedPairsStats(
input: [
{
pairAddress: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
networkId: 1
tokenOfInterest: token0
durations: [hour1, day1]
}
{
pairAddress: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc"
networkId: 1
tokenOfInterest: token0
durations: [hour1, day1]
}
]
) {
pairAddress
networkId
tokenOfInterest
stats_hour1 {
statsUsd {
volume {
currentValue
change
}
}
statsNonCurrency {
transactions {
currentValue
change
}
}
}
}
}
Usage Guidelines
- Query multiple pairs in a single request by passing an array of inputs
- Each input requires
pairAddress,networkId, and optionallytokenOfInterestanddurations - Use
tokenOfInterest(token0ortoken1) to specify which token’s perspective for buy/sell metrics - Available durations:
min5,min15,hour1,hour4,hour12,day1,week1,day30 - Stats are returned in fields like
stats_hour1,stats_day1based on requested durations - More efficient than multiple
getDetailedPairStatscalls when querying several pairs
Troubleshooting Tips
How is this different from getDetailedPairStats?
How is this different from getDetailedPairStats?
getDetailedPairsStats (plural) accepts an array of pair inputs, allowing you to fetch stats for multiple pairs in a single request. getDetailedPairStats (singular) only accepts one pair at a time.What's the maximum number of pairs I can query?
What's the maximum number of pairs I can query?
Can I request different durations for different pairs?
Can I request different durations for different pairs?
durations array. This lets you request hourly stats for one pair and daily stats for another in the same query.Why use this over separate queries?
Why use this over separate queries?