DEX Trades Where Address is Buyer Or Seller

Returns the latest 10 DEX trades on Ethereum: buy buyer, buy amount, buy seller, buy currency name, buy smart contract, protocol name, sell amount and 4 more fields.

By Ashish Bhintade · saved 12 April 2024 · Bitquery API v2

What it returns

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {any: [{Trade: {Buy: {Buyer: {is: "0xF977814e90dA44bFA03b6295A0616a897441aceC"}}}}, {Trade: {Buy: {Seller: {is: "0xF977814e90dA44bFA03b6295A0616a897441aceC"}}}}]}
    ) {
      Trade {
        Buy {
          Buyer
          Amount
          Seller
          Currency {
            Name
            SmartContract
          }
        }
        Dex {
          ProtocolName
        }
        Sell {
          Amount
          Buyer
          Seller
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries