Token pools for pair

Returns DEX pools on Solana, where base currency mint address is 7GCihg…W2hr and quote currency mint address is EPjFWd…Dt1v, sorted by pool quote post amount in USD maximum, highest first: protocol family, market address, base post amount, base post amount in USD, quote post amount and quote post amount in USD.

By Aleksey · saved 2 September 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "token": "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr",
  "quote": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}

Similar queries