get_meme_data

Returns DEX trades by token on Solana, where market market address is EtnWvh…tChc, block time since 2024-05-24 and block time till 2025-05-24, sorted by block timefield: block time, sum of trade amount, count and trade price.

By adinugroho · saved 25 May 2025 · run 15 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {Trade: {Market: {MarketAddress: {is: "EtnWvhes7BFFWgRxwoitnyCSkD2uGZGVcWHtLQVKtChc"}}}, Block: {Time: {since: "2024-05-24T07:10:07Z", till: "2025-05-24T07:10:07Z"}}}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, count: 1})
      }
      volumeSell: sum(
        of: Trade_Amount
        if: {Trade: {Side: {Type: {is: sell}, AmountInUSD: {}}}}
      )
      volumeBuy: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      volume: sum(of: Trade_Amount)
      countBuy: count(if: {Trade: {Side: {Type: {is: buy}}}})
      countSell: count(if: {Trade: {Side: {Type: {is: sell}}}})
      count
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
      }
    }
  }
}

Similar queries