solana token high example period data

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

By Divyasshree · saved 19 December 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String) {
  Solana(dataset: combined, network: solana, aggregates: yes) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {Trade: {Side: {Amount: {gt: "0"}}, Currency: {MintAddress: {is: $token}}}, Block: {Time: {before: "2024-12-11T02:37:00Z", after: "2024-10-21T02:37:00Z"}}}
    ) {
      Trade {
        high: PriceInUSD(maximum: Trade_PriceInUSD)
      }
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
    }
  }
}

Variables

{
  "token": "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump",
  "space": 1,
  "resolution": "minutes"
}

Similar queries