pool_query

Returns DEX pools on Solana, sorted by pool quote post amount in USD maximum, highest first: quote currency symbol, quote currency name, quote currency mint address, market address, protocol family, base post amount, base post amount in USD and 2 more fields.

By Omkar_BQ · saved 4 October 2024 · run 5 times · Bitquery API v2

What it returns

The query

query ($token: String) {
  Solana {
    DEXPools(
      orderBy: {descendingByField: "Pool_Quote_PostAmountInUSD_maximum"}
      where: {any: [{Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}}}}, {Pool: {Market: {QuoteCurrency: {MintAddress: {is: $token}}}}}]}
    ) {
      Pool {
        Market {
          QuoteCurrency {
            Symbol
            Name
            MintAddress
          }
          MarketAddress
        }
        Dex {
          ProtocolFamily
        }
        Base {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
        Quote {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
      }
    }
  }
}

Variables

{
  "token": "6xtdB32yaaUfmdoHjPBZCBkN8rfjipFGJcSfeqbzpump"
}

Similar queries