Get all the dexs a specific token is listed on

Returns DEX trades by token on Ethereum, where currency smart contract is 0x2260…c599, sorted by amount, highest first: protocol family, protocol name, sum of trade amount, unique of trade side currency smart contract and count.

By Akshat · saved 22 September 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query tokenDexMarkets($network: evm_network, $token: String) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "amount"}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
      amount: sum(of: Trade_Amount)
      pairs: uniq(of: Trade_Side_Currency_SmartContract)
      trades: count
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
}

Similar queries