Trades Where the Address is Buyer OR Seller

Returns the latest 10 DEX trades on Arbitrum: buy buyer, buy amount, buy currency name, protocol name, sell buyer, sell price, sell currency name and transaction hash.

By Maroti Patre · saved 19 February 2024 · run 2 times · Bitquery API v2

What it returns

The query

query MyQuery {
  EVM(dataset: archive, network: arbitrum) {
    DEXTrades(
      where: {any: [{Trade: {Buy: {Buyer: {is: "0x0938C63109801Ee4243a487aB84DFfA2Bba4589e"}}}}, 
        {Trade: {Buy: {Seller: {is: "0x0938C63109801Ee4243a487aB84DFfA2Bba4589e"}}}}]}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Buy {
          Buyer
          Amount
          Currency {
            Name
          }
        }
        Dex {
          ProtocolName
        }
        Sell {
          Buyer
          Price
          Currency {
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries