Wrong liquidity query with market address and token

all pairs of sol token

Returns the latest DEX pool on Solana, where base currency mint address is 6p6xgH…GiPN and market market address is GnjWvv…oZ1V: block time, base currency symbol, base currency name, base currency mint address, quote currency symbol, quote currency name, quote currency mint address and 6 more fields.

By Kshitij Mahajan · saved 30 July 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($token: String) {
  Solana {
    DEXPools(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}, MarketAddress: {is: "GnjWvvFY1ZhWj5wJSZBxcpP6PqYmdXFaGgdgFKKYoZ1V"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      Pool {
        Market {
          BaseCurrency {
            Symbol
            Name
            MintAddress
          }
          QuoteCurrency {
            Symbol
            Name
            MintAddress
          }
          MarketAddress
        }
        Dex {
          ProtocolFamily
        }
        Base {
          PostAmount
          PostAmountInUSD
        }
        Quote {
          PostAmount
          PostAmountInUSD
        }
      }
    }
  }
}

Variables

{
  "token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
}

Similar queries