Query editor
-- 通过目标合约找dalao--dalao的特征:(1)经常参与 (2)有小额初始尝试的行为 ; (3)稳定盈利--步骤:筛选热点合约,从热点合约中找出盈利较大的用户with target_pair_info as (selectproject_contract_address,-- tx_from,tx_to,-- taker,(case when token_sold_address = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c then -amount_usdelse amount_usd end) amount_usd_newfrom dex.tradeswhereblockchain = 'bnb'AND project = 'pancakeswap'and project_contract_address = {{project_contract_txfromto}}and block_time> cast('{{start_time_txfromto}}' as timestamp)),user_detail as (selectproject_contract_address,-- tx_from,tx_to,-- taker,sum(amount_usd_new) profit_usd,sum(case when amount_usd_new>0 then 1 else 0 end) as sell_times,sum(case when amount_usd_new<0 then 1 else 0 end) as buy_timesfrom target_pair_infogroup by 1,2order by 3 desc)select * from user_detailwhereprofit_usd>{{min_profit_usd}}AND buy_times>={{min_buy_times}}AND buy_times<{{max_buy_times}}and tx_to <> 0x10ed43c718714eb63d5aa57b78b54704e256024e --只包含常规方法