Query editor
WITH all_traders AS (SELECTdt.tx_id,dt.block_time,dt.token_bought_symbol,dt.token_bought_mint_address,dt.token_bought_amount,dt.amount_usdFROMdex_solana.trades dtWHEREdt.token_bought_symbol NOT IN ('USDC', 'SOL', '')AND dt.tx_id IN (SELECT tx_idFROM tokens_solana.transfersWHERE to_owner = 'BB5dnY55FXS1e1NXqZDwCzgdYJdMCj3B92PU6Q5Fb6DT' -- GMGNOR to_owner = '47hEzz83VFR23rLTEeVm9A7eFzjJwjvdupPPmX3cePqF' -- Banana GunOR to_owner = '4BBNEVRgrxVKv9f7pMNE788XM1tt379X9vNjpDH2KCL7' -- Banana GunOR to_owner = '8r2hZoDfk5hDWJ1sDujAi2Qr45ZyZw5EQxAXiMZWLKh2' -- Banana GunOR to_owner = '9cSuF94JWPb1HQzWMcifJzkoggwAtfjsojcUqny5XuJy' -- ShurikenOR to_owner = '9yMwSPk9mrXSN7yDHUuZurAh1sjbJsfpUqjZ7SvVtdco' -- TrojanOR to_owner = 'G9PhF9C9H83mAjjkdJz4MDqkufiTPMJkx7TnKE1kFyCp' -- Pepe BoostOR to_owner = 'F34kcgMgCF7mYWkwLN3WN7KrFprr2NbwxuLvXx4fbztj' -- Sol Trading BotOR to_owner = 'K1LRSA1DSoKBtC5DkcvnermRQ62YxogWSCZZPWQrdG5' -- Sol Trading BotOR to_owner = 'HEPL5rTb6n1Ax6jt9z2XMPFJcDe9bSWvWQpsK7AMcbZg' -- Sol Trading BotOR to_owner = '96aFQc9qyqpjMfqdUeurZVYRrrwPJG2uPV6pceu4B1yb' -- Sol Trading BotOR to_owner = 'AVUCZyuT35YSuj4RH7fwiyPu82Djn2Hfg7y2ND2XcnZH' -- PhotonOR to_owner = 'F4hJ3Ee3c5UuaorKAMfELBjYCjiiLH75haZTKqTywRP3' -- BullXOR to_owner = '9RYJ3qr5eU5xAooqVcbmdeusjcViL5Nkiq7Gske3tiKq' -- BullXOR to_owner = 'FRMxAnZgkW58zbYcE7Bxqsg99VWpJh6sMP5xLzAWNabN' -- MaestroOR to_owner = '3kxSQybWEeQZsMuNWMRJH4TxrhwoDwfv41TNMLRzFP5A' -- MEVXOR to_owner = 'BS3CyJ9rRC4Tp8G7f86r6hGvuu3XdrVGNVpbNM9U5WRZ' -- MEVXOR to_owner = '4Lpvp1q69SHentfYcMBUrkgvppeEx6ovHCSYjg4UYXiq' -- MEVXOR to_owner = '5YET3YapxD6to6rqPqTWB3R9pSbURy6yduuUtoZkzoPX' -- Ape Pro)AND dt.block_time >= NOW() - INTERVAL '24' HOUR),mostTradedTokens AS (SELECTat.token_bought_symbol AS token_symbol,at.token_bought_mint_address AS token_mint_address,SUM(at.token_bought_amount) AS total_token_volume,SUM(at.amount_usd) AS total_volume_usd,COUNT(DISTINCT at.tx_id) AS total_tradesFROMall_traders atGROUP BYat.token_bought_symbol,at.token_bought_mint_address)SELECTRANK() OVER (ORDER BY total_volume_usd DESC) AS rank,CONCAT('<a href="https://bullx.io/terminal?chainId=1399811149&address=',token_mint_address,'&r=6IJOUJDPDR4" target="_blank">',token_symbol,'</a>'