Trending Tokens CP

Returns 20 DEX trades by token on Solana, where block time after 2025-05-14, sorted by USD, highest first: block time, currency symbol, currency name, URI, side currency symbol, side currency name, price in USD and 4 more fields.

By DeAura · saved 13 June 2025 · run 14 times · Bitquery API v2

What it returns

Filters

The query

query ($time_1h_ago: DateTime, $time_ago: DateTime, $wsol: String!, $usdc: String!, $usdt: String!) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}, any: [{Trade: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}}, Side: {Currency: {MintAddress: {is: $usdt}}}}}, {Trade: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}}, Side: {Currency: {MintAddress: {is: $usdt}}}}}, {Trade: {Side: {Currency: {MintAddress: {is: $usdc}}}}}, {Trade: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}}, Side: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}}}}}]}
      orderBy: {descendingByField: "usd"}
      limit: {count: 20}
    ) {
      Block {
        Time(maximum: Block_Time, selectWhere: {after: $time_1h_ago})
      }
      Trade {
        Currency {
          Symbol
          Name  
          Uri
        }
        Side {
          Currency {
            Symbol
            Name            
          }
        }
        price_last: PriceInUSD(maximum: Block_Slot)
        price_1h_ago: PriceInUSD(
          minimum: Block_Slot
          if: {Block: {Time: {after: $time_1h_ago}}}
        )        
      }
      amount: sum(of: Trade_Side_Amount)
      usd: sum(of: Trade_Side_AmountInUSD)
      traders: uniq(of: Trade_Account_Owner)
      count(selectWhere: {ge: "100"})
    }
  }
}

Variables

{
  "network": "solana",
  "time_10min_ago": "2025-05-15T10:48:39Z",
  "time_1h_ago": "2025-05-15T09:58:39Z",
  "time_3h_ago": "2025-05-15T07:58:39Z",
  "time_ago": "2025-05-14T10:58:39Z",
  "usdc": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "usdt": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
  "wsol": "So11111111111111111111111111111111111111112",
  "min_count": "1"
}

Similar queries