Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Returns

onDetailedStatsUpdated
DetailedPairStats!
Detailed pair-level windowed stats pushed on every swap on the pair. See DetailedPairStats.

Arguments

pairId
String!
required
Pair identifier in <pairAddress>:<networkId> form. Invalid inputs return BAD_USER_INPUT.
tokenOfInterest
TokenOfInterest
Which side of the pair stats are computed against (token0 or token1). See TokenOfInterest.
statsType
TokenPairStatisticsType
FILTERED or UNFILTERED. Defaults to UNFILTERED. See TokenPairStatisticsType.
bucketCount
Int
Number of buckets per window. Server may clamp to a reasonable maximum.

Example

subscription OnDetailedStatsUpdated {
  onDetailedStatsUpdated(
    pairId: "BGm1tav58oGcsQJehL9WXBFXF7D27vZsKefj4xJKD5Y:1399811149"
    tokenOfInterest: token0
    statsType: UNFILTERED
    bucketCount: 12
  ) {
    pairAddress
    tokenOfInterest
    statsType
    stats_hour1 {
      duration
      start
      end
      statsUsd { volume { change currentValue previousValue } }
      statsNonCurrency { transactions { currentValue } buys { currentValue } sells { currentValue } }
    }
  }
}