Endpoint: getDetailedStats
Method: POST
Arguments
Name | Type | Description |
---|---|---|
bucketCount | Int | The number of aggregated values to receive. Note: Each duration has predetermined bucket sizes. |
pairId | String! | The ID of the pair ( |
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 |
windowSizes | [DetailedStatsWindowSize] | The list of window sizes to get detailed stats for. |
Response
Name | Type | Description |
---|---|---|
pairId | String! | The ID of the pair (address :networkId ). |
stats_day1 | WindowedDetailedStats | The breakdown of stats over a 24 hour window. |
stats_hour1 | WindowedDetailedStats | The breakdown of stats over a 1 hour window. |
stats_hour4 | WindowedDetailedStats | The breakdown of stats over a 4 hour window. |
stats_hour12 | WindowedDetailedStats | The breakdown of stats over a 12 hour window. |
stats_min5 | WindowedDetailedStats | The breakdown of stats over a 5 minute window. |
tokenOfInterest | TokenOfInterest! | The token of interest within the pair. Can be token0 or token1 . |