Get pools for a token

Returns DEX trades on Ethereum, where buy currency smart contract is 0x9609…1b2c: smart contract, buy currency symbol, buy currency name, buy smart contract, sell currency symbol, sell smart contract and sell currency name.

By gaurav · saved 30 December 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limitBy: {by: [Trade_Buy_Currency_SmartContract, Trade_Sell_Currency_SmartContract], count: 1}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x9609b540e5dedddb147abbf9812ade06b1e61b2c"}}}}}
    ) {
      Trade {
        Dex {
          Pair {
            SmartContract
          }
        }
        Buy {
          Currency {
            Symbol
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Symbol
            SmartContract
            Name
          }
        }
      }
    }
  }
}

Similar queries