Get DEX pools

Returns the latest DEX pool on Solana, where DEX program address is 675kPX…1Mp8, quote post amount in USD is at least 500 and quote post amount in USD is at most 500000: market address, base currency symbol, base currency name, base currency mint address, decimals, quote currency symbol, quote currency name and 11 more fields.

By Giselda Ketilsson · saved 17 September 2025 · Bitquery API v2

What it returns

Filters

The query

query GetRaydiumPairsWithLiquidity(
  $minLiquidityUSD: String,
  $maxLiquidityUSD: String,
  $pairCount: Int
) {
  Solana {
    DEXPools(
      where: {
        Pool: {
          Dex: {
            ProgramAddress: {
              is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"
            }
          }
          Quote: {
            PostAmountInUSD: {
              ge: $minLiquidityUSD
              le: $maxLiquidityUSD
            }
          }
          Base: {
            PostAmountInUSD: {
              ge: $minLiquidityUSD
              le: $maxLiquidityUSD
            }
          }
        }
        Transaction: { Result: { Success: true } }
      }
      orderBy: { descending: Block_Time }
      limit: { count: $pairCount }
    ) {
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            Symbol
            Name
            MintAddress
            Decimals
          }
          QuoteCurrency {
            Symbol
            Name
            MintAddress
            Decimals
          }
        }
        Base {
          PostAmount
          PostAmountInUSD
        }
        Quote {
          PostAmount
          PostAmountInUSD
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
      }
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
      }
    }
  }
}

Variables

{
  "minLiquidityUSD": "500",
  "maxLiquidityUSD": "500000",
  "pairCount": 1
}

Similar queries