Endpoint: getDetailedPairsStats
Method: POST
Arguments
Name | Type | Description |
---|---|---|
input | [GetDetailedPairsStatsInput!]! | Required |
Name | Type | Description |
---|---|---|
bucketCount | Int | The number of aggregated values to receive. Note: Each duration has predetermined bucket sizes. |
durations | [DetailedPairStatsDuration] | The list of durations to get detailed pair stats for. |
networkId | Int! | The network ID the pair is deployed on. Required |
pairAddress | String! | The contract address of the pair. Required |
statsType | TokenPairStatisticsType | The type of statistics returned. Can be |
timestamp | Int | The unix timestamp for the stats. Defaults to current. |
tokenOfInterest | TokenOfInterest | The token of interest used to calculate token-specific stats for the pair. Can be |
Response
Name | Type | Description |
---|---|---|
bucketCount | Int | Number of aggregated buckets specified in input |
lastTransaction | Int | The unix timestamp for the last transaction to happen on the pair. |
networkId | Int! | The network ID the pair is deployed on. |
pair | Pair | |
pairAddress | String! | The contract address of the pair. |
queryTimestamp | Int | The timestamp specified as input to the query |
stats_day1 | WindowedDetailedPairStats | The breakdown of stats over a 24 hour window. |
stats_day30 | WindowedDetailedPairStats | The breakdown of stats over a 30 day window. |
stats_hour1 | WindowedDetailedPairStats | The breakdown of stats over an hour window. |
stats_hour4 | WindowedDetailedPairStats | The breakdown of stats over a 4 hour window. |
stats_hour12 | WindowedDetailedPairStats | The breakdown of stats over a 12 hour window. |
stats_min5 | WindowedDetailedPairStats | The breakdown of stats over a 5 minute window. |
stats_min15 | WindowedDetailedPairStats | The breakdown of stats over a 15 minute window. |
stats_week1 | WindowedDetailedPairStats | The breakdown of stats over a 7 day window. |
statsType | TokenPairStatisticsType! | The type of statistics returned. Can be FILTERED or UNFILTERED |
tokenOfInterest | TokenOfInterest | The token of interest used to calculate token-specific stats. |