data is wrong pool is wrong

Returns 20 DEX pools on Solana, where quote currency mint address is 111111…1111 or So1111…1112, sorted by tokenbuy, highest first: sum of pool quote change amount, market address, base currency symbol, base currency name, base currency mint address, quote currency symbol, quote currency name and 3 more fields.

By gaurav · saved 20 February 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXPools(
      orderBy:{descendingByField:"tokenbuy"}
      limit: {count: 20}
      where: {Pool: {Market: {QuoteCurrency: {MintAddress: {in: ["11111111111111111111111111111111", "So11111111111111111111111111111111111111112"]}}}}}
    ) {
      tokenbuy: sum(
        of: Pool_Quote_ChangeAmount
        if: {Pool: {Quote: {ChangeAmount: {gt: "0"}}}}
      )
      tokensell: sum(
        of: Pool_Quote_ChangeAmount
        if: {Pool: {Quote: {ChangeAmount: {lt: "0"}}}}
      )
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            Symbol
            Name
            MintAddress
          }
          QuoteCurrency {
            Symbol
            Name
            MintAddress
          }
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
    }
  }
}

Similar queries