Tokens by liquidity

Returns 50 DEX pools on Solana, where program name is pump_amm, block time since 2025-05-04 and quote post amount in USD is at least 30000, sorted by block time: market address, base currency symbol, base currency name, base currency mint address, quote currency symbol, quote currency mint address, quote post amount in USD and 6 more fields.

By Alex · saved 5 June 2025 · run 10 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    tokens: DEXPools(
      limit: {count: 50}
      where: {Pool: {Quote: {PostAmountInUSD: {ge: "30000", le: "300000"}}, Base: {PostAmountInUSD: {ge: "30000", le: "300000"}}}, Block: {Time: {since: "2025-05-04T00:00:00Z"}}, Instruction: {Program: {Name: {is: "pump_amm"}}}}
      limitBy: {by: Pool_Market_BaseCurrency_MintAddress, count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            Symbol
            Name
            MintAddress
          }
          QuoteCurrency {
            Symbol
            MintAddress
          }
        }
        Quote {
          PostAmountInUSD
        }
        Base {
          PostAmountInUSD
        }
      }
      trades: joinDEXTradeByTokens(
        Trade_Market_MarketAddress: Pool_Market_MarketAddress
        where: {Transaction: {Result: {Success: true}}, Block: {Time: {since: "2025-06-04T04:53:59Z"}}}
      ) {
        Trade {
          currentPrice: PriceInUSD(maximum: Block_Time)
        }
        Trade {
          openPrice: PriceInUSD(minimum: Block_Time)
        }
        volumeUSD: sum(of: Trade_AmountInUSD)
        transactionCount: count(distinct: Transaction_Signature)
        buyCount: count(if: {Trade: {Side: {Type: {is: buy}}}})
        sellCount: count(if: {Trade: {Side: {Type: {is: sell}}}})
        buyVolume: sum(
          of: Trade_Side_AmountInUSD
          if: {Trade: {Side: {Type: {is: buy}}}}
        )
        sellVolume: sum(
          of: Trade_Side_AmountInUSD
          if: {Trade: {Side: {Type: {is: sell}}}}
        )
        uniqueBuyers: count(
          distinct: Transaction_Signer
          if: {Trade: {Side: {Type: {is: buy}}}}
        )
        uniqueSellers: count(
          distinct: Transaction_Signer
          if: {Trade: {Side: {Type: {is: sell}}}}
        )
      }
      Block {
        Time(minimum: Block_Time)
      }
    }
  }
}

Similar queries