top 50 trading pairs with trades count, volume, buys, sells, makers, marketcap, supply and liquidity

Returns 50 DEX trades by token on Solana, where block time since 2025-07-03, sorted by trades count 1 h, highest first: currency symbol, currency name, currency mint address, price in USD, market address, side currency symbol, side currency name and 13 more fields.

By gaurav · saved 3 July 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($time_1h_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Block: {Time: {since: $time_1h_ago}}, any: [{Trade: {Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}, {Trade: {Currency: {MintAddress: {not: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}, {Trade: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}, Side: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}}]}
      orderBy: {descendingByField: "trades_count_1h"}
      limit: {count: 50}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
        }
        Latest_Price: PriceInUSD(maximum: Block_Time)
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
      }
      makers: count(distinct: Transaction_Signer)
      buyers: count(
        distinct: Transaction_Signer
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sellers: count(
        distinct: Transaction_Signer
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      traded_volume: sum(of: Trade_Side_AmountInUSD)
      buy_volume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sell_volume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      trades_count_1h: count
      liquidity: joinDEXPools(
        join: inner
        Pool_Market_MarketAddress: Trade_Market_MarketAddress
        where: {Transaction: {Result: {Success: true}}}
      ) {
        Pool {
          Market {
            BaseCurrency {
              Name
              Symbol
            }
            QuoteCurrency {
              Name
              Symbol
            }
          }
          Base {
            Balance: PostAmount(maximum: Block_Slot)
            Base_Liquidity_USD: PostAmountInUSD(maximum: Block_Slot)
          }
          Quote {
            PostAmount(maximum: Block_Slot)
            Quote_Liquidity_USD: PostAmountInUSD(maximum: Block_Slot)
          }
        }
      }
      marketcap_and_supply: joinTokenSupplyUpdates(
        join: inner
        TokenSupplyUpdate_Currency_MintAddress: Trade_Currency_MintAddress
        where: {Transaction: {Result: {Success: true}}}
      ) {
        TokenSupplyUpdate {
          MarketCap: PostBalanceInUSD(maximum: Block_Slot)
          Supply: PostBalance(maximum: Block_Slot)
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "time_1h_ago": "2025-07-03T07:50:00Z"
}

Similar queries