trades of an address

Returns the latest DEX trades: transaction hash, buy currency symbol, buy amount, sell currency symbol and sell amount.

By gaurav · saved 18 June 2024 · run 8 times · Bitquery API v2

What it returns

The query

{
  EVM(dataset: combined) {
    DEXTrades(
      orderBy: {descending: Block_Time}
      where: {any: [{Trade: {Buy: {Buyer: {is: "0x39cae05fbdda8e3354094f046c4e24b4508302ee"}}}}, {Trade: {Buy: {Seller: {is: "0x39cae05fbdda8e3354094f046c4e24b4508302ee"}}}}]}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Currency {
            Symbol
          }
          Amount
        }
        Sell {
          Currency {
            Symbol
          }
          Amount
        }
      }
    }
  }
}

Similar queries