Get Token Pairs From A Pool

Returns the latest 10 DEX trades on Ethereum, where DEX smart contract is 0x0d4a…1852: buy currency name, buy smart contract, pair name, smart contract, sell currency name and sell smart contract.

By Ashish Bhintade · saved 15 April 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {SmartContract: {is: "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852"}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Dex {
          Pair {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries