sv_

Returns the latest 10 DEX trades on Ethereum, where sell currency smart contract is 0xe012…33a8, DEX smart contract is 0xc131…52e7 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 15 December 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query SubGetTxForPairAddressV2($netzwerk: evm_network, $tokenContractAddress: String, $pairContractAddress: String, $excludeTokens: [String]) {
  EVM(network: $netzwerk, dataset: combined) {
    buyside: DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: $tokenContractAddress}}}, Dex: {SmartContract: {is: $pairContractAddress}, Pair: {SmartContract: {}}}, Buy: {Buyer: {notIn: $excludeTokens}}}}
      limit: {count: 10}
    ) {
      Transaction {
        From
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Symbol
          }
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "tokenContractAddress": "0xe01211c63d9bbfc95ba490243d72cc0392fa33a8",
  "pairContractAddress": "0xc131dba6bd8ee6bc065200b93c15f86b7ec852e7",
  "netzwerk": "eth",
  "excludeTokens": ["0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13", "0xaEC2605a04bB7709a61eF43d660712Ece030cb03"]
}

Similar queries