get all the liquidity pools info for a particular token

Returns DEX pools on Solana, where base currency mint address is EKpQGS…zcjm, sorted by , 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 Akshat · saved 19 September 2024 · Bitquery API v2

What it returns

Filters

The query

query ($token: String) {
  Solana {
    DEXPools(
      orderBy: {descendingByField: " "}
      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": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"
}

Similar queries