pepe token price

Returns one pair, where token address is 0x6982…1933, market network is Ethereum and time duration is 1, sorted by USD, highest first: block time, currency ID, currency name, currency symbol, token ID, token name, token symbol and 17 more fields.

By gaurav · saved 2 September 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query lastOfMarketsForToken($tokenID: String) {
  Trading {
    Pairs(
      orderBy: {descendingByField: "usd"}
      limit: {count: 1}
      where: {Market: {Network: {is: "Ethereum"}}, Token: {Address: {is: $tokenID}}, Interval: {Time: {Duration: {eq: 1}}}}
    ) {
      Block {
        Time(maximum: Block_Time)
      }
      Currency {
        Id
        Name
        Symbol
      }
      Token {
        Id
        Name
        Symbol
        Address
      }
      QuoteToken {
        Id
        Name
        Symbol
        Address
      }
      Market {
        Id
        Network
        NetworkBid
        Name
        ProtocolFamily
        Protocol
        Address
        Program
      }
      Price {
        Ohlc {
          current_price: Close(
            if: {Interval: {Time: {Start: {is_relative: {round: {in: hours}}}}}}
          )
          prev_price: Close(
            if: {Interval: {Time: {Start: {is_relative: {hours_ago: 1, round: {in: hours}}}}}}
          )
        }
        Average {
          current_mean: Mean(
            if: {Interval: {Time: {Start: {is_relative: {round: {in: hours}}}}}}
          )
          hour_ago_mean: Mean(
            if: {Interval: {Time: {Start: {is_relative: {hours_ago: 1, round: {in: hours}}}}}}
          )
          hour_24_ago_mean: Mean(
            if: {Interval: {Time: {Start: {is_relative: {hours_ago: 24, round: {in: hours}}}}}}
          )
        }
      }
      usd: sum(of: Volume_Usd)
      current_price: calculate(
        expression: "if($Price_Ohlc_current_price_any=0, $Price_Ohlc_prev_price_any, $Price_Ohlc_current_price_any)"
      )
      diff_1h: calculate(
        expression: "round(10000 * ($current_price - $Price_Average_hour_ago_mean_any) / $current_price) / 100"
      )
      diff_24h: calculate(
        expression: "round(10000 * ($current_price - $Price_Average_hour_24_ago_mean_any) / $current_price) / 100"
      )
    }
  }
}

Variables

{
  "tokenID": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
}

Similar queries