ATH Marketcap all time

Returns DEX trades by token on Solana, where currency mint address is 8SAwv8…pump, side currency mint address is So1111…1112 and trade price asymmetry is at most 0.1: currency mint address, currency name, currency symbol, price in USD, side currency name, side currency symbol, side currency mint address and 2 more fields.

By Akshat · saved 16 December 2025 · run 12 times · Bitquery API v2

What it returns

Filters

The query

query GetAthMarketCap($tokens: [String!]!) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: { Trade: {PriceAsymmetry:{le:0.1} Currency: {MintAddress: {in: $tokens}} Side:{Currency:{MintAddress:{in:["So11111111111111111111111111111111111111112"]}} AmountInUSD: {gt: "1"}}}}
    ) {
      Trade {
        Currency {
          MintAddress
          Name
          Symbol
        }
        PriceInUSD(maximum: Trade_PriceInUSD)
        Starting_Price: PriceInUSD(minimum: Block_Slot)
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
      max: quantile(of: Trade_PriceInUSD, level: 0.98)
      ATH_Marketcap: calculate(expression: "$max * 1000000000")
      Starting_Marketcap: calculate(expression: "$Trade_Starting_Price * 1000000000")
    }
  }
}

Variables

{
  "tokens":"8SAwv8EKMKaKnupTsYjoQdgBuWxJdo3ouA178UU7pump"
}

Similar queries