vinotech example

Returns the latest 100 DEX trades on Ethereum, where block time since 2025-04-10: base fee, coinbase, block date, difficulty, gas limit, gas used, block hash and 75 more fields.

By Divyasshree · saved 17 April 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($since: DateTime!) {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Block: {Time: {since: $since}}}
      limit: {count: 100}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        BaseFee
        Coinbase
        Date
        Difficulty
        GasLimit
        GasUsed
        Hash
        Nonce
        Number
        ParentHash
        Time
      }
      ChainId
      Trade {
        Buy {
          Amount
          AmountInUSD
          Buyer
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          Ids
          OrderId
          Price
          PriceInUSD
          Seller
          URIs
        }
        Dex {
          Delegated
          DelegatedTo
          OwnerAddress
          Pair {
            Decimals
            Name
            SmartContract
            Symbol
          }
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Fees {
          Amount
          AmountInUSD
          Currency {
            Decimals
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          Payer
          Recipient
        }
        Index
        PriceAsymmetry
        Sell {
          Amount
          AmountInUSD
          Buyer
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          Ids
          OrderId
          Price
          PriceInUSD
          Seller
          URIs
        }
        Sender
        Success
      }
      Transaction {
        Cost
        CostInUSD
        From
        Gas
        GasFeeCap
        GasFeeCapInUSD
        GasPrice
        GasPriceInUSD
        GasTipCap
        GasTipCapInUSD
        Hash
        Index
        Nonce
        Protected
        Time
        To
        Type
        Value
        ValueInUSD
      }
    }
  }
}

Variables

{
  "since":"2025-04-10T00:00:00Z"
}

Similar queries