solana token high example

Returns DEX trades by token on Solana, where currency mint address is Cwa6QN…pump, block time after 2024-12-10 and block time before 2024-12-15, sorted by block testname: price in USD and block time.

By Divyasshree · saved 19 December 2024 · 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: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Testname"}
      where: {Block: {Time: {after: $time_ago, before: $time_before}}, Trade: {Side: {Amount: {gt: "0"}}, Currency: {MintAddress: {is: $token}}}}
    ) {
      Trade {
        high: PriceInUSD(maximum: Trade_PriceInUSD)
      }
      Block {
        Testname: Time(interval: {count: $space, in: $resolution})
      }
    }
  }
}

Variables

{
  "token": "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump",
  "time_ago": "2024-12-10T00:00:00.000Z",
  "time_before": "2024-12-15T00:00:00.000Z",
  "space": 1,
  "resolution": "minutes"
}

Similar queries