Skip to main content

Returns

getDetailedPairsStats
[DetailedPairStats!]!
One DetailedPairStats per input; order matches input order.

Arguments

input
[GetDetailedPairsStatsInput!]!
required
Array of pair stat requests. Each element: see GetDetailedPairsStatsInput.

Example

{
  getDetailedPairsStats(
    input: [
      {
        pairAddress: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
        networkId: 1
        tokenOfInterest: token0
        durations: [hour1, day1]
      },
      {
        pairAddress: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc"
        networkId: 1
        tokenOfInterest: token0
        durations: [hour1, day1]
      }
    ]
  ) {
    pairAddress
    networkId
    tokenOfInterest
    stats_hour1 {
      statsUsd {
        volume {
          currentValue
          change
        }
      }
      statsNonCurrency {
        transactions {
          currentValue
          change
        }
      }
    }
  }
}

Playground