get all the liquidity pools info for a particular token

Returns DEX pools on Solana, where base currency mint address is EYQ7zL…BVRP, 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 Chrome · saved 30 September 2024 · run 3 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": "EYQ7zLpy633eawuNfJnmGXJ1RMfidR4YWhZLYAfKBVRP"
}

Similar queries