tv chart his query

Returns the latest 100000 DEX trades by token on Solana: block time, sum of trade amount, trade price, side currency name, side currency mint address, currency name, currency mint address and count.

By Divyasshree · saved 17 July 2025 · Bitquery API v2

What it returns

The query

{
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {}
      limit: {count: 100000}
      limitBy: {by: Trade_Currency_MintAddress, count: 360}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Side {
          Currency {
            Name
            MintAddress
          }
        }
        Currency {
          Name
          MintAddress
        }
      }
      count
    }
  }
}

Similar queries