hour6

Returns 10 DEX trades by token, where block time after 2024-01-03, sorted by count, highest first: sum of trade amount, trade price, smart contract, currency name, currency symbol, side currency name, side currency symbol and 2 more fields.

By gaurav · saved 5 January 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: realtime) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "count"}
      limitBy: {by: Trade_Dex_Pair_SmartContract, count: 1}
      where: {Block: {Time: {after: "2024-01-03T00:00:00Z"}}}
    ) {
      volume: sum(of: Trade_Amount)
      Trade {
        hour6: Price(
          if: {Block: {Time: {since: "2024-01-04T05:55:00Z", till: "2024-01-04T06:05:00Z"}}}
        )
        Dex {
          Pair {
            SmartContract
          }
        }
        Currency {
          Name
          Symbol
          SmartContract
        }
        Side {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      count
    }
  }
}

Similar queries