trade_by_token

Returns DEX trades, where buy currency smart contract is 0x1121…AAc5 and sell currency smart contract is 0x1121…AAc5: buy amount in USD, buy buyer, buy seller, buy smart contract, smart contract, sell seller, sell buyer and 2 more fields.

By Ioannis Gkinis · saved 21 January 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(mempool: true) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x1121AcC14c63f3C872BFcA497d10926A6098AAc5"}}}, Sell: {Currency: {SmartContract: {is: "0x1121AcC14c63f3C872BFcA497d10926A6098AAc5"}}}}}
    ) {
      Trade {
        Buy {
          AmountInUSD
          Buyer
          Seller
          Currency {
            SmartContract
          }
        }
        Dex {
          Pair {
            SmartContract
          }
        }
        Sell {
          Seller
          Buyer
          AmountInUSD
          Currency {
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries