fixed query

Returns 10 DEX trades on Ethereum, where block time till 2024-04-30 and block time since 2024-04-28, sorted by trade buy amount in USD, highest first: block time, buy smart contract, buy currency symbol, buy currency name, buy amount in USD, sell smart contract, sell currency symbol and 2 more fields.

By gaurav · saved 29 April 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, mempool: false, network: eth) {
    DEXTrades(
      limit: {count: 10}
      where: {Block: {Time: {till: "2024-04-30T10:00:00Z", since: "2024-04-28T10:00:00Z"}}}
      orderBy: {descending: Trade_Buy_AmountInUSD}
    ) {
      Block {
        Time(interval: {in: hours, count: 1})
      }
      Trade {
        Buy {
          Currency {
            SmartContract
            Symbol
            Name
          }
          AmountInUSD(maximum: Trade_Buy_AmountInUSD)
        }
        Sell {
          Currency {
            SmartContract
            Symbol
            Name
          }
          AmountInUSD(maximum: Trade_Sell_AmountInUSD)
        }
      }
    }
  }
}

Similar queries