Copy of check token pools liquidity
Returns DEX pools on Solana, sorted by block slot, highest first: market address, base currency mint address, quote currency mint address, protocol family, protocol name, quote post amount and base post amount.
What it returns
- market address
- base currency mint address
- quote currency mint address
- protocol family
- protocol name
- quote post amount
- base post amount
The query
query GetLatestLiquidityForPool($tokens: [String!]) {
Solana(dataset: realtime) {
DEXPools(
where: {Pool: {Market: {BaseCurrency: {Name: {not: ""}}, QuoteCurrency: {Name: {not: ""}}}}, any: [{Pool: {Market: {BaseCurrency: {MintAddress: {in: $tokens}}}}}, {Pool: {Market: {QuoteCurrency: {MintAddress: {in: $tokens}}}}}], Transaction: {Result: {Success: true}}}
orderBy: {descending: Block_Slot}
limitBy: {by: Pool_Market_MarketAddress, count: 1}
) {
Pool {
Market {
MarketAddress
BaseCurrency {
MintAddress
}
QuoteCurrency {
MintAddress
}
}
Dex {
ProtocolFamily
ProtocolName
}
Quote {
PostAmount(maximum: Block_Slot)
}
Base {
PostAmount(maximum: Block_Slot)
}
}
}
}
}
Variables
{
"tokens": [
"BTr5SwWSKPBrdUzboi2SVr1QvSjmh1caCYUkxsxLpump"
]
}
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