PoolTransactions

This query helps to extract every swap transaction and their amount and prices for a specific

By yeyuantest · saved 22 July 2024 · run 15 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    volume: DEXTrades(
      where: {Block: {Time: {since: "2024-07-22T10:01:55.000Z"}}, Trade: {Dex: {Pair: {SmartContract: {is: "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852"}}}}}
      orderBy: {ascending: Block_Date}
    ) {
      token1_vol: sum(of: Trade_Buy_Amount)
      token2_vol: sum(of: Trade_Sell_Amount)
      Block {
        Date
      }
      Trade {
        Sell {
          Amount
          Currency {
            Name
            SmartContract
          }
          Price
          PriceInUSD
          Ids
          OrderId
          URIs
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
          Amount
          AmountInUSD
          Price
          PriceInUSD
          Ids
          OrderId
          URIs
        }
        Sender
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries