liqidity of all pools of a token
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: Solana(dataset: combined) archive full history combined archive + realtime in one result Archive and c
What it returns
- market address
- base currency mint address
- base currency symbol
- base currency name
- quote currency mint address
- quote currency symbol
- quote currency name
- protocol family
- protocol name
- quote post amount
- quote post amount in USD
- base post amount
- base post amount in USD
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# Solana(dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query GetLatestLiquidityForPool {
Solana(dataset: realtime) {
DEXPools(
where: {Pool:{Market:{BaseCurrency:{Name:{not:""}}QuoteCurrency:{Name:{not:""}}}} any: [{Pool: {Market: {BaseCurrency: {MintAddress: {is: "F5tfztTnE4sYsMhZT5KrFpWvHmYSfJZoRjCuxKPbpump"}}}}}, {Pool: {Market: {QuoteCurrency: {MintAddress: {is: "F5tfztTnE4sYsMhZT5KrFpWvHmYSfJZoRjCuxKPbpump"}}}}}], Transaction: {Result: {Success: true}}}
) {
Pool {
Market {
MarketAddress
BaseCurrency {
MintAddress
Symbol
Name
}
QuoteCurrency {
MintAddress
Symbol
Name
}
}
Dex {
ProtocolFamily
ProtocolName
}
Quote {
PostAmount(maximum:Block_Slot)
PostAmountInUSD(maximum:Block_Slot)
}
Base {
PostAmount(maximum:Block_Slot)
PostAmountInUSD(maximum:Block_Slot)
}
}
}
}
}
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