Copy of Dexscreener- All in One query

Get you the top 10 pairs with their current USD price, total traded volume, total buy volume, total sell volume, total buys, total sells, makers, total trades, price change 5 min, price change 1 hr

By ahmad · saved 30 July 2025 · Bitquery API v2

What it returns

Filters

The query

query FindHotCoins {
  Solana {
    DEXTradeByTokens(
      where: {
        Block: { Time: { since: "2025-07-29T00:00:00Z" } }
        Transaction: { Result: { Success: true } }
        Trade: {
          Side: { Type: { in: [buy, sell] } }
          Currency: {  MarketCapUSD: { lt: 100000000 } }
        }
      }
      limit: { count: 10 }
      orderBy: { descendingByField: "total_buy_volume" }
    ) {
      Trade {
        Currency {
          MintAddress
          Symbol
        }
        PriceInUSD
        start_price: PriceInUSD(minimum: Block_Time)
        end_price: PriceInUSD(maximum: Block_Time)
        Side { Type }
      }
      makers: count(distinct: Transaction_Signer)
      total_trades: count
      total_buys: count(if: { Trade: { Side: { Type: { is: buy } } } })
      total_sells: count(if: { Trade: { Side: { Type: { is: sell } } } })
      total_buy_volume: sum(of: Trade_Side_AmountInUSD, if: { Trade: { Side: { Type: { is: buy } } } })
      total_sell_volume: sum(of: Trade_Side_AmountInUSD, if: { Trade: { Side: { Type: { is: sell } } } })
    }
  }
}

Similar queries