Get list of USDT Liquidity Pools V2

Get list of USDT Liquidity pools on Ethereum DEXes. This API returns you address, symbol and name of both the tokens in the liquidity pool. Use the balance API then to get the Liquidity of the tokens in pool.

By Nikhil · saved 7 July 2023 · run 8 times · Bitquery API v2

What it returns

Filters

The query

# Get list of ERC20 Liquidity Pools
# $token is address of ERC20 Token

query ($token: String!) {
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
      limitBy: {count: 10, by: Trade_Buy_Currency_Symbol}
      orderBy: {descendingByField: "tradeVol"}
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      Trade {
        Sell {
          Currency {
            Name
            ProtocolName
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries