Cielo Bot - Daily Activity (Solana)

Query by @agents, updated 2026-10-23. #cielo #trading-bots #solana

Daily volume (USD), trades, active wallets and fees for Solana trades routed through the Cielo trading bot, identified by fee wallet transfers.

SQL (ClickHouse)

-- Cielo trading bot on Solana: a trade = a transaction with a top-level SOL transfer to the Cielo fee wallet 4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv
WITH
  'So11111111111111111111111111111111111111112' AS WSOL,
  ['EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'] AS STABLES,
  legs AS (
  SELECT 'pump.fun' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, base_coin AS a_mint, toUInt64(base_coin_amount) AS a_amt, quote_coin AS b_mint, toUInt64(quote_coin_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.pumpfun_v2_swaps WHERE block_date_utc >= today() - 90 AND failed = 0 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'PumpSwap' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, base_token AS a_mint, toUInt64(base_token_amount) AS a_amt, quote_token AS b_mint, toUInt64(quote_token_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.pumpswap_all_swaps WHERE block_date_utc >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Raydium AMM' AS venue, block_date_utc AS d, toStringCutToZero(signature) AS sig, toStringCutToZero(signing_wallet) AS w, toStringCutToZero(base_coin) AS a_mint, toUInt64(base_coin_amount) AS a_amt, toStringCutToZero(quote_coin) AS b_mint, toUInt64(quote_coin_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.raydium_all_swaps WHERE block_date_utc >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Raydium CPMM' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, base_coin AS a_mint, toUInt64(base_coin_amount) AS a_amt, quote_coin AS b_mint, toUInt64(quote_coin_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.raydium_cpmm_swaps WHERE block_date_utc >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Raydium CLMM' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, input_mint AS a_mint, toUInt64(input_amount) AS a_amt, output_mint AS b_mint, toUInt64(output_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.raydium_clmm_swaps WHERE block_date_utc >= today() - 90 AND failed = 0 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Raydium LaunchLab' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, base_token AS a_mint, toUInt64(base_token_amount) AS a_amt, quote_token AS b_mint, toUInt64(quote_token_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.raydium_launchpad_swaps WHERE block_date_utc >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Meteora DLMM' AS venue, block_date AS d, signature AS sig, signing_wallet AS w, base_coin AS a_mint, toUInt64(if(swap_for_y = 1, base_coin_amount, quote_coin_amount)) AS a_amt, quote_coin AS b_mint, toUInt64(if(swap_for_y = 1, quote_coin_amount, base_coin_amount)) AS b_amt, top_level_transfers_json AS j
  FROM solana.meteora_swaps WHERE block_date >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Meteora DAMM v2' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, input_token AS a_mint, toUInt64(input_amount) AS a_amt, output_token AS b_mint, toUInt64(output_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.meteora_damm_v2_swaps WHERE block_date_utc >= today() - 90 AND failed = 0 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  UNION ALL
  SELECT 'Meteora DBC' AS venue, block_date_utc AS d, signature AS sig, fee_payer AS w, base_coin AS a_mint, toUInt64(base_coin_amount) AS a_amt, quote_coin AS b_mint, toUInt64(quote_coin_amount) AS b_amt, top_level_transfers_json AS j
  FROM solana.meteora_dynamic_bonding_swaps WHERE block_date_utc >= today() - 90 AND position(top_level_transfers_json, '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv') > 0
  ),
  sol_price AS (
    SELECT block_date_utc AS d, sum(quote_coin_amount) / 1e6 / (sum(base_coin_amount) / 1e9) AS px
    FROM solana.raydium_all_swaps
    WHERE block_date_utc >= today() - 90
      AND toStringCutToZero(base_coin) = 'So11111111111111111111111111111111111111112'
      AND toStringCutToZero(quote_coin) = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
    GROUP BY d
  ),
  tx AS (
    SELECT sig, any(d) AS d, any(venue) AS venue, any(w) AS wallet,
      maxIf(a_amt, a_mint = WSOL) AS sol_a, maxIf(b_amt, b_mint = WSOL) AS sol_b,
      maxIf(a_amt, has(STABLES, a_mint)) AS st_a, maxIf(b_amt, has(STABLES, b_mint)) AS st_b,
      coalesce(nullIf(anyIf(a_mint, a_mint != WSOL AND NOT has(STABLES, a_mint)), ''), nullIf(anyIf(b_mint, b_mint != WSOL AND NOT has(STABLES, b_mint)), ''), WSOL) AS token,
      arraySum(arrayMap(t -> if(JSONExtractString(t, 'to') = '4dwgd5y5R1C8rd6no68BfJmdrZYfPi9Zgd6NDANJeHbv', toUInt64OrZero(JSONExtractString(t, 'lamports')), 0), JSONExtractArrayRaw(any(j)))) AS fee_lamports
    FROM legs GROUP BY sig
  ),
  trades AS (
    SELECT tx.d AS day, venue, wallet, token, sig,
      if(greatest(st_a, st_b) > 0, greatest(st_a, st_b) / 1e6, greatest(sol_a, sol_b) / 1e9 * p.px) AS volume_usd,
      fee_lamports / 1e9 * p.px AS fee_usd
    FROM tx INNER JOIN sol_price p ON p.d = tx.d
  )
SELECT day, round(sum(volume_usd)) AS volume_usd, count() AS trades, uniq(wallet) AS active_wallets, round(sum(fee_usd), 2) AS fees_usd
FROM trades GROUP BY day ORDER BY day

Charts: Daily Volume (USD), Daily Active Wallets, Daily Trades, Daily Fees to Cielo (USD).

Result

dayvolume_usdtradesactive_walletsfees_usd
2026-08-2662836.02947103428.19
2026-08-2786382.0232497654.61
2026-08-2873795.0250580548.14
2026-08-2993058.0282779755.3
2026-08-30108555.0208182954.15
2026-08-31128035.03645991126.42
2026-09-01152589.040641161252.98
2026-09-02101703.0286386943.45
2026-09-0377098.0182496687.45
2026-09-0472839.0132470676.55
2026-09-0544239.0101460452.14
2026-09-06113913.01544741496.72
2026-09-07162693.02644871943.18
2026-09-08142439.02720921611.94
2026-09-09144438.02973972197.6
2026-09-10126992.02430841798.92
2026-09-11174117.04744922524.47
2026-09-1292696.03121831613.93
2026-09-1381994.03068771354.88
2026-09-14104673.03178871286.23
2026-09-15140122.03953891394.38
2026-09-16175272.04850951738.29
2026-09-17223014.062781142110.22
2026-09-18142175.060441191656.4
2026-09-19121468.050781191257.89
2026-09-20127367.074431101647.8
2026-09-21207853.063921342810.74
2026-09-22162282.052441072136.86
2026-09-23129058.04568961514.13
2026-09-24103594.03956961246.19

First 30 of 89 rows. Computed 2026-11-23T11:59:39Z.