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 = {{_p_project_contract_txfromto}}and block_time> cast('{{_p_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,2,3,4order by 5 desc)select * from user_detailwhereprofit_usd>{{_p_min_profit_usd}}AND buy_times>={{_p_min_buy_times}}AND buy_times<{{_p_max_buy_times}}and tx_to = 0x10ed43c718714eb63d5aa57b78b54704e256024e --只包含常规方法