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
pairIdString!The ID of the pair (address:networkId).
stats_day1WindowedDetailedStatsThe breakdown of stats over a 24 hour window.
stats_hour1WindowedDetailedStatsThe breakdown of stats over a 1 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.
tokenOfInterestTokenOfInterest!The token of interest within the pair. Can be token0 or token1.

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 :two-men-holding-hands::two-women-holding-hands: