trending tokens

Returns 50 DEX trades by token on Solana, where currency mint address is not So1111…1112, 111111…1111 or 2 more, block time since 2025-08-20 and block time till 2025-08-20, sorted by trades count with unique traders, highest first: currency name, currency symbol, currency mint address, URI, update authority, is mutable, program address and 10 more fields.

By ok1 · saved 20 August 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query TrendingTokens($time1m: DateTime,$time5m: DateTime,$time30m: DateTime,$time1h: DateTime, $till: DateTime) {
  Solana {
    time1m:DEXTradeByTokens(
      limit: {count: 50}
      limitBy:{by:Trade_Currency_MintAddress,count:1}
      where: {Block: {Time: {since: $time1m, till: $till}}, Trade: {Currency: {Name:{not:""},MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}
      orderBy: {descendingByField: "tradesCountWithUniqueTraders"}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
          Uri
          UpdateAuthority
          IsMutable
          ProgramAddress
          Decimals
        }
        Market {
          MarketAddress
        }
        start: PriceInUSD(minimum:Block_Time)
        current_price: PriceInUSD(maximum: Block_Time)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Account {
          Token {
            Owner
          }
        }
      }
      trades: count
      traded_volume: sum(of: Trade_Side_AmountInUSD,selectWhere:{gt:"500"})
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      Block {
        Date(maximum: Trade_Side_Currency_IsMutable)
        Time(maximum: Trade_Side_Currency_IsMutable)
      }
      tradesCountWithUniqueTraders: count(distinct: Transaction_Signer)
    }
    time5m:DEXTradeByTokens(
      limit: {count: 50}
      limitBy:{by:Trade_Currency_MintAddress,count:1}
      where: {Block: {Time: {since: $time5m, till: $till}}, Trade: {Currency: {Name:{not:""},MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}
      orderBy: {descendingByField: "tradesCountWithUniqueTraders"}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
          Uri
          UpdateAuthority
          IsMutable
          ProgramAddress
          Decimals
        }
        Market {
          MarketAddress
        }
        start: PriceInUSD(minimum:Block_Time)
        current_price: PriceInUSD(maximum: Block_Time)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Account {
          Token {
            Owner
          }
        }
      }
      trades: count
      traded_volume: sum(of: Trade_Side_AmountInUSD,selectWhere:{gt:"2000"})
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      Block {
        Date(maximum: Trade_Side_Currency_IsMutable)
        Time(maximum: Trade_Side_Currency_IsMutable)
      }
      tradesCountWithUniqueTraders: count(distinct: Transaction_Signer)
    }
    time30m:DEXTradeByTokens(
      limit: {count: 50}
      limitBy:{by:Trade_Currency_MintAddress,count:1}
      where: {Block: {Time: {since: $time30m, till: $till}}, Trade: {Currency: {Name:{not:""},MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}
      orderBy: {descendingByField: "tradesCountWithUniqueTraders"}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
          Uri
          UpdateAuthority
          IsMutable
          ProgramAddress
          Decimals
        }
        Market {
          MarketAddress
        }
        start: PriceInUSD(minimum:Block_Time)
        current_price: PriceInUSD(maximum: Block_Time)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Account {
          Token {
            Owner
          }
        }
      }
      trades: count
      traded_volume: sum(of: Trade_Side_AmountInUSD,selectWhere:{gt:"5000"})
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      Block {
        Date(maximum: Trade_Side_Currency_IsMutable)
        Time(maximum: Trade_Side_Currency_IsMutable)
      }
      tradesCountWithUniqueTraders: count(distinct: Transaction_Signer)
    }
    time1h:DEXTradeByTokens(
      limit: {count: 50}
      limitBy:{by:Trade_Currency_MintAddress,count:1}
      where: {Block: {Time: {since: $time1h, till: $till}}, Trade: {Currency: {Name:{not:""},MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}
      orderBy: {descendingByField: "tradesCountWithUniqueTraders"}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
          Uri
          UpdateAuthority
          IsMutable
          ProgramAddress
          Decimals
        }
        Market {
          MarketAddress
        }
        start: PriceInUSD(minimum:Block_Time)
        current_price: PriceInUSD(maximum: Block_Time)
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Account {
          Token {
            Owner
          }
        }
      }
      trades: count
      traded_volume: sum(of: Trade_Side_AmountInUSD,selectWhere:{gt:"10000"})
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      Block {
        Date(maximum: Trade_Side_Currency_IsMutable)
        Time(maximum: Trade_Side_Currency_IsMutable)
      }
      tradesCountWithUniqueTraders: count(distinct: Transaction_Signer)
    }
  }
}

Variables

{
  "till":"2025-08-20T05:56:58Z",
  "time1m":"2025-08-20T05:55:58Z",
	"time5m":"2025-08-20T05:51:58Z",
  "time30m":"2025-08-20T05:36:58Z",
  "time1h":"2025-08-20T04:56:58Z"
}

Similar queries