Query editor
selectCOUNT(*) as tx_count, SUM("value" / 1e9) as total_fee_ton, SUM("value" / 1e9 * price) as total_fee_usdfrom ton.messages AS mLEFT JOIN prices.usd_daily AS feeTokenPrices ON (contract_address = 0x582d872a1b094fc48f5de31d3b73f2d9be47def1AND date_trunc('day', m.block_time) = dayAND day >= m.block_date - INTERVAL '1' year)wherem.direction = 'in'and m.bounced = FALSEand m.destination = '0:93C1B918FA90EAC774C9BBEFF0E49742B4BFAC15D49E289A43351782C59A650C'and LOWER(m.comment) LIKE '%dtrade%'and m.block_time >= NOW() - INTERVAL '31' day