Tokens by liquidity_join
Returns 5 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 pool base post amount in USD, highest first: 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 5 more fields.
What it returns
- market address
- base currency symbol
- base currency name
- base currency mint address
- quote currency symbol
- quote currency mint address
- quote post amount in USD
- base post amount in USD
- price in USD
- sum of trade amount in USD
- join DEX trade by tokens count
- sum of trade side amount in USD
Filters
- program name is pump_amm
- block time since 2025-05-04
- quote post amount in USD is at least 30000
- quote post amount in USD is at most 500000
- base post amount in USD is at least 30000
- base post amount in USD is at most 500000
The query
{
Solana {
tokens: DEXPools(
limit: {count: 5}
where: {Pool: {Quote: {PostAmountInUSD: {ge: "30000", le: "500000"}}, Base: {PostAmountInUSD: {ge: "30000", le: "500000"}}}, Block: {Time: {since: "2025-05-04T00:00:00Z"}}, Instruction: {Program: {Name: {is: "pump_amm"}}}}
limitBy: {by: Pool_Market_BaseCurrency_MintAddress, count: 1}
orderBy: {descending: Pool_Base_PostAmountInUSD}
) {
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_Currency_MintAddress: Pool_Market_BaseCurrency_MintAddress
) {
Trade {
openPrice: PriceInUSD(minimum: Block_Time)
currentPrice: PriceInUSD(maximum: 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}}}}
)
}
}
}
}
Similar queries
- Solana Pool Latest Price · Solana · DexPools
- Solana Pool Price History Last Hour · Solana · DexPools
- price · Solana · DEXTradeByTokens
- websocket Solana dexpool api · Solana · DexPools
- query solana pools · Solana · DexPools