DEX Trades Of An Address For A Specific Currency

Returns DEX trades by token on Ethereum, where currency smart contract is 0xdAC1…1ec7: trade amount, buyer, seller, currency name, smart contract, protocol name, side smart contract and side currency name.

By Ashish Bhintade · saved 13 April 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}}, any: [{Trade: {Buyer: {is: "0xF977814e90dA44bFA03b6295A0616a897441aceC"}}}, {Trade: {Seller: {is: "0xF977814e90dA44bFA03b6295A0616a897441aceC"}}}]}
    ) {
      Trade {
        Amount
        Buyer
        Seller
        Currency {
          Name
          SmartContract
        }
        Dex {
          ProtocolName
        }
        Side {
          Currency {
            SmartContract
            Name
          }
        }
      }
    }
  }
}

Similar queries