check

Top trades for a specific currency for specific time

Streams the latest DEX trades on Ethereum as they happen, where sell currency smart contract is 0x9813…18d9, DEX smart contract is 0xEFb4…a477 and buy buyer is not 0xae2F…aE13 or 0xaEC2…cb03: from, transaction hash, buy amount, buy currency symbol, sell amount, sell currency name and sell currency symbol.

By Omkar_BQ · saved 14 September 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription SubGetTxForPairAddressV2($netzwerk: evm_network, $tokenContractAddress: String, $pairContractAddress: String) {
  EVM(network: $netzwerk, trigger_on: head) {
    buyside: DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: $tokenContractAddress}}}, Dex: {SmartContract: {is: $pairContractAddress}, Pair: {SmartContract: {}}}, Buy: {Buyer: {notIn: ["0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13", "0xaEC2605a04bB7709a61eF43d660712Ece030cb03"]}}}}
    ) {
      Transaction {
        From
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Symbol
          }
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "tokenContractAddress": "0x9813037ee2218799597d83D4a5B6F3b6778218d9",
  "pairContractAddress": "0xEFb47fcFCaD4F96c83D4ca676842fB03Ef20a477",
  "netzwerk": "eth"
}

Similar queries