Detailed Stats

Live-streamed bucketed stats for a given token within a pair.

ℹ️

This endpoint is available on Defined Growth and Enterprise Plans

Endpoint: onDetailedStatsUpdated

Method: POST

Arguments

NameTypeDescription
pairIdString

The ID of the pair (address:networkId).

tokenOfInterestTokenOfInterest

The token of interest within the pair. Can be token0 or token1.

Response

NameTypeDescription
bucketCountIntNumber of aggregated buckets specified in input
pairIdString!The ID of the pair (pairAddress:networkId).
queryTimestampIntThe timestamp specified as input to the query
stats_day1WindowedDetailedStatsThe breakdown of stats over a 24 hour window.
stats_hour1WindowedDetailedStatsThe breakdown of stats over an hour window.
stats_hour4WindowedDetailedStatsThe breakdown of stats over a 4 hour window.
stats_hour12WindowedDetailedStatsThe breakdown of stats over a 12 hour window.
stats_min5WindowedDetailedStatsThe breakdown of stats over a 5 minute window.
statsTypeTokenPairStatisticsType!The type of statistics returned. Can be FILTERED or UNFILTERED
tokenOfInterestTokenOfInterest!The token of interest used to calculate token-specific stats.

Example

Query

subscription DetailedStatsUpdated($id: String) {
  onDetailedStatsUpdated(id: $id) {
  }
}

Response

πŸ‘‹

Join our Discord

Ask questions, share what you're working on and request new features πŸ‘¬πŸ‘­