Query swaps on different protocols

Returns the latest 20000 DEX trades on Ethereum, where DEX protocol family is KyberNetwork, Uniswap or 4 more, block date since 2025-07-01 and block date till 2025-09-01: block time, block number, burnt, burnt in USD, effective gas price, effective gas price in USD, gas refund and 51 more fields.

By Divyasshree · saved 20 November 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      limit: {count: 20000}
      where: {Trade: {Dex: {ProtocolFamily: {in: ["KyberNetwork", "Uniswap", "PancakeSwap", "Curve", "1inch", "Balancer"]}}}, Block: {Date: {since: "2025-07-01", till: "2025-09-01"}}}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
        Number
      }
      Fee {
        Burnt
        BurntInUSD
        EffectiveGasPrice
        EffectiveGasPriceInUSD
        GasRefund
        MinerReward
        MinerRewardInUSD
        PriorityFeePerGas
      }
      Receipt {
        ContractAddress
        Status
      }
      TransactionStatus {
        Success
      }
      Log {
        Signature {
          Name
        }
        SmartContract
      }
      Call {
        From
        InternalCalls
        Signature {
          Name
          Signature
        }
        To
        Value
      }
      Transaction {
        Gas
        Cost
        CostInUSD
        GasFeeCap
        GasFeeCapInUSD
        GasPrice
        GasPriceInUSD
        GasTipCap
        GasTipCapInUSD
        Index
        Nonce
        Protected
        Time
        Type
        Value
        ValueInUSD
        Hash
        From
        To
      }
      Trade {
        Buy {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Decimals
            Name
            Symbol
            SmartContract
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Name
            Symbol
            SmartContract
          }
          Price
          PriceInUSD
        }
        Dex {
          ProtocolName
          SmartContract
          OwnerAddress
        }
      }
    }
  }
}

Similar queries