All time high of a token on solana

Returns one DEX trade by token on Solana, where currency mint address is Dfh5Dz…pump, side currency mint address is So1111…1112 and block time after 2025-01-26: trade price, price in USD, post balance in USD, currency name, currency symbol, currency mint address and decimals.

By Codi · saved 27 January 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {after: "2025-01-26T00:00:00Z", before: "2025-01-27T12:00:00Z"}}}
    ) {
      Trade {
        ATH: Price(maximum: Trade_Price)
        ATH_USD: PriceInUSD(maximum: Trade_PriceInUSD)
      }
    }
    TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {is: $token}}}}
      limit: {count: 1}
    ) {
      TokenSupplyUpdate {
        Marketcap: PostBalanceInUSD
        Currency {
          Name
          Symbol
          MintAddress
          Decimals
        }
      }
    }
  }
}

Variables

{
  "token": "Dfh5DzRgSvvCFDoYc2ciTkMrbDfRKybA4SoFbPmApump"
}

Similar queries