get all the liquidity pools info for a particular token

Returns DEX pools on Solana, where base currency mint address is 8x5Vqb…o2Wn, sorted by pool quote post amount in USD maximum, highest first: quote currency symbol, quote currency name, quote currency mint address, market address, protocol family, base post amount, base post amount in USD and 2 more fields.

By alex · saved 22 January 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query ($token: String) {
  Solana {
    DEXPools(
      orderBy: {descendingByField: "Pool_Quote_PostAmountInUSD_maximum"}
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}}}}
    ) {
      Pool {
        Market {
          QuoteCurrency {
            Symbol
            Name
            MintAddress
          }
          MarketAddress
        }
        Dex {
          ProtocolFamily
        }
        Base {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
        Quote {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
      }
    }
  }
}

Variables

{
  "token": "8x5VqbHA8D7NkD52uNuS5nnt3PwA8pLD34ymskeSo2Wn"
}

Similar queries