ATH of token on Solana

Returns DEX trades by token on Solana, where currency mint address is EsP4kJ…pump, block time since 2024-08-04 and block time till 2024-11-26: price in USD, currency name, currency symbol, currency mint address, side currency name, side currency symbol, side currency mint address and block time.

By gaurav · saved 25 November 2024 · run 45 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String, $time_ago: DateTime, $time_before: DateTime, 
  $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: $time_ago, till: $time_before}},
        Trade: { Currency: {MintAddress: {is: $token}}}}
    ) {
      Trade {
        price: PriceInUSD(maximum: Trade_PriceInUSD)
        Currency {
          Name
          Symbol
          MintAddress
        }
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
      Block {
        Time(interval: {count: $space, in: $resolution})
      }
    }
  }
}

Variables

{
  "token": "EsP4kJfKUDLfX274WoBSiiEy74Sh4tZKUCDjfULHpump",
  "time_ago": "2024-08-04T00:00:00.000Z",
  "time_before": "2024-11-26T00:00:00.000Z",
  "space": 12,
  "resolution": "months"
}

Similar queries