Query editor
WITH params AS (SELECT 'arbitrum' AS target_blockchain),trades_with_wash AS (SELECTt.*,w.is_wash_trade,w.filter_1_same_buyer_seller,w.filter_2_back_and_forth_trade,w.filter_3_bought_or_sold_3x,w.filter_4_first_funded_by_same_wallet,w.filter_5_flashloanFROM nft.trades tLEFT JOIN nft.wash_trades wON t.blockchain = w.blockchainAND t.unique_trade_id = w.unique_trade_idCROSS JOIN params pWHERE t.blockchain = p.target_blockchain),filled AS (SELECTt.*,COALESCE(t.platform_fee_amount_usd,t.platform_fee_amount * pr.price) AS platform_fee_amount_usd_filled,COALESCE(t.royalty_fee_amount_usd,t.royalty_fee_amount * pr.price) AS royalty_fee_amount_usd_filledFROM trades_with_wash tLEFT JOIN prices.minute prON t.blockchain = pr.blockchainAND t.currency_contract = pr.contract_addressAND t.currency_symbol = pr.symbolAND DATE_TRUNC('minute', t.block_time) = pr.timestamp)SELECTblockchain,project,version,block_date,block_month,block_time,token_id,collection,amount_usd,token_standard,trade_type,number_of_items,trade_category,evt_type,seller,buyer,