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 ( |
| 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 |
| windowSizes | [DetailedStatsWindowSize] | The list of window sizes to get detailed stats for. |
Response
| Name | Type | Description |
|---|---|---|
| bucketCount | Int | Number of aggregated buckets specified in input |
| pairId | String! | The ID of the pair (
). |
| queryTimestamp | Int | The timestamp specified as input to the query |
| stats_day1 | WindowedDetailedStats | The breakdown of stats over a 24 hour window. |
| stats_hour1 | WindowedDetailedStats | The breakdown of stats over an 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. |
| statsType | TokenPairStatisticsType! | The type of statistics returned. Can be
or
|
| tokenOfInterest | TokenOfInterest! | The token of interest used to calculate token-specific stats. |