ATH of multiple tokens using quantile on Solana

Returns 2 DEX trades by token on Solana, where currency mint address is 8SVVCG…pump or FeR8VB…pump, trade price asymmetry is below 0.01 and trade amount in USD is above 10, sorted by a ath, highest first: currency name and quantile of trade price in USD.

By Divyasshree · saved 30 January 2025 · run 77 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {in: ["8SVVCGzYwnAkDwwvc5fSHZdCenUyhPccnGirWecVpump", "FeR8VBqNRSUD5NtXAj2n3j1dAHkZHfyDktKuLXD4pump"]}}, PriceAsymmetry: {lt: 0.01}, AmountInUSD: {gt: "10"}}}
      limit: {count: 2}
      orderBy: {descendingByField: "aATH"}
      limitBy: {by: Trade_Currency_MintAddress, count: 1}
    ) {
      Trade {
        Currency {
          Name
        }
      }
      aATH: quantile(of: Trade_PriceInUSD, level: 0.99)
    }
  }
}

Similar queries