top100

Returns 100 DEX trades by token on Solana, where currency mint address is not So1111…1112 or EPjFWd…Dt1v, DEX protocol family is not pump and block time after 2025-02-01, sorted by buy, highest first: currency symbol, currency name, currency mint address and sum of trade side amount in USD.

By Robert McEwen · saved 2 February 2025 · Bitquery API v2

What it returns

Filters

The query

query ($time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      where: {Trade: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}, Dex: {ProtocolFamily: {not: "pump"}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
      limit: {count: 100}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "time_ago": "2025-02-01T16:03:58Z"
}

Similar queries