mirror-link-query
Returns the latest DEX pool on Solana, where base currency mint address is 2XYgoc…4dYT, currency mint address is 2XYgoc…4dYT and DEX protocol family is Raydium or Pumpswap: base post amount, base price in USD, quote post amount, protocol family, base currency name, base currency symbol, base currency mint address and 4 more fields.
What it returns
- base post amount
- base price in USD
- quote post amount
- protocol family
- base currency name
- base currency symbol
- base currency mint address
- quote currency name
- quote currency symbol
- quote currency mint address
- post balance in USD
Filters
- base currency mint address is 2XYgoc…4dYT
- currency mint address is 2XYgoc…4dYT
- DEX protocol family is Raydium or Pumpswap
The query
query MyQuery($token: String!) {
Solana {
DEXPools(
where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}}, Dex: {ProtocolFamily: {in: ["Raydium", "Pumpswap"]}}}}
limitBy: {by: Pool_Market_MarketAddress, count: 1}
orderBy: {descending: Block_Time}
) {
Pool {
Base {
BaseLiquidity: PostAmount
PriceInUSD
}
Quote {
QuoteLiquidity: PostAmount
}
Dex {
ProtocolFamily
}
Market {
BaseCurrency {
Name
Symbol
MintAddress
}
QuoteCurrency {
Name
Symbol
MintAddress
}
}
}
}
TokenSupplyUpdates(
where: {TokenSupplyUpdate: {Currency: {MintAddress: {is: $token}}}}
orderBy: {descending: Block_Time}
limit: {count: 1}
) {
TokenSupplyUpdate {
Marketcap: PostBalanceInUSD
}
}
}
}
Variables
{
"token": "2XYgocKz9MvkNVVyj85kdM2VxsUwrJeQUZVD4qmD4dYT"
}
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