dex markets solana

Returns DEX trades on Solana, sorted by volume, highest first: protocol family, protocol name, sum of trade buy amount in USD, sum of trade buy amount, unique of trade buy account owner, unique of trade sell account owner, count and unique of trade market market address.

By Nadia · saved 17 December 2025 · run 34 times · Bitquery API v2

What it returns

The query

query DexMarkets($time_1d_ago: DateTime) {
  Solana {
    DEXTrades(orderBy: {descendingByField: "volume"}) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
      volume_1d_ago: sum(
        of: Trade_Buy_AmountInUSD
        if: {Block: {Time: {after: $time_1d_ago}}}
      )
      amount_1d_ago: sum(
        of: Trade_Buy_Amount
        if: {Block: {Time: {after: $time_1d_ago}}}
      )
      buyers: uniq(of: Trade_Buy_Account_Owner, method: approximate)
      sellers: uniq(of: Trade_Sell_Account_Owner, method: approximate)
      count
      pools: uniq(of: Trade_Market_MarketAddress)
      volume: sum(of: Trade_Buy_AmountInUSD)
      amount: sum(of: Trade_Buy_Amount)
    }
  }
}

Variables

{
  "time_1d_ago": "2025-12-16T12:21:49Z"
}

Similar queries