aave usdc trades

Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is 0x7fc6…dae9: block number, block time, from, to, transaction hash, buy amount, buy buyer and 15 more fields.

By Divyasshree · saved 29 August 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    buyside: DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"}}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
          Pair {
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries