Pairs Of A Token From Specific DEX

Returns 10 DEX trades on Ethereum, where buy currency smart contract is 0xdAC1…1ec7 and DEX protocol name is uniswap_v3: buy currency name, buy smart contract, protocol name, owner address, pair name, smart contract, sell currency name and sell smart contract.

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

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}}, Dex: {ProtocolName: {is: "uniswap_v3"}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Dex {
          ProtocolName
          OwnerAddress
          Pair {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries