Price of a pump fun token

Returns DEX trades by token on Solana, where currency mint address is 6p6xgH…GiPN and block time since 2025-02-07, sorted by block time: block time, trade price, price in USD, sum of trade amount and sum of trade side amount in USD.

By SJ · saved 8 February 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query HistoricalPriceAndVolume($token: String!, $since: DateTime!, $interval_in: OLAP_DateTimeIntervalUnits!, $interval_count: Int!) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}}, Block: {Time: {since: $since}}}
      orderBy: {ascending: Block_Time}
    ) {
      Block {
        Timefield: Time(interval: {in: $interval_in, count: $interval_count})
      }
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Time)
        close: Price(maximum: Block_Time)
        PriceInUSD
      }
      volume: sum(of: Trade_Amount)
      volume_in_usd: sum(of: Trade_Side_AmountInUSD)
      
    }
  }
}

Variables

{
  "token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
  "since": "2025-02-07T21:27:16Z",
  "interval_in": "minutes",
  "interval_count": 1
}

Similar queries