Query editor
with tokens as (selecttoken_mint_address mintAddress,decimals,name,symbolfrom tokens_solana.fungible),prices as (selectto_base58(contract_address) contract_address,symbol,pricefrom prices.usd_latestwhere blockchain = 'solana'),raw_dca_transactions as (selectcall_block_slot block_slot,call_block_time block_time,call_tx_id txid,account_dca,account_inputMint input_mint,account_outputMint output_mint,cycleFrequency seconds_between_orders,ceil(inAmount / inAmountPerCycle) order_count,cycleFrequency * ceil(inAmount / inAmountPerCycle) total_seconds,inAmount input_amount,inAmountPerCycle input_order_size,minPrice min_output_amount,maxPrice max_output_amountfrom dca_solana.dca_call_openDcawhere startAt = 0 or from_unixtime(startAt) <= now()union allselectcall_block_slot block_slot,call_block_time block_time,call_tx_id txid,account_dca,account_inputMint input_mint,account_outputMint output_mint,cycleFrequency seconds_between_orders,ceil(inAmount / inAmountPerCycle) order_count,cycleFrequency * ceil(inAmount / inAmountPerCycle) total_seconds,inAmount input_amount,inAmountPerCycle input_order_size,minPrice min_output_amount,maxPrice max_output_amountfrom dca_solana.dca_call_openDcaV2where startAt = 0 or from_unixtime(startAt) <= now()),dca_wallets as (select distinct account_dcafrom raw_dca_transactions),token_accounts as (select *fromsolana_utils.token_accounts tajoin dca_wallets w on w.account_dca = ta.token_balance_owner