check

Returns 20 DEX trades on Ethereum, where buy currency smart contract is 0x95ad…c4ce, DEX owner address is 0x5c69…aa6f and sell currency symbol is WETH, USDC or 1 more: protocol name, owner address, smart contract, buy currency name, buy smart contract, buy currency symbol, sell currency name and 3 more fields.

By Omkar Acharekar · saved 5 September 2023 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query SucheNachPairAufUniswap($smartContract: String!, $ownerAddress: String!, $netzwerk: evm_network = eth, $symbols: [String!]!) {
  EVM(dataset: archive, network: $netzwerk) {
  DEXTrades(
    where: {Trade: {Buy: {Currency: {SmartContract: {is: $smartContract}, Symbol: {}}}, Sell: {Currency: {Symbol: {in: $symbols}}}, Dex: {OwnerAddress: {is: $ownerAddress}, SmartContract: {}}}}
    limit: {count: 20}
    limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
  ) {
    Trade {
      Dex {
        ProtocolName
        OwnerAddress
        SmartContract
      }
      Buy {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
      Sell {
        Currency {
          Name
          SmartContract
          ProtocolName
          Symbol
        }
      }
    }
  }
  }
}

Variables

{
 "smartContract": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
 "ownerAddress": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
 "netzwerk" : "eth",
 "symbols": ["WETH", "USDC", "USDT"]
}

Similar queries