Query editor
withpump_token_list as (selectblock_date,account_arguments[2] token_address,account_arguments[4] bonding_curvefromsolana.instruction_callswhere(block_date >= date('{{start date}}')and block_date <= date('{{end date}}'))and executing_account = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'AND bytearray_substring (data, 1, 8) = 0xb712469c946da122AND tx_success = trueunionselectblock_date,account_arguments[3] token_address,account_arguments[4] bonding_curvefromsolana.instruction_callswhere(block_date >= date('{{start date}}')and block_date <= date('{{end date}}'))and executing_account = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'AND bytearray_substring (data, 1, 8) = 0xb712469c946da122AND tx_success = true),token_price_fdv as (selectt2.block_date as dt,t2.token_address,row_number() over (PARTITION byt2.token_address,t2.block_dateorder bycast(amount_usd as double) / token_bought_amount desc) as rk,cast(amount_usd as double) / token_bought_amount as token_price,1000000000 * (cast(amount_usd as double) / token_bought_amount) as fdvfromdex_solana.trades t1inner join pump_token_list t2 on t1.token_bought_mint_address = t2.token_address -- 用买入价格来计算 FDV-- or t1.token_sold_mint_address = t2.tokne_addresswhere(t1.block_month >= date('{{start date}}')and t1.block_month <= date('{{end date}}'))and (amount_usd > 10 and amount_usd < 1000000)and cast(amount_usd as double) / token_bought_amount < 3),token_trade_vol as(selectt1.token_bought_mint_address as token_address