<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oladayo Isaac on Medium]]></title>
        <description><![CDATA[Stories by Oladayo Isaac on Medium]]></description>
        <link>https://medium.com/@oladeeayo?source=rss-c2d2f6be882b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*krAFBopEkgV5i6XL</url>
            <title>Stories by Oladayo Isaac on Medium</title>
            <link>https://medium.com/@oladeeayo?source=rss-c2d2f6be882b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:14:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oladeeayo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Serial Token Deployers on Solana: Unmasking the Ruggers of Pump.fun]]></title>
            <link>https://medium.com/@oladeeayo/serial-token-deployers-on-solana-unmasking-the-ruggers-of-pump-fun-0833a65745c7?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0833a65745c7</guid>
            <category><![CDATA[solanas]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[arkham-intelligence]]></category>
            <category><![CDATA[pumpfun]]></category>
            <category><![CDATA[analysis]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 17:16:05 GMT</pubDate>
            <atom:updated>2025-04-30T17:16:05.244Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rDoA-Q0fJYVWuZ7R" /></figure><h3>Introduction</h3><p>The Solana blockchain has become a powerhouse for decentralized finance (DeFi) innovation, driven by its speed, low gas fees, and seamless transactions. But these strengths have also made it a breeding ground for predatory schemes. Pump.fun, a platform designed to simplify token creation, has unintentionally turned into a playground for repeat offenders — individuals or groups who launch tokens, manipulate prices, and vanish with the liquidity, leaving investors holding worthless assets. This practice, known as “rugging,” has spiraled into an epidemic.</p><p>These bad actors exploit retail investors’ fear of missing out (FOMO) by deploying meme coins, hyping them on social media, and then pulling the rug by draining liquidity. As of April 2025, over 9 million tokens have been launched on Pump.fun, yet only 1.24% (120,816 tokens) graduate to decentralized exchanges like Raydium. That means 98.76% of tokens vanish, often after siphoning funds from unsuspecting investors. Behind this chaos are 4 million+ token creators and wallets, many controlled by prolific deployers who prey on retail traders, inflate prices with bots, and disappear with the profits. While “degen trading” accepts some risk, these offenders have turned scamming into an industry, threatening Solana’s DeFi ecosystem.</p><p>In this article, I investigate the tactics of these deployers through on-chain forensics, wallet clustering, and detailed case studies. Using the Arkham Intelligence Platform and Dune Analytics, I identify key players, analyze deployment trends, and expose patterns of wallet bundling. Beyond exposing the problem, I propose actionable solutions for platforms, regulators, and users to stop this epidemic and restore trust in Solana’s DeFi space. My research focuses on deployers who have launched massive volumes of tokens with shockingly low graduation rates, a clear sign of suspicious activity.</p><h3>Growth and Trends in Token Deployment on Pump.fun</h3><p>Pump.fun’s rapid rise as a token launchpad highlights Solana’s scalability, but it has also amplified the risk of rug pulls. Since its inception, the platform has facilitated the creation of over 9 million tokens by April 2025, with 4 million+ wallets involved. Yet, the graduation rate — tokens that make it to decentralized exchanges like Raydium remains a dismal 1.24%. This statistic underscores the fleeting nature of most Pump.fun tokens, many of which are designed to fail after serving their creators’ short-term goals.</p><p>I examined deployment trends from April 2024 to April 2025. Token launches surged during market bull runs, particularly in late 2024, when retail FOMO peaked. For example, January 2025 saw a 15% month-over-month increase in token launches, fueled by Bitcoin’s rally and altcoin speculation. However, graduation rates stayed flat, indicating that the influx of new tokens primarily benefits deployers, not investors.</p><p>The top 1% of deployers those launching 1,000+ tokens account for nearly 40% of all Pump.fun tokens, showing a concentration of activity among a small group of prolific actors. These individuals often use multiple wallets, a tactic known as wallet bundling, to conceal their identities and maximize profits. Arkham’s wallet clustering tools revealed that many of these wallets share funding sources, trade with the same counterparties, and execute synchronized rug pulls, often draining liquidity within 24 hours of a token’s launch.</p><h3>Key Actors and Their Methodologies</h3><p>To uncover the tactics of these deployers, I analyzed a dataset of Pump.fun activity using the Arkham Intelligence Platform and Dune Analytics. The table below highlights some of the most active deployers, focusing on those with high deployment volumes and low graduation rates, a clear sign of potential scam tactics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BQLZmBtzn2Q4AKVeUdYRg.png" /></figure><h3>Pumpfun Token Deployer Records Dashboard</h3><p>To check further, I created the <strong>Pumpfun Token Deployer Records Dashboard</strong> on Dune Analytics. This tool offers a comprehensive view of deployer activity, helping investigators spot scam patterns. It includes two key queries:</p><p><strong>Query 1: Per-Token Behavior Records</strong><br>This query reveals details for each token, including the deployer’s self-buy count, transfers to other wallets, manipulative wallets (those with more than 6 buys), and snipers (wallets buying within 40 seconds of launch). High sniper counts often signal a network of coordinated wallets, likely controlled by the deployer, to inflate volume and trigger FOMO.</p><p><strong>Query 2: Deployer-Level Metrics</strong><br>The second query aggregates data for each deployer, showing total tokens launched, graduation rate, and realized profit/loss (PnL). This provides a high-level view, making it easier to identify prolific ruggers with low graduation rates and high profits.</p><p>The dashboard draws from Dune Analytics datasets like tokens_solana.transfers and pumpdotfun_solana.pump_call_buy to check for wallet clustering to deliver actionable insights.</p><h3>Wallet Records Analysis</h3><h4>Wallet 1: MNhBbrscBPmeid54buiqSgyWa4D8PY6uKHoK2wJsTJN</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOaSQwHFWgW0jXazHIvWPg.png" /><figcaption>Wallet 1 Tokens Details</figcaption></figure><p>Using the dashboard, I analyzed MNhBbrscBPmeid54buiqSgyWa4D8PY6uKHoK2wJsTJN, the most active deployer with 32,911 tokens. The per-token query reveals clear manipulation:</p><p><strong>Token: Payback (Launch: 2025–01–29)</strong></p><ul><li>Sniper Count: 208 wallets bought within 40 seconds.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $5,213.</li></ul><p><strong>Token: Neka (Launch: 2025–01–29)</strong></p><ul><li>Sniper Count: 199.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $4,996.</li><li><strong>Token: Ghiblion (Launch: 2025–02–06)</strong></li><li>Sniper Count: 233.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $4,970.</li></ul><p>Across MNhBbrsc’s tokens, sniper counts range from 11 to 513, averaging 150 per token. No transfers to other wallets were recorded, and the deployer made $2.65M in profits, likely using snipers to distribute tokens and maximize gains while staying under the radar.</p><h4>Wallet 2: 3rYj2dThkPHXxX8UNyT6361dqpeQaAU2g3mpZrEwRbnM</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jfr_jsi-dekoox_W-kV1wA.png" /><figcaption>Wallet 2 Tokens Details</figcaption></figure><p>The deployer 3rYj2dThkPHXxX8UNyT6361dqpeQaAU2g3mpZrEwRbnM launched 17,779 tokens with a graduation rate of 0.43% (76 tokens), the lowest among top deployers. The dashboard highlights a similar reliance on snipers:</p><p><strong>Token: FREEFUFF (Launch: 2025–02–07)</strong></p><ul><li>Sniper Count: 27.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $13,720.</li></ul><p><strong>Token: YEACH (Launch: 2025–02–08)</strong></p><ul><li>Sniper Count: 278.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $3,801.</li></ul><p><strong>Token: NEWORLD (Launch: 2025–04–13)</strong></p><ul><li>Sniper Count: 304.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 3.</li><li>Deployer PnL: $2,058.</li></ul><p>Sniper counts for 3rYj2dThk average around 150 per token, with minimal manipulators (0-5) and no transfers. The lower PnL of $452K suggests less efficiency, possibly due to weaker promotion or smaller-scale operations.</p><h4>Wallet 3: 9ZCrb9iKawp1e5Gw3r2BpHpCZQbHFg6DLguzQ5SkP2Eg</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dDw-VVCxM7woldIg2TmfQ.png" /><figcaption>Wallet 3 Tokens Details</figcaption></figure><p>The deployer 9ZCrb9iKawp1e5Gw3r2BpHpCZQbHFg6DLguzQ5SkP2Eg launched 13,122 tokens but extracted $1.09M in PnL, showing high efficiency. The dashboard reveals a more aggressive approach:</p><p><strong>Token: SYSTEMCARD (Launch: 2025–02–07)</strong></p><ul><li>Sniper Count: 510.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 0.</li><li>Deployer PnL: $3,262.</li></ul><p><strong>Token: LTLX (Launch: 2025–02–12)</strong></p><ul><li>Sniper Count: 413.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 2.</li><li>Deployer PnL: $1,318.</li></ul><p><strong>Token: PFI (Launch: 2025–02–07)</strong></p><ul><li>Sniper Count: 402.</li><li>Deployer Self-Buys: 1.</li><li>Manipulator Count: 39.</li><li>Deployer PnL: $862.</li></ul><p>For 9ZCrb9iK, sniper counts average 300 per token—double that of the others—with manipulator counts reaching up to 39. No transfers were recorded, but the high PnL reflects a strategy of targeting higher-value tokens with intense manipulation.</p><h3>Sniper Wallet Overlap Analysis</h3><p>A deeper look at the sniper wallets used by these deployers reveals significant overlap, suggesting a coordinated network likely controlled by a single entity or group. Here’s what I found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qld-uqgTZPQE09VvvuXy-w.png" /><figcaption>Wallet 1 Sniper Wallets</figcaption></figure><p><strong>Wallet 1 (</strong><strong>MNhBbrsc)</strong>: The top sniper (avAtiJAzAJv8dhMC6GLjW3FpJ1wY7aNegaxE9q4H5h5) targeted 6,089 tokens (18.4% of 32,911), followed by 8S6P5yVd5gNBu635XT67PKLxU75NJuG69fsJC3Jj36LN with 3,943 (11.9%), and 7tMoEadQnH3iaU7yR5TVEKfne8aSyfiitkKE88Jzaz8i with 3,683 (11.1%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5W0Wmy_5bb5lFH-7dnnbQQ.png" /><figcaption>Wallet 2 Sniper Wallets</figcaption></figure><p><strong>Wallet 2 (</strong><strong>3rYj2dThk)</strong>: The top sniper (HpYcVGxiCR8Q7cBtA12PAvUR2JYV7rFbd3MVzS2DPbS8) hit 936 tokens (5.3% of 17,779), followed by HxNTMojCDBvEsDpnEDT4uHznPB1PmxtLt4r9MwE8p7dA with 872 (4.9%), and nya666pQkP3PzWxi7JngU3rRMHuc7zbLK8c8wxQ4qpT with 606 (3.4%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCJiCEDgeCxggO5YfApplA.png" /><figcaption>Wallet 3 Sniper Wallets</figcaption></figure><p><strong>Wallet 3 (</strong><strong>9ZCrb9iK)</strong>: The top sniper (7tMoEadQnH3iaU7yR5TVEKfne8aSyfiitkKE88Jzaz8i) targeted 4,359 tokens (33.2% of 13,122), followed by 8S6P5yVd5gNBu635XT67PKLxU75NJuG69fsJC3Jj36LN with 3,730 (28.4%), and GR7SmxofeauTxUudZnfwKpS7vNcBMvLVeFmATf3qXKo with 2,198 (16.8%).</p><p><strong>Overlap Findings</strong>: Several sniper wallets appear across multiple deployers, indicating a shared network. For instance, 8S6P5yVd5gNBu635XT67PKLxU75NJuG69fsJC3Jj36LN sniped 3,943 tokens (11.9%) for Wallet 1, 329 tokens (1.9%) for Wallet 2, and 3,730 tokens (28.4%) for Wallet 3. Similarly, 7tMoEadQnH3iaU7yR5TVEKfne8aSyfiitkKE88Jzaz8i targeted 3,683 tokens (11.1%) for Wallet 1 and 4,359 tokens (33.2%) for Wallet 3. The wallet avAtiJAzAJv8dhMC6GLjW3FpJ1wY7aNegaxE9q4H5h5 sniped 6,089 tokens (18.4%) for Wallet 1 and 2,187 tokens (16.7%) for Wallet 3, while nya666pQkP3PzWxi7JngU3rRMHuc7zbLK8c8wxQ4qpT hit 1,041 tokens (3.1%) for Wallet 1 and 606 tokens (3.4%) for Wallet 2. High sniper counts across all three wallets (averaging 150–300 per token) suggest coordinated buying to inflate early volume and drive FOMO. Arkham’s wallet clustering confirms this, linking these snipers to common funding sources across the deployers.</p><h3>Case Study 1: Deployer MNhBbrscBPmeid54buiqSgyWa4D8PY6uKHoK2wJsTJN</h3><p>MNHbrac is Pump.fun’s most active deployer, with 32,911 tokens launched. Only 252 (0.77%) graduated to Raydium, a glaring red flag. Using Arkham Intelligence, I traced their wallet activity and found wallet bundling: over 50 wallets funded by one source, often transferring tokens to Binance before rugging. They made $2.65M, typically by hyping tokens on X, driving FOMO, and pulling liquidity within 12 hours. Their last launch was on April 28, 2025, showing they’re still active.<br><a href="https://intel.arkm.com/visualizer/entity/MNhBbrscBPmeid54buiqSgyWa4D8PY6uKHoK2wJsTJN?flow=all&amp;positions=%7B%7D&amp;sortDir=desc&amp;sortKey=time&amp;usdGte=0.1">https://intel.arkm.com/visualizer/entity/MNhBbrscBPmeid54buiqSgyWa4D8PY6uKHoK2wJsTJN</a></p><h3>Case Study 2: Deployer 3rYj2dThkPHXxX8UNyT6361dqpeQaAU2g3mpZrEwRbnM</h3><p>3rYj2dThk has the lowest graduation rate (0.43%) among top deployers. Arkham’s analysis showed that 85% of their tokens had liquidity pulled within 24 hours, often after a 50-100% price pump driven by bots. They use 20+ wallets, and the dashboard confirmed consistent sniper activity. Their PnL of $452K suggests less efficiency than MNHbrac.</p><p><a href="https://intel.arkm.com/visualizer/entity/3rYj2dThkPHXxX8UNyT6361dqpeQaAU2g3mpZrEwRbnM">https://intel.arkm.com/visualizer/entity/3rYj2dThkPHXxX8UNyT6361dqpeQaAU2g3mpZrEwRbnM</a></p><h3>Case Study 3: Deployer 9ZCrb9iKawp1e5Gw3r2BpHpCZQbHFg6DLguzQ5SkP2Eg</h3><p>9ZCrb9iK launched 13,122 tokens but extracted $1.09M, showing ruthless efficiency. Their graduation rate is 0.53%, and their last launch was on March 13, 2025—possibly a strategic retreat. The dashboard revealed an average of 300 snipers per token and up to 39 manipulators, explaining their high PnL. They likely target higher-value tokens with aggressive manipulation.</p><p><a href="https://intel.arkm.com/visualizer/entity/9ZCrb9iKawp1e5Gw3r2BpHpCZQbHFg6DLguzQ5SkP2Eg?flow=all&amp;positions=%7B%7D&amp;sortDir=desc&amp;sortKey=time&amp;usdGte=0.1">https://intel.arkm.com/visualizer/entity/9ZCrb9iKawp1e5Gw3r2BpHpCZQbHFg6DLguzQ5SkP2Eg</a></p><h3>Common Tactics</h3><p>These deployers share several strategies:</p><ul><li><strong>Wallet Bundling</strong>: Arkham’s clustering found 20–50 wallets per deployer, funded by one source, to conceal ownership and coordinate rug pulls.</li><li><strong>Social Media Hype</strong>: They leverage X and Telegram to spark FOMO, often using bots to amplify their posts.</li><li><strong>Rapid Liquidity Pulls</strong>: Over 80% of their tokens see liquidity removed within 24 hours.</li><li><strong>Bot-Driven Volume</strong>: Arkham data shows 60–70% of early trading volume comes from bots, creating artificial pumps.</li></ul><h3>Impact on the Pump.fun Ecosystem</h3><p>Prolific deployers have caused significant damage to Pump.fun and Solana. Financially, MNHbrac’s $2.65M profit represents funds drained from retail investors. Reputationally, the platform’s high token failure rate erodes trust. New users, burned by rug pulls, may abandon Solana, while legitimate projects struggle to stand out. Social sentiment on X reflects this frustration, with “Pump.fun scam” trending in Q1 2025.</p><h3>Mitigation Strategies</h3><p>To tackle these bad actors and rebuild trust, Pump.fun must take decisive action. Here are five solutions I propose, each with practical steps:</p><h3>1. Real-Time Deployer Tracking</h3><p>Pump.fun should integrate a reputation system using Arkham Intelligence, flagging deployers with graduation rates below 1% and high liquidity pull rates (over 80% within 24 hours). A tiered blacklisting approach could work: first-time offenders get a 30-day ban after 500 failed tokens, while repeat ruggers like MNHbrac face permanent bans after 1,000 failures. Displaying a “Deployer Trust Score” in the UI would warn users before they invest.</p><h3>2. Enhanced Token Vetting</h3><p>Before launch, deployers should lock liquidity for 72 hours to deter quick rug pulls. Pump.fun could also cap wallets at 100 tokens per month, curbing spam. Deployers hitting the cap could request a manual review to prove legitimacy — legit projects would pass, while ruggers like 3rYj2dThk would be stalled.</p><h3>3. Community-Driven Reporting</h3><p>Empower users with a decentralized reporting system. If 100 users flag a token, it pauses for review. I suggest a small SOL reward (0.01 SOL per valid report) to encourage participation. This could catch rapid ruggers like 9ZCrb9iK early, giving the community a stake in platform safety.</p><h3>4. User Education and Tools</h3><p>Pump.fun should embed on-chain analytics into its interface, showing deployer history, sniper activity, and liquidity risks pre-investment. A “Risk Snapshot” with graduation rates and bot volume would make scams easier to spot. I’d also launch X and Telegram campaigns with tips: “Check sniper counts — over 200 is a red flag.”</p><h3>5. Collaborative Industry Standards</h3><p>Pump.fun should partner with launchpads like Moonshot to build a Solana-wide blacklist of bad actors, powered by Arkham’s wallet clustering. A shared database would prevent ruggers from hopping platforms. I’d start with a working group of top platforms, aiming to roll out the blacklist by Q3 2025.</p><h3>Conclusion</h3><p>Prolific token deployers have turned Pump.fun into a chaotic battleground, exploiting Solana’s memecoin frenzy to drain millions from retail investors while undermining the ecosystem’s credibility. My investigation, powered by Arkham Intelligence and the Pumpfun Token Deployer Records Dashboard, exposes the scale of this crisis: deployers like MNHbrac, 3rYj2dThk, and 9ZCrb9iK launch thousands of tokens with graduation rates below 1%, using wallet bundling, bot-driven pumps, and rapid liquidity pulls to maximize profits. The sniper wallet overlap I uncovered ties them to a coordinated network—likely a single entity or tight-knit group—revealing the calculated nature of their operations.</p><p>This issue threatens Solana’s DeFi future. If unchecked, these bad actors will continue to drain funds, scare off new users, and invite heavy-handed regulation. Pump.fun has a narrow window to act decisively. The solutions I’ve proposed — real-time tracking, stricter vetting, and community reporting — can choke out ruggers and restore confidence. Users need to get savvy, using tools and knowledge to avoid traps, while actively participating in reporting suspicious tokens to safeguard the platform.</p><p>Solana’s potential is too great to let a few scammers derail it. Pump.fun can lead the charge by becoming a launchpad for genuine innovation, not a haven for fraud. The community has a critical role: report suspicious activity, support legitimate projects, and demand better standards. By acting swiftly and collaboratively, we can unmask the ruggers, rebuild trust, and set a new benchmark for what memecoin launchpads should be. Let’s seize this opportunity to make Solana’s DeFi ecosystem a safer, more vibrant space for everyone.</p><h3>References</h3><p>Sniper Per Deployers Tokens - <a href="https://dune.com/queries/5062561">https://dune.com/queries/5062561</a></p><p>Pumpfun Token Deployer Records - <a href="https://dune.com/oladee/pumpfun-token-deployer-records">https://dune.com/oladee/pumpfun-token-deployer-records</a></p><p>Arkham Visualizer - <a href="https://intel.arkm.com/visualizer/entity">https://intel.arkm.com/visualizer/entity</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0833a65745c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Solana Dashboard on Dune: Tracking Top Trending Tokens]]></title>
            <link>https://medium.com/@oladeeayo/building-a-solana-dashboard-on-dune-tracking-top-trending-tokens-005a01c0d62f?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/005a01c0d62f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[solanas]]></category>
            <category><![CDATA[dune]]></category>
            <category><![CDATA[heliu]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 12:25:35 GMT</pubDate>
            <atom:updated>2025-04-07T12:43:14.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rbTLa9fPVZPwzryR.jpg" /></figure><p>In this tutorial, I will guide you through creating a valuable Solana dashboard on Dune Analytics that tracks the top 20 trending tokens based on 24-hour DEX trading volume.</p><p>By the end of this guide, you will be able to build a dune dashboard showing essential metrics including token name, market capitalization, trading volume, number of holders, and token age.</p><h3>Introduction to Dune Analytics</h3><p>Dune Analytics is a powerful platform that allows anyone to explore, analyze, and visualize blockchain data using SQL queries.</p><p>It democratizes on-chain data analysis by providing a user-friendly interface and pre-indexed blockchain data.</p><p>For Solana developers and analysts, Dune offers comprehensive data sets that make complex analysis possible without running your own nodes.</p><h3>What We are Building</h3><p>This dashboard will help identify trending tokens on Solana by:</p><ul><li>Tracking the 20 tokens with highest 24-hour trading volume</li><li>Displaying key metrics for each token</li><li>Providing a clean table view for easy interpretation</li></ul><p>This type of dashboard is valuable for:</p><ul><li>Traders looking for active tokens</li><li>Developers researching the ecosystem</li><li>Investors tracking market trends</li><li>Analysts studying Solana token performance</li></ul><h3>Prerequisites</h3><p>Before starting:</p><ol><li>Create a free account on <a href="https://dune.com/">Dune Analytics</a></li><li>Familiarize yourself with the interface</li><li>Basic SQL knowledge is helpful but not strictly necessary</li></ol><h3>Understanding the Data Sources</h3><p>To build this dashboard, you need to query several Solana-specific tables in Dune:</p><ul><li>dex_solana.trades: Contains all DEX trade data on Solana</li><li>tokens_solana.fungible: Provides metadata for tokens</li><li>solana_utils.latest_balances: Shows current token balances across addresses</li><li>dex_solana.price_hour: Provides hourly price data for tokens</li></ul><p>A combination of this query will answer the question: <strong>“What are the top 20 tokens gaining traction on Solana right now?”</strong></p><p>It will be measured using 24-hour trading volume and include additional context metrics:</p><ol><li>Token Information: Name, symbol, and address</li><li>Trading Activity: 24-hour volume</li><li>Adoption Metrics: Number of holders</li><li>Valuation Metrics: Current price and market cap</li><li>Maturity Indicator: Token age in days</li></ol><h3>Building the SQL Query</h3><p>I will break down this query into manageable components. Using Common Table Expressions (CTEs) to organize our queries:</p><h3>Step 1: Calculate 24-Hour Trading Volume</h3><p>I will start by identifying tokens with significant trading volume in the past 24 hours:</p><pre>WITH <br>-- Calculate 24-hour trading volume for each token<br>volume_data AS (<br>    SELECT <br>        token_bought_mint_address,<br>        SUM(amount_usd) as volume_24h<br>    FROM <br>        dex_solana.trades<br>    WHERE <br>        -- Limit to the last 24 hours for recent trending data<br>        block_time &gt; NOW() - INTERVAL &#39;24&#39; hour<br>        -- Exclude major stablecoins, SOL variants, and LP tokens<br>        AND token_bought_symbol NOT IN (&#39;SOL&#39;, &#39;USDC&#39;, &#39;USDT&#39;, &#39;WBTC&#39;, &#39;cbBTC&#39;, &#39;JitoSOL&#39;, &#39;scnSOL&#39;, &#39;mSOL&#39;, &#39;WETH&#39;, &#39;FDUSD&#39;, &#39;JLP&#39;, &#39;EURC&#39;)<br>    GROUP BY <br>        token_bought_mint_address<br>    ORDER BY <br>        volume_24h DESC<br>),</pre><p>This query:</p><ul><li>Looks at all trades in the last 24 hours</li><li>Calculates the total USD volume for each token</li><li>Excludes stable coins and base assets to focus on trending tokens</li><li>Orders results by volume (highest first)</li></ul><p>In the volume calculation, I exclude several token types</p><p>There are good reasons for these exclusions:</p><ol><li><strong>Stable coins (USDC, USDT, FDUSD):</strong> These tokens have massive volume but don’t represent “trending” projects since their prices remain stable by design. Including them would dominate our results without providing insight into which actual projects are gaining traction.</li><li><strong>Major Assets (SOL, WBTC, cbBTC, WETH):</strong> Similar to stable coins, the native Solana token and wrapped versions of Bitcoin and Ethereum have consistent high volume but don’t help us identify trending Solana-native projects.</li><li><strong>Liquid Staking Derivatives (JitoSOL, scnSOL, mSOL):</strong> These are tokenized staked SOL and would again skew results away from actual trending projects.</li><li><strong>Liquidity Pool Tokens (JLP): </strong>Jupiter LP tokens represent shares in liquidity pools rather than actual project tokens. Including them would confuse the trending analysis.</li></ol><p>By excluding these base assets, I ensure the dashboard focuses on actual Solana projects gaining traction, rather than the ecosystem’s foundational assets.</p><h3>Step 2: Fetch Token Metadata</h3><p>Next, is to get essential information about each token:</p><pre>-- Get token metadata including name, symbol and creation date<br>token_info AS (<br>    SELECT <br>        token_mint_address,<br>        name,<br>        symbol,<br>        created_at<br>    FROM <br>        tokens_solana.fungible<br>    WHERE <br>        token_mint_address IN (SELECT token_bought_mint_address FROM volume_data)<br>),</pre><p>This query:</p><ul><li>Retrieves token names, symbols, and creation dates</li><li>Filters to only include tokens identified in our volume data</li><li>Provides the information needed to identify each token</li></ul><h3>Step 3: Get Latest Token Prices</h3><p>To calculate market capitalization, I need current prices:</p><pre>-- Get the latest available prices within the last 24 hours for our trending tokens<br>latest_prices AS (<br>    SELECT <br>        contract_address,<br>        price,<br>        hour,<br>        -- Use ROW_NUMBER to get only the most recent price for each token<br>        ROW_NUMBER() OVER (PARTITION BY contract_address ORDER BY hour DESC) as rn<br>    FROM <br>        dex_solana.price_hour<br>    WHERE <br>        contract_address IN (SELECT token_bought_mint_address FROM volume_data)<br>        AND hour &gt;= NOW() - INTERVAL &#39;24&#39; HOUR<br>),<br><br>-- Get the filtered list of latest prices (just the most recent entry per token)<br>price_data AS (<br>    SELECT <br>        contract_address,<br>        price as current_price<br>    FROM <br>        latest_prices<br>    WHERE <br>        rn = 1  -- Only keep the most recent price entry for each token<br>),</pre><p>This CTE:</p><ul><li>Finds price data from the last 24 hours for each token</li><li>Uses window functions to select only the most recent price</li><li>Ensures we have the most up-to-date valuation information</li></ul><h3>Step 4: Calculate Token Supplies</h3><p>For market cap calculations, I need the total supply:</p><pre>-- Calculate total supply for each token from the latest balances<br>token_supplies AS (<br>    SELECT <br>        token_mint_address,<br>        COALESCE(SUM(token_balance), 0) AS total_supply<br>    FROM <br>        solana_utils.latest_balances<br>    WHERE <br>        token_mint_address IN (SELECT token_bought_mint_address FROM volume_data)<br>        AND token_balance &gt; 0  -- Only count positive balances<br>    GROUP BY <br>        token_mint_address<br>),</pre><p>This query:</p><ul><li>Sums all positive balances for each token</li><li>Uses COALESCE to handle potential NULL values</li><li>Provides the denominator for our market cap calculation</li></ul><h3>Step 5: Count Token Holders</h3><p>The number of holders provides insight into token distribution:</p><pre>-- Calculate holder count for each token<br>holder_data AS (<br>    SELECT <br>        token_mint_address,<br>        COUNT(DISTINCT token_balance_owner) as holder_count<br>    FROM <br>        solana_utils.latest_balances<br>    WHERE <br>        token_mint_address IN (SELECT token_bought_mint_address FROM volume_data)<br>        AND token_balance &gt; 0  -- Only count addresses with actual holdings<br>    GROUP BY <br>        token_mint_address<br>)</pre><p>This gives us:</p><ul><li>A count of unique addresses holding each token</li><li>Insight into how widely distributed each token is</li><li>A metric to help assess community size</li></ul><h3>Step 6: Combine Everything into a Final Dashboard Query</h3><p>Finally, I will join all the data together to create this dashboard:</p><pre>-- Final selection combining all data sources to create our complete dashboard<br>SELECT <br>    t.name as &quot;Token Name&quot;,<br>    t.symbol as &quot;Symbol&quot;,<br>    t.token_mint_address as &quot;Token Address&quot;,<br>    ROUND(v.volume_24h, 2) as &quot;24h Volume (USD)&quot;,<br>    h.holder_count as &quot;Holders&quot;,<br>    -- Calculate market cap as price * total supply<br>    ROUND(COALESCE(p.current_price * s.total_supply, 0), 2) as &quot;Market Cap (USD)&quot;,<br>    ROUND(COALESCE(p.current_price, 0), 6) as &quot;Current Price (USD)&quot;,<br>    DATE_DIFF(&#39;day&#39;, t.created_at, CURRENT_DATE) as &quot;Token Age (Days)&quot;<br>FROM <br>    volume_data v<br>LEFT JOIN <br>    token_info t ON v.token_bought_mint_address = t.token_mint_address<br>LEFT JOIN <br>    holder_data h ON v.token_bought_mint_address = h.token_mint_address<br>LEFT JOIN <br>    token_supplies s ON v.token_bought_mint_address = s.token_mint_address<br>LEFT JOIN <br>    price_data p ON v.token_bought_mint_address = p.contract_address<br>WHERE <br>    h.holder_count &gt; 1000  -- Filter for tokens with meaningful adoption<br>ORDER BY <br>    v.volume_24h DESC  -- Show highest volume tokens first<br>LIMIT 20  -- Focus on top 20 trending tokens only</pre><p>This final query:</p><ul><li>Joins all our data sources using the token address as the common key</li><li>Formats data for readability (rounding numbers appropriately)</li><li>Calculates market cap as price × total supply</li><li>Computes token age in days from creation date</li><li>Filters out tokens with fewer than 1,000 holders</li><li>Limits results to the top 20 tokens by volume</li></ul><p><strong>This is the schema of all the tables used</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JsRnIlDLye06B5hX" /></figure><h3>Advanced SQL Techniques Used</h3><p>This query uses several advanced SQL techniques:</p><ol><li>Common Table Expressions (CTEs): Using the WITH clause to organize the query into logical sections</li><li>Window Functions: Using ROW_NUMBER() OVER (PARTITION BY...) to get the most recent price</li><li>Aggregation Functions: Using SUM() and COUNT() to calculate volumes and holder counts</li><li>Date Functions: Using DATE_DIFF() to calculate token age</li><li>NULL Handling: Using COALESCE() to handle missing data</li><li>Filtering: Using WHERE clauses with subqueries and IN operators</li></ol><p>Here is the final result of this query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pTeTziI3LSoaU6KBjnPow.png" /></figure><p>After getting the final query result, the next step is to create a dashboard and add our query to the dashboard created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w69Lmdyw6TsNUI4L0DzyvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJgujy1A6ZOjlxCQkQiBCA.png" /></figure><p>This is what the final dashboard looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqY69sIrp39hLNXLkJ4_Jg.png" /></figure><p>Dashboard Link: <a href="https://dune.com/oladee/top-20-trending-dex-token">https://dune.com/oladee/top-20-trending-dex-token</a></p><p>Query Link: <a href="https://dune.com/queries/4944811/8182660">https://dune.com/queries/4944811/8182660</a></p><h4>Conclusion</h4><p>Building a Solana trending tokens dashboard on Dune Analytics provides valuable insights into the most traded tokens on Solana ecosystem. By following this tutorial, you can create a powerful tool that combines trading activity, metrics, and valuation data into a comprehensive view of what’s trending on Solana.</p><h3>Resources for Further Learning</h3><p><a href="https://docs.dune.com/data-catalog/solana/overview">Solana data on Dune</a></p><p><a href="https://www.youtube.com/watch?v=CVbtzDElUAM&amp;list=PLecKk3SsniK3LwriMWPcCIL5OfemTvgXd&amp;index=1&amp;t=16s">Solana Dashboard Series</a></p><p><a href="https://www.helius.dev/blog/how-to-build-a-solana-data-dashboard-with-dune">How to Build a Solana Data Dashboard with Dune</a></p><p><a href="https://dune.com/watch/dune-sql-style-guide">Dune SQL Style Guide</a></p><p><a href="https://x.com/SekFook/status/1906399350546424037">Solana decoding for data analysts &amp; engineers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=005a01c0d62f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Onboarding Illusion]]></title>
            <link>https://medium.com/@oladeeayo/the-onboarding-illusion-5c095fb4f78b?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c095fb4f78b</guid>
            <category><![CDATA[memecoins]]></category>
            <category><![CDATA[wallet]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[trump]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 16:11:47 GMT</pubDate>
            <atom:updated>2025-06-09T19:51:13.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R49Q80Cfrs9SjLVd" /></figure><h3>Executive Summary (TL;DR):</h3><p>This article investigates the effectiveness of celebrity-endorsed tokens in onboarding new users into the crypto ecosystem. Using TRUMP and MELANIA coins launched in January 2025 and endorsed by Donald Trump and Melania Trump as case studies, the analysis reveals that while these tokens attracted significant initial interest, they failed to retain users long-term. Key findings include:</p><ul><li><strong>TRUMP Coin: </strong>214,180 first-time wallets bought the token, but only 4.61% remained active after 7 days, with less than 5% making more than 5 transactions.</li><li><strong>MELANIA Coin: </strong>124,829 first-time wallets bought the token, but only 3.22% remained active after 7 days, with less than 2% making more than 5 transactions.</li></ul><p>The data suggests that celebrity tokens generate short-term hype but fail to convert new users into long-term participants in the crypto ecosystem. For true adoption, the article argues that the industry needs better infrastructure, education, and real-world utility rather than relying on celebrity endorsements.</p><h3>Introduction</h3><p>Anytime a new token or memecoin is about to be launched, crypto native people always talk about how this new token is going to onboard a certain number of newbies and make them regular users of crypto apps and infrastructure. This has been a myth that has persisted for too long, so I decided to conduct a proper research to determine how well these tokens actually onboard new users and how many of these users are retained or stay longer in the ecosystem after the launch. The crypto space is rife with promises that often go unfulfilled, which raises an important question: what happens to the onboarding narrative in the long run?</p><p>To get detailed results, I decided to analyze two of the most hyped celebrity tokens launched by the most powerful man and woman on earth the President of the United States, Donald Trump’s TRUMP coin, and his First Lady’s MELANIA coin. Given their positions and cult followings, I assumed they would have the influence to attract more people to trade a token officially linked to them and confirmed by their team.</p><p>A little backstory: In mid-January 2025, just days before President-elect Donald Trump’s inauguration, the cryptocurrency world was ignited by the launch of two high-profile meme coins: $TRUMP and $MELANIA. These tokens, officially endorsed by Donald Trump and First Lady Melania Trump, were introduced as a means to engage their supporters and take advantage of the growing crypto market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sfRdFvdNaEm3oSSc" /></figure><p>TRUMP coin was the first to be created on January 17, 2025, and saw massive acceptance, pushing it to a peak market cap of around $77 billion in FDV. Two days later, First Lady Melania Trump’s token, MELANIA, was also launched.</p><p>Based on on-chain data, both tokens saw a massive influx of 1st time trader (first time wallets) who bought these tokens as their first trade on their respective wallets. At the time of this analysis, TRUMP token had 214,180 wallets and MELANIA token had 124,829 wallets who bought each of these tokens as their first trades on the wallets. These are impressive numbers and good enough to use as base for this study. <br>With this numbers, I decided to drill down further to see the subsequent activities of these wallets after buying TRUMP and MELANIA tokens respectively, what I found out was quite surprising.</p><p><strong>For TRUMP token</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*48KSvDBDzhSZB0Bg" /></figure><p>To further analyze retention, I applied a filter to check which of these wallets were still actively trading in the past 7 days. Here are my findings:</p><p>This means that less than 5% of perceived newbies were retained after the launch of TRUMP token despite the fact that it was linked to one of the most powerful individuals on earth.</p><p><strong>Now lets check for MELANIA token</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w2vhNx1Ma8JcD2tG" /></figure><p>Checking for wallets that were actively trading in the last 7 days, I found:</p><p>These results show a similar findings for both tokens, with very few wallets remaining active on-chain. While this study cannot fully account for all factors such as existing traders creating new wallets, it still highlights the limitations of hyped celebrity tokens in onboarding new users into the crypto or Web3 ecosystem.</p><p>The data suggests that while these tokens created initial hype and engagement, they fail to convert a significant percentage of new users into long-term participants in the space. The notion that celebrity tokens alone can drive mass adoption appears to be false and more of a marketing gimmick than a sustainable growth strategy for the broader crypto ecosystem.</p><p>For true crypto adoption, a more better and engaging infrastructure is needed, one that provides lasting utility beyond speculative trading. Education, seamless user experience, and real-world use cases will play a far greater role in onboarding and retaining users than any celebrity endorsement ever could.</p><ol><li>Trump coin first time buyer — <a href="https://dune.com/queries/4800466">https://dune.com/queries/4800466</a></li><li>Trump coin first time buyer summary — <a href="https://dune.com/queries/4801015">https://dune.com/queries/4801015</a></li><li>Melania coin first time buyer — <a href="https://dune.com/queries/4806300">https://dune.com/queries/4806300</a></li><li>Melania coin first time buyer summary — <a href="https://dune.com/queries/4806369">https://dune.com/queries/4806369</a></li></ol><p><em>Originally published at </em><a href="https://paragraph.com/@oladeeayo/the-onboarding-illusion?referrer=0xd83dBd67Ee8dD60D6b8E4150d1FB31A3Df06BD40"><em>https://paragraph.com</em></a><em> on March 10, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c095fb4f78b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices for Optimizing Your SQL Queries Performance]]></title>
            <link>https://medium.com/@oladeeayo/best-practices-for-optimizing-your-sql-queries-performance-1364aa4145de?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1364aa4145de</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[query]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 14:50:06 GMT</pubDate>
            <atom:updated>2024-08-05T10:35:34.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VeCryGepy26jAYCCjcNJqQ.png" /></figure><h3>Introduction</h3><p>In the early stages of learning SQL, the primary goal is to write queries that work. As you progress and your queries become more complex, the focus shifts to writing cleaner, more efficient, and faster code.</p><p>For data analysts, mastering SQL involves obtaining accurate results and optimizing queries to manage large datasets and improve readability. This article will explain the best practices to optimize your SQL queries for better performance.</p><h3>1. Understand the Data</h3><h4>Know Your Schema</h4><p>Before you write any SQL queries, take the time to understand the structure of your database. Familiarize yourself with the tables, columns, data types, and relationships. Tools like Entity-Relationship Diagrams (ERDs) can help visualize the schema.</p><h3>2. Writing Readable SQL Code</h3><h4>Use Meaningful Aliases</h4><p>Always use aliases for tables and columns to make your SQL queries more readable. However, ensure they are meaningful and not just single letters unless it’s immediately clear what they represent.</p><p>Instead of:</p><pre>SELECT a.column1, b.column2<br>FROM table1 a<br>JOIN table2 b ON a.id = b.id</pre><p>Use:</p><pre>SELECT emp.first_name, dept.department_name<br>FROM employees emp<br>JOIN departments dept ON emp.department_id = dept.department_id</pre><h4>Indent and format your code consistently</h4><p>Proper formatting and indentation make your queries easier to understand, debug, and maintain.</p><ul><li>Align clauses vertically</li><li>Indent subqueries and nested statements</li><li>Use line breaks to separate logical sections of your query</li><li>Capitalize SQL keywords for visibility</li><li>Maintain consistent spacing around operators and after commas</li></ul><p>For example:</p><pre>SELECT<br>    emp.employee_id,<br>    emp.first_name,<br>    emp.last_name,<br>    dept.department_name,<br>    (SELECT AVG(salary)<br>     FROM employees dept_emp<br>     WHERE dept_emp.department_id = emp.department_id) AS avg_dept_salary<br>FROM<br>    employees emp<br>    INNER JOIN departments dept ON emp.department_id = dept.department_id<br>WHERE<br>    emp.hire_date &gt;= &#39;2020-01-01&#39;<br>    AND emp.salary &gt; 50000<br>GROUP BY<br>    emp.employee_id,<br>    emp.first_name,<br>    emp.last_name,<br>    dept.department_name<br>HAVING<br>    COUNT(DISTINCT emp.job_id) &gt; 1<br>ORDER BY<br>    dept.department_name ASC,<br>    emp.last_name DESC<br>LIMIT 100;</pre><h4>Use comments in your code</h4><p>Comments provide context, explain complex logic, and help other developers (including your future self) understand the purpose and functionality of your queries. Here are key points about using comments in SQL:</p><ol><li>Use single-line comments for brief explanations: — This is a single-line comment</li><li>Use multi-line comments for longer explanations: /* This is a multi-line comment */</li><li>Explain the purpose of complex queries or calculations.</li><li>Document any assumptions or business rules implemented in the query.</li><li>Provide context for unusual code or workarounds.</li><li>Use comments to disable code during testing or debugging temporarily.</li><li>Include version information or change history for critical queries.</li></ol><pre>/* <br>   Employee Performance Analysis Query<br>   Version: 1.4<br>   Last Updated: 2024-07-29<br>   Author: James<br><br>   This query analyzes employee performance based on sales data,<br>   comparing individual performance to department averages.<br>*/<br><br>-- Select relevant employee and sales data<br>SELECT<br>    emp.employee_id,<br>    emp.first_name,<br>    emp.last_name,<br>    dept.department_name,<br>    sales.total_sales,<br>    -- Calculate the average sales for the employee&#39;s department<br>    (SELECT AVG(dept_sales.total_sales)<br>     FROM sales AS dept_sales<br>     INNER JOIN employees AS dept_emp ON dept_sales.employee_id = dept_emp.employee_id<br>     WHERE dept_emp.department_id = emp.department_id) AS avg_dept_sales,<br>    -- Calculate the performance ratio<br>    sales.total_sales / (SELECT AVG(dept_sales.total_sales)<br>                         FROM sales AS dept_sales<br>                         INNER JOIN employees AS dept_emp ON dept_sales.employee_id = dept_emp.employee_id<br>                         WHERE dept_emp.department_id = emp.department_id) AS performance_ratio<br>FROM<br>    employees AS emp<br>    INNER JOIN departments AS dept ON emp.department_id = dept.department_id<br>    INNER JOIN sales ON emp.employee_id = sales.employee_id<br>WHERE<br>    -- Focus on sales data from the current year<br>    sales.sale_date &gt;= DATE_TRUNC(&#39;year&#39;, CURRENT_DATE)<br>    -- Only include employees with significant sales (over $10,000)<br>    AND sales.total_sales &gt; 10000<br>GROUP BY<br>    emp.employee_id,<br>    emp.first_name,<br>    emp.last_name,<br>    dept.department_name,<br>    sales.total_sales<br>-- Only include top performers (above average in their department)<br>HAVING<br>    sales.total_sales &gt; (SELECT AVG(dept_sales.total_sales)<br>                         FROM sales AS dept_sales<br>                         INNER JOIN employees AS dept_emp ON dept_sales.employee_id = dept_emp.employee_id<br>                         WHERE dept_emp.department_id = emp.department_id)<br>ORDER BY<br>    -- Sort by performance ratio descending<br>    performance_ratio DESC<br>LIMIT 100;  -- Limit to top 100 performers</pre><p>By incorporating clear and concise comments, you make your SQL code more understandable and easier to maintain, facilitating collaboration and long-term code management.</p><h3>3. Optimizing Query Performance</h3><h4>Avoid SELECT *</h4><p>Using SELECT * (selecting all columns) in SQL queries is generally discouraged for several reasons:<br><strong>Performance:</strong> Retrieving unnecessary columns can slow query execution and increase network traffic.<br><strong>Readability:</strong> Explicit column selection clarifies what data the query is using.<br><strong>Maintainability:</strong> SELECT * queries may break or return unexpected results if table structures change.<br><strong>Application efficiency:</strong> Retrieving unneeded data can increase memory usage in your application.<br><strong>Security:</strong> It may accidentally expose sensitive data columns.</p><p>Instead, always explicitly list the columns you need:</p><pre>-- Instead of:<br>SELECT * FROM employees<br><br>-- Use:<br>SELECT employee_id, first_name, last_name, department_id<br>FROM employees</pre><h4>Use common table expressions (CTEs) for complex queries</h4><p>CTEs help simplify complex SQL queries. They enhance readability by breaking down complex logic into manageable, named pieces. CTEs are defined using the WITH clause and can make your SQL more modular and easier to understand, debug, and maintain.</p><pre>WITH recent_hires AS (<br>    SELECT employee_id, salary<br>    FROM employees<br>    WHERE hire_date &gt;= DATE_SUB(CURDATE(), INTERVAL 1 YEAR)<br>)<br>SELECT AVG(salary) AS avg_salary<br>FROM recent_hires;</pre><h4>Use indexing effectively</h4><p>Indexes allow the database to quickly locate data without scanning entire tables. Proper indexing is important for query performance. However, over-indexing can slow down write operations, so it is crucial to strike a balance.</p><ul><li>Create indexes on columns frequently used in WHERE clauses, JOIN conditions, and ORDER BY clauses.</li><li>Consider composite indexes for queries that frequently filter or join on multiple columns.</li><li>Regularly review and maintain your indexes, removing unused ones.</li></ul><p>Example:</p><pre>-- Creating an index on the employee_id column<br>CREATE INDEX idx_employee_id ON employees(employee_id);<br><br>-- Creating a composite index on department_id and hire_date<br>CREATE INDEX idx_dept_hire ON employees(department_id, hire_date);</pre><h4>Avoid using functions in WHERE clauses</h4><p>Using functions on columns in WHERE clauses can prevent the use of indexes, leading to full table scans. Try to keep columns in their original form in WHERE clauses.</p><p>Instead of:</p><pre>SELECT * FROM employees WHERE YEAR(hire_date) = 2023;</pre><p>Use:</p><pre>SELECT * FROM employees WHERE hire_date &gt;= &#39;2023-01-01&#39; AND hire_date &lt; &#39;2024-01-01&#39;;</pre><h4>Use EXISTS instead of IN for subqueries</h4><p>EXISTS is often more efficient than IN when dealing with subqueries, especially for large datasets.</p><p>Instead of:</p><pre>SELECT * FROM orders<br>WHERE customer_id IN (SELECT customer_id FROM customers WHERE country = &#39;USA&#39;);</pre><p>Use:</p><pre>SELECT * FROM orders o<br>WHERE EXISTS (SELECT 1 FROM customers c WHERE c.customer_id = o.customer_id AND c.country = &#39;USA&#39;);</pre><h4>Use UNION ALL instead of UNION when possible</h4><p>UNION ALL is faster than UNION because it doesn’t remove duplicate rows. If you’re sure there won’t be duplicates, or if duplicates are acceptable, use UNION ALL.</p><pre>SELECT product_id, &#39;Current&#39; AS status FROM current_products<br>UNION ALL<br>SELECT product_id, &#39;Discontinued&#39; AS status FROM discontinued_products;</pre><h4>Use window functions for complex aggregations</h4><p>Window functions often replace complex self-joins or correlated subqueries, leading to more efficient and readable queries.</p><pre>SELECT <br>    employee_id,<br>    first_name,<br>    last_name,<br>    salary,<br>    AVG(salary) OVER (PARTITION BY department_id) AS avg_dept_salary,<br>    salary - AVG(salary) OVER (PARTITION BY department_id) AS salary_diff_from_avg<br>FROM <br>    employees;</pre><h4>Optimize JOIN operations</h4><ul><li>Always join on indexed columns when possible.</li><li>Use INNER JOIN instead of OUTER JOIN when appropriate, as it’s generally faster.</li><li>For complex queries with multiple joins, consider the join order. Start with the largest table and join smaller tables to it.</li></ul><p>For example:</p><pre>SELECT <br>    emp.employee_id,<br>    emp.first_name,<br>    emp.last_name,<br>    dept.department_name,<br>    job.job_title<br>FROM <br>    employees emp<br>    INNER JOIN departments dept <br>        ON emp.department_id = dept.department_id<br>    INNER JOIN jobs job <br>        ON emp.job_id = job.job_id<br>WHERE <br>    emp.hire_date &gt;= &#39;2023-01-01&#39;<br>ORDER BY<br>    emp.last_name,<br>    emp.first_name;</pre><h3>Conclusion</h3><p>Optimized SQL queries are crucial for data analysts. Clean, efficient, and fast SQL improves code quality and enhances your effectiveness as an analyst. It facilitates collaboration, reduces resource strain, and enables quicker data exploration and decision-making.<br>Optimized SQL becomes even more valuable as datasets grow, allowing you to handle larger volumes and perform more complex analyses. By focusing on SQL optimization, you can elevate your work from data extraction to efficient insight generation, increasing the value of your organization.<br>Strive for a balance of functionality, clarity, and performance in your SQL. Writing optimized SQL will become second nature with practice, empowering you to tackle complex data challenges confidently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1364aa4145de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use and Integrate APIs in Your Spreadsheet or Data Project]]></title>
            <link>https://medium.com/@oladeeayo/how-to-use-and-integrate-apis-in-your-spreadsheet-or-data-project-78bc6c860041?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/78bc6c860041</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[spreadsheets]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 10:09:52 GMT</pubDate>
            <atom:updated>2024-07-16T13:42:02.838Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago, I came across a tweet that discussed the potential value of investments in stocks and equities if an individual invested a certain amount at the beginning of the year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*c1-cuSC5FcsQVL29xscpiQ.png" /></figure><p>This tweet inspired me to create <a href="https://bit.ly/price-feed">a spreadsheet</a> to track all the investments mentioned in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xwCqiGRYusHNy72l4LMFA.jpeg" /><figcaption><a href="https://bit.ly-price-feed/">https://bit.ly-price-feed</a></figcaption></figure><p>I had to work with APIs to make the spreadsheet more effective for its users by enabling automated data retrieval and real-time updates. This article explains APIs, their significance in data analytics, and how to use and integrate them into your next spreadsheet or data project.</p><h3>What is an API?</h3><p>APIs, which stands for Application Programming Interfaces, allow different software systems to communicate. They act as bridges between different software systems, enabling them to communicate with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*WVlPCznVgpMF2ERUZmVlIA.png" /></figure><p>API are essential in data analytics because they can fetch real-time data from various sources, such as stock prices, weather data, or social media metrics, into a spreadsheet. This dynamic capability can turn a simple spreadsheet into a powerful, up-to-date data analysis tool.</p><h3><strong>Why are APIs important in data analytics?</strong></h3><h4><strong>1. Data Collection and Integration:</strong></h4><ul><li>APIs act as pipelines, allowing data analysts to gather information from different sources, including databases, cloud services, social media platforms, and IoT devices.</li><li>This data can then be seamlessly integrated into a centralized system for analysis, eliminating the need for manual data entry and reducing the risk of errors.</li></ul><p><strong>Example:</strong> A marketing analyst can use APIs to pull data from social media platforms (like Twitter, Facebook, and Instagram) to assess campaign performance and audience engagement.</p><h4><strong>2. Real-Time Data Access:</strong></h4><ul><li>Many APIs offer real-time or near-real-time data feeds, enabling analysts to monitor trends and make timely decisions based on the latest information.</li><li>This is particularly valuable in industries like finance, where market conditions can change rapidly.</li></ul><p><strong>Example:</strong> A stock trading platform can use APIs to access real-time stock prices and execute trades automatically based on predefined criteria.</p><h4><strong>3. Enriched Analysis:</strong></h4><ul><li>Analysts can enrich their datasets with additional information by connecting to external data sources via APIs, leading to deeper insights and more comprehensive analysis.</li><li>This can be particularly useful for uncovering patterns and correlations.</li></ul><p><strong>Example:</strong> A healthcare analyst can combine patient data with demographic information from an external API to identify potential risk factors for certain diseases.</p><h4><strong>4. Automation and Scalability:</strong></h4><ul><li>APIs enable the automation of data collection, processing, and analysis tasks, freeing analysts to focus on higher-level activities like interpretation and strategy.</li><li>Furthermore, APIs can be scaled to handle large volumes of data, making them ideal for big data analytics projects.</li></ul><p><strong>Example:</strong> A retail company can use APIs to automate inventory tracking and sales analysis, generating reports that help optimize pricing and product assortment.</p><h4><strong>5. Collaboration and Knowledge Sharing:</strong></h4><ul><li>APIs facilitate sharing data and insights across different teams and departments, promoting collaboration and informed decision-making.</li><li>Additionally, public APIs allow researchers and analysts from different organizations to share data and collaborate on projects.</li></ul><p><strong>Example:</strong> A government agency can release public APIs to share environmental data, enabling researchers to analyze pollution levels and develop strategies for mitigation.</p><p>APIs are the backbone of modern data analytics, providing the tools and connectivity needed to collect, integrate, analyze, and share data efficiently.</p><h3><strong>Common types of APIs in data analytics:</strong></h3><ul><li><strong>REST APIs:</strong> The most popular type, known for its simplicity and flexibility. REST APIs use standard HTTP methods (GET, POST, PUT, DELETE) to interact with resources.</li><li><strong>SOAP (Simple Object Access Protocol) APIs:</strong> An older protocol that’s more complex than REST, often used in enterprise environments where security is a top priority.</li><li><strong>GraphQL APIs:</strong> A newer query language for APIs that gives clients more control over the data they request, making it more efficient for complex queries.</li></ul><h3>Common API-related Terms</h3><h4>1. Endpoints:</h4><p>Endpoints are specific URLs that represent different resources or functions within an API. They’re like addresses that tell the API exactly what data or service you want to access.</p><p>Let’s use the OpenWeatherMap API as an example:</p><ul><li>Current weather data: <a href="https://api.openweathermap.org/data/2.5/weather">https://api.openweathermap.org/data/2.5/weather</a></li><li>5-day forecast: <a href="https://api.openweathermap.org/data/2.5/forecast">https://api.openweathermap.org/data/2.5/forecast</a></li><li>Historical weather data: <a href="https://api.openweathermap.org/data/2.5/onecall/timemachine">https://api.openweathermap.org/data/2.5/onecall/timemachine</a></li></ul><p>Each endpoint typically corresponds to a specific type of data or operation.</p><h4>2. Requests:</h4><p>Requests are how you ask the API for data or to perform a service. They consist of several components:</p><ul><li>HTTP Method: GET (retrieve data), POST (send data), PUT (update data), DELETE (remove data)</li><li>Headers: Additional information about the request (e.g., authentication, content type)</li><li>Parameters: Extra data sent with the request (e.g., specifying a city for weather data)</li><li>Body: Data sent with POST or PUT requests</li></ul><p>Example: A GET request to https://api.openweathermap.org/data/2.5/weather?q=NewYork&amp;appid=YOUR_API_KEY asks for current weather in New York.</p><h4>3. Responses:</h4><p>Responses are what the API sends back after processing your request. They typically include:</p><p><strong>Status Code:</strong> Indicates if the request was successful (e.g., 200 for success, 404 for not found)<br><strong>Headers:</strong> Information about the response (e.g., content type, date)<br><strong>Body:</strong> The actual data, often in JSON or XML format.</p><h4>4. API Keys:</h4><p>API keys are unique identifiers used to authenticate your requests to the API. They serve several purposes:</p><p><strong>Authentication:</strong> Prove you have permission to use the API</p><p><strong>Tracking:</strong> Allow the API provider to monitor your usage</p><p><strong>Rate Limiting:</strong> Control how many requests you can make per time</p><p>⚠️<em>API keys should be kept secure and not shared publicly, as they can be used to access services on your behalf.</em></p><h3>How to Use APIs in Your Data Projects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IftIE7bRat8gHCCD.jpg" /></figure><h4>Step 1: Identify the API You Need</h4><p>To start, you should identify the API that offers the data or functionality you require for your project. Many organizations and platforms, such as Google, Twitter, Facebook, and various financial institutions, provide APIs. You can discover APIs by searching online or visiting the websites of the services you are interested in. Additionally, it’s important to read and review the API documentation carefully. This will guide on available endpoints, required parameters, authentication methods, and data formats.</p><p>For this article, I will use <a href="https://docs.coincap.io/">CoinCap API</a> which has real-time pricing and market activity for over 1,000 cryptocurrencies.</p><h4>Step 2: Obtain API Access</h4><p>Most APIs require authentication. Typically, you’ll need to:</p><ol><li>Create an account on the API provider’s website</li><li>Request an API key or access token</li><li>Read the documentation to understand usage limits and terms</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LjKm2fNeOgykGw4H.png" /></figure><h4>Step 3: Make API Requests</h4><p>With your API key and documentation, you can begin sending API requests. The method for making requests varies depending on your tool or programming language.</p><p>In this scenario, we are utilizing a spreadsheet.<br>You can utilize different tools and programming languages to send requests and fetch data when working within a spreadsheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*x_WeZvR2zd_uDL8JN3o-MA.png" /></figure><p>A popular approach is to use Google Sheets combined with Google Apps Script, a JavaScript-based language enabling interaction with Google services.</p><p>Here’s a simple example of how to use Google Apps Script to make an API request and display the data in a Google Sheet:</p><ul><li>Open Google Sheets and go to Extensions &gt; Apps Script.</li><li>Replace the default code with the following script:</li></ul><pre>function getCoinCapPrice(symbol) {<br>  var apiUrl = &#39;https://api.coincap.io/v2/assets/&#39; + symbol;<br><br>  var response = UrlFetchApp.fetch(apiUrl);<br>  var json = response.getContentText();<br>  var data = JSON.parse(json);<br>  <br>  if (data.data) {<br>    return data.data.priceUsd; // Return the price in USD for the specified symbol<br>  } else {<br>    return &#39;Not found&#39;; // Handle error if symbol is not found<br>  }<br>}</pre><ul><li>Save the script with a name like “CoinCap API”.</li><li>Close the script editor.</li></ul><h4>Step 4: Run Your Request in the Spreadsheet</h4><p>After saving your script in the script editor, you can now run the script in your spreadsheet cell to make the intended request.</p><p>Following the examples from CoinCap, we will enter the code to fetch the current price of Bitcoin from the API. The error handler post will be returned if there’s an error or an incorrect command.</p><p>Alternatively, you can use a simpler option by using the IMPORTDATA function for simple GET requests:</p><pre>=IMPORTDATA(&quot;https://api.example.com/endpoint?key=YOUR_API_KEY&quot;)</pre><h4>Step 5: Automate and Schedule Data Refresh</h4><p>You can automate and schedule the API requests to keep your data up-to-date. You can set up triggers in Google Sheets to run your script regularly. Go to Triggers &gt; Add Trigger in the Apps Script editor, set up a time-driven trigger to run your function periodically.</p><h4><strong>Important Considerations:</strong></h4><ul><li><strong>Rate Limits:</strong> Be mindful of API usage limits to avoid getting temporarily blocked.</li><li><strong>Error Handling:</strong> Implement error handling in your code to gracefully manage cases where the API request fails.</li><li><strong>Data Privacy:</strong> Respect any data privacy regulations or terms of service when using APIs.</li></ul><h3>Conclusion</h3><p>By following the steps outlined in this article, you can easily integrate and use API functionality in your next spreadsheet or project to access real-time dynamic information. The possibilities with API usage don’t end with what is covered in this article. There are other options and ways to explore the capabilities of APIs in your data projects. I encourage you to read more, keep experimenting, and don’t hesitate to push the boundaries of what’s possible with APIs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78bc6c860041" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Experience with Dune Analytics: Key Takeaways]]></title>
            <link>https://medium.com/@oladeeayo/my-first-experience-with-dune-analytics-key-takeaways-d85c32218044?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d85c32218044</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[dune]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 11:49:16 GMT</pubDate>
            <atom:updated>2024-06-25T11:49:16.966Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week, I took my first step into blockchain data analytics with Dune Analytics. Using their query features, I created a dashboard to display the claim statistics of the LayerZero (ZRO) airdrop by the LayerZero Foundation. Luckily, Dune Analytics already had queries for other airdrops available, which provided a solid foundation for me to build on and replicate. This article explains some of my key takeaways from the platform (Dune Analytics) and how I was able to build my first dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4WHbsFvXDBOJBOLtKgwJQ.png" /><figcaption>Dune Analytics DIscover Page</figcaption></figure><p>Dune Analytics is a powerful platform that allows users to query, analyze, and visualize data across 30+ blockchains. Dune provides a user-friendly interface and robust tools for creating complex SQL queries and beautiful dashboards.</p><h4>The Project: LayerZero Airdrop Claim Stats Dashboard</h4><p>With the announcement of the LayerZero airdrop, I created a dashboard to track some of the key stats of the airdrop claim. Even though I have never used the Dune analytics platform or interacted with any blockchain data as a data analyst, the platform seems easy to navigate.</p><p>I watched a few tutorials and read a few documentation on how to use Dune and this gave me a headstart on creating this dashboard. Also, with Dune being open source, I could use similar dashboards created for other airdrops before now. This gave me the necessary idea for writing the queries and implementing the dashboard for this project.</p><pre>WITH alt_amount AS (<br>  SELECT<br>    85000000 AS amount,<br>    1280000 AS wallet,<br>    1000000000 AS total_supply<br>), <br><br>alt_claimed AS (<br>  SELECT<br>    SUM(value / 1e18) AS amount_claimed,<br>    COUNT(DISTINCT &quot;to&quot;) AS claimers <br>  FROM erc20_arbitrum.evt_transfer<br>  WHERE<br>    contract_address = 0x6985884C4392D348587B19cb9eAAf157F13271cd<br>    AND &quot;from&quot; = 0xd6b6a6701303b5ea36fa0edf7389b562d8f894db<br>)<br><br>SELECT<br>  a.amount,<br>  a.wallet,<br>  a.total_supply,<br>  c.amount_claimed,<br>  c.claimers,<br>  a.amount - c.amount_claimed AS amount_left,<br>  TRY_CAST((<br>    1 - c.amount_claimed / a.amount<br>  ) AS DOUBLE) * 100 AS amount_left_pt,<br>  TRY_CAST((<br>    c.amount_claimed / a.amount<br>  ) AS DOUBLE) * 100 AS amount_claimed_pct<br>FROM alt_amount AS a, alt_claimed AS c</pre><p>The queries had two CTEs, the first being static information already known and provided by the LayerZero Foundation, while the second was to get the needed information from the smart contract that was interacted with in claiming the airdrop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HyDOKBfRYsdoJl1guRv2Zg.png" /><figcaption>Dune Analytics Query Result</figcaption></figure><p>With these queries, I got the total amount claimed so far, and the amount left to be claimed by subtracting it from the initial total airdropped amount. Dune analytics makes this seamless by fixing any query error using AI if there is any when running the query.</p><p>The dashboard creation feature is one of the most seamless features I have ever come across as all I need to create a dashboard is to select the query results I want included in my new dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dI9v7ak5jjLejsEhRMfEw.png" /><figcaption>Dune Analytics Dashboard Editor</figcaption></figure><p>After adding the queries I want to appear on my dashboard, I must drag and drop them into the intended spaces I want them to fill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua32VgZvQs4iRyHaLoOyTQ.png" /></figure><p>This is the final result of the dashboard. You can view it <a href="https://dune.com/oladee/layerzero-airdrop-claim-stats">here</a>.</p><h4>Key Takeaways from the Experience</h4><ol><li><strong>User-Friendly Interface</strong></li></ol><p>Dune Analytics provides a simple interface that makes it easy for beginners to use. The layout is clean, and the navigation is straightforward, allowing users to focus on their data and queries without being overwhelmed by a complex UI.</p><p>2. <strong>Extensive Documentation and Community Support</strong></p><p>One of the most helpful aspects was the extensive documentation available. Dune’s documentation covers many topics, from basic SQL queries to advanced data visualization techniques. Additionally, the robust community support on platforms like Discord and forums provides timely help and insights from experienced users.</p><p>3. <strong>Learning SQL</strong></p><p>Writing my first query was an educational experience. If you’re unfamiliar with SQL, there might be a learning curve, but Dune makes it manageable. Plenty of resources are available to learn SQL, and practicing with real blockchain data on Dune is an excellent way to improve your skills.</p><p>4. <strong>Access to Blockchain Data</strong></p><p>Dune Analytics offers access to a vast array of blockchain data. The ability to query data from different smart contracts and protocols opens up endless possibilities for analysis and insights.</p><p>5. <strong>Visualization Tools</strong></p><p>Creating the dashboard was another highlight. Dune provides powerful visualization tools allowing users to create charts and graphs. The visualizations are highly customizable, enabling the creation of informative and visually appealing dashboards.</p><h4>Overcoming Challenges</h4><p>While building the dashboard, I initially needed help understanding how to call out data from the smart contract. This challenge required me to check how other related dashboards got this and understand the meaning of each function used. By experimenting with different SQL functions and leveraging community support, I refined my queries and achieved the desired results.</p><h4>Future Directions</h4><p>This experience has opened my eyes to the possibilities of Dune Analytics. In the future, I’d like to work more on blockchain data and analyze data on lending protocols, liquidity pools, and how users interact with them over time.</p><h4>Conclusion</h4><p>Writing my first Dune Analytics query and creating a dashboard was a rewarding experience. It gave me new skills, deeper insights into blockchain data, and the satisfaction of meaningfully visualizing data. I recommend diving into Dune Analytics for anyone interested in blockchain analytics. The learning curve is worth it, and the tools available make the journey educational and enjoyable.</p><h4>Resources</h4><p>Dune Docs — <a href="https://docs.dune.com/home">https://docs.dune.com/home</a></p><p>Intro to Crypto Analysis — <a href="https://www.youtube.com/watch?v=dJNnOtVmoP0&amp;t=508s">https://www.youtube.com/watch?v=dJNnOtVmoP0&amp;t=508s</a></p><p>Dune Analytics 101 — <a href="https://www.youtube.com/playlist?list=PLK3b5d4iK10ext4v-GBySekaA8-GP8quD">https://www.youtube.com/watch?v=S-cctFmR828</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d85c32218044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Data to Transform Sales and Customer Insights]]></title>
            <link>https://medium.com/@oladeeayo/using-data-to-transform-sales-and-customer-insights-aaaae60a30b2?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaaae60a30b2</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[sales]]></category>
            <category><![CDATA[clothing]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 10:35:45 GMT</pubDate>
            <atom:updated>2024-06-17T10:35:45.463Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background Story</h3><p>Davis runs a clothing store in his local community. Business is okay, but Davis can’t pinpoint why sales fluctuate, some days he has big sales and demand for a particular product but on other days the sales aren’t just coming in. Not only that, he finds it challenging to know the tastes and preferences of his customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*ls0cyNww1AQtDDlk.png" /></figure><p>Davis loves his business but feels like he is flying blind, making decisions based on intuition rather than evidence. He has tried several solutions, such as ads, promotions, stocking up on trendy clothes, and even extending store hours, to see if these would help him improve his sales, but they have yet to work as effectively as he would like.</p><p>Davis’ story is a familiar story to many business owners. They know they’re working hard and doing the necessary things, but growth or lack of it feels like a guessing game without a clear understanding of what’s driving sales (and what isn’t).</p><p>This is where data comes in. Data is any information you collect about your business, customers, and market. It can come from sales figures, website traffic, surveys, social media engagement, and more. By analyzing this data, you can uncover information, patterns, and trends that you may have previously overlooked.</p><h3>Step-By-Step Guide to Data Analysis</h3><h4>1. Ask Questions</h4><p>Before Davis begins any step in his data journey, his most crucial task is to ask the right questions. These questions will guide the entire data collection process and set the stage for meaningful, data-driven decisions for his clothing business. The questions Davis asks will also influence his data collection methods. By tailoring data collection methods to specific questions, Davis can gather the most useful data for his analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7nTn2s81wuCTD9RH.png" /></figure><p><strong>Key questions might include:</strong></p><ul><li><strong>Who are my typical customers?</strong> (Age, gender, location, etc.)</li><li><strong>What are my customers looking for when they visit my store (online or in-person)?</strong> (Styles, brands, price points)</li><li><strong>Which items are selling well and which ones are lagging?</strong></li><li><strong>Are there any seasonal trends in my sales data?</strong> (e.g., summer dresses vs. winter coats)</li><li><strong>Do certain promotions or discounts significantly impact sales?</strong></li><li><strong>How do customers typically find my store?</strong> (Social media, website traffic, word-of-mouth)</li><li><strong>Which marketing channels (if any) are driving the most sales?</strong></li><li><strong>Is there a connection between social media engagement and in-store traffic?</strong></li><li><strong>How do customers navigate my website?</strong> (Popular pages, user flow)</li><li><strong>Do visitors typically add items to their cart without completing the purchase?</strong> (Why or why not?)</li><li><strong>Are there any technical issues on my website that might be hindering sales?</strong> (Slow loading times, checkout problems)</li></ul><h4>2. Data Collection</h4><p>Once Davis clearly defines his questions, his next step is data collection. This involves gathering raw data from various sources relevant to his business. The importance of this step cannot be overstated, as the quality and scope of data collected will directly impact the insights generated later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7GYjcO9fmBlRHVgx" /></figure><p>Here are some common data collection methods for a clothing store owner:</p><ul><li><strong>Sales Data:</strong> The core data set captures information on every purchase. It typically includes details like date, customer ID (if available), item purchased, brand, price, and whether it was a sale.</li><li><strong>Website Analytics:</strong> Platforms like Google Analytics provide a wealth of data on website traffic. Davis can track how customers find his store (organic search, social media ads, etc.), their browsing behavior, and even which items they add to their carts (without completing a purchase).</li><li><strong>Customer Surveys:</strong> Direct feedback from customers is invaluable. Surveys can gauge satisfaction with products, services, and the overall shopping experience. They can also gather specific data on preferences, sizing, or interest in new product lines.</li><li><strong>Social Media Engagement:</strong> Social media platforms offer a treasure trove of data. Likes, shares, comments, and even click-through rates on social media ads can provide insights into customer preferences and marketing campaign effectiveness.</li></ul><p>Using these methods, Davis can gather a comprehensive picture of his customer base, behavior, and interactions with his clothing store. The quality and relevance of the data collected will directly impact the quality of his analysis and the effectiveness of his data-driven decisions.</p><h4>3. Data Cleaning</h4><p>After gathering customer data, Davis needs to prepare it for analysis. This process is called <strong>data cleaning</strong>, which involves identifying and correcting errors, format inconsistencies, and missing information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*FdGwfUgXAoHiOVCk.jpg" /></figure><p><strong>Common Data Cleaning Tasks:</strong></p><ul><li><strong>Removing Duplicates</strong>: Ensuring each data entry is unique to avoid skewed results.</li><li><strong>Correcting Errors</strong>: Fixing typos, incorrect values, and inconsistencies.</li><li><strong>Handling Missing Data</strong>: Filling in or appropriately addressing NULL values in the dataset.</li></ul><p>With this done, Davis is set to analyze and gain insight from his data.</p><h4>4. Data Exploration and Analysis</h4><p>Now that Davis has cleaned his data, the real fun begins! This step involves exploring the data to discover patterns, trends, and relationships that might not be visible from merely looking at the data. This can be done through various techniques, and the specific methods used will depend on the questions Davis initially set out to answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ozy76la6-6ABFWPj.jpg" /></figure><p><strong>Common Data Exploration Techniques:</strong></p><ul><li><strong>Descriptive Statistics:</strong> This provides basic data summaries, such as average purchase amount, most popular item categories, or distribution of customer ages.</li><li><strong>Data Visualization:</strong> Creating charts and graphs can make trends and relationships in the data easier to understand. For example, a bar chart might show which items sell the best by month/year, or a scatter plot could reveal a correlation between customer location and preferred brands.</li><li><strong>Data Segmentation:</strong> Dividing the data into smaller groups based on specific criteria (e.g., age, gender, location) can help identify differences in purchasing behavior among different customer segments.</li></ul><p>Data Exploration Techniques are not limited to the examples stated above as other methods could be used depending on the analyst&#39;s wants.</p><p><strong>Tools for Data Exploration and Analysis:</strong></p><p>Many tools, even those without a programming background, are available for data exploration and analysis. These include:</p><ul><li><strong>Spreadsheets:</strong> While not ideal for large datasets, spreadsheets can be used for basic data manipulation and visualization. (Microsoft Excel, Google Sheet e.t.c)</li><li><strong>Business Intelligence (BI) Tools:</strong> User-friendly BI tools offer a range of features for data exploration, visualization, and basic reporting. (Power BI, Tableau, Looker Studio e.t.c)</li><li><strong>Data Analysis Programming Languages:</strong> Tools like Python with libraries like Pandas and Matplotlib provide powerful data manipulation, visualization, and advanced statistical analysis capabilities.</li></ul><p>With these techniques and tools, Davis can transform his cleaned data into actionable insights. He can also discover hidden patterns, understand customer behavior more deeply, and make informed decisions about his clothing store.</p><h4>6. Taking Action Based on Insights</h4><p>The ultimate goal of data analysis is to generate interesting charts and reports and take concrete actions based on the insights discovered. With the knowledge gained from his data, Davis can now make data-driven decisions to improve his business. Address loopholes in his delivery or sales, better understand his customer&#39;s demography, and intensify ads based on that, he can also uncover his best-selling channels and his customer&#39;s behavioral trends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/0*JYL4rRQigrXJW8S9" /></figure><p><strong>Potential Actions Based on Data Analysis:</strong></p><ul><li><strong>Product Development:</strong> Davis can identify new product lines or variations that cater to specific customer segments or address unmet needs.</li><li><strong>Marketing and Advertising:</strong> Based on customer acquisition channels and their effectiveness, Davis can optimize his marketing budget and target his advertising efforts more effectively.</li><li><strong>Pricing Strategy:</strong> Analyzing sales data and customer preferences can help Davis set competitive prices and create targeted promotions or discounts.</li><li><strong>Customer Experience Optimization:</strong> By understanding customer behavior and pain points, Davis can streamline the shopping experience, improve website usability, and offer better customer service.</li></ul><p>These are just a few examples, and the specific actions Davis takes will depend on his unique business goals and the insights gleaned from his data analysis. However, by consistently collecting, cleaning, analyzing, and acting on his data, Davis can transform his clothing store into a data-driven enterprise on the path to success.</p><h3>Conclusion</h3><p>In today’s competitive business environment, the importance of data cannot be overstated. As Davis’s journey illustrated, data is the key to unlocking the mysteries behind fluctuating sales, understanding customer preferences, and making informed decisions that drive growth. By following a similar approach of asking questions, collecting data, cleaning and analyzing it, and then taking action based on the insights gained, any organization, business or industry can leverage the power of data to make better decisions, improve efficiency, and achieve greater success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3HeHgMpdjpq9tx5s.png" /></figure><p>Data is not just about numbers; it’s about gaining insights into what drives success. Whether running a clothing store, managing a restaurant, or operating an online platform, the principles of data analysis remain the same. By gathering and analyzing data, businesses can uncover trends, predict customer behavior, optimize operations, and tailor their strategies to meet market demands more effectively.</p><p>Data empowers business owners to move from intuition-based decisions to evidence-based strategies. By adopting a data-driven approach, any business can transform uncertainty into opportunity, making informed decisions that lead to sustained success. Like Davis, companies across all sectors can harness the power of data to understand their markets better, serve their customers, and achieve their goals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaaae60a30b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the Numbers: Insights into the Performance of Fantasy Premier League 2023/2024 Champion…]]></title>
            <link>https://medium.com/@oladeeayo/behind-the-numbers-insights-into-the-performance-of-fantasy-premier-league-2023-2024-champion-cf750fbf06ab?source=rss-c2d2f6be882b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf750fbf06ab</guid>
            <category><![CDATA[fantasy-football]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[football]]></category>
            <dc:creator><![CDATA[Oladayo Isaac]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 20:50:05 GMT</pubDate>
            <atom:updated>2024-06-05T20:50:05.344Z</atom:updated>
            <content:encoded><![CDATA[<h3>Behind the Numbers: Insights into the Performance of Fantasy Premier League 2023/2024 Champion, Jonas Sand Låbakk</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vXnaSXEyke5FYDzpNjSFQ.png" /></figure><h3>Introduction</h3><p>Fantasy Premier League (FPL as it is widely called) is a fantasy football game based on the English Premier League. Prices are given to players based on the number of FPL points they are projected to deliver, with player&#39;s cost ranging from £4.0M to £13.0M, and you are limited to a budget of £100M for your 15-man squad. Players earn points based on their real-life in-match performances.</p><p>The interesting aspect of FPL is that the budget and player limits (3 players per team) ensure you cannot just stack up all the elite players and easily win the league. It is difficult to attain a very good ranking without a good strategy and skill. The Premier League offers prizes for monthly and overall winners, making the game even more exciting. You can also create paid leagues with friends for added competition and bragging rights!</p><p>As the curtain falls on another exciting Premier League season, I have decided to work on a fun project to see some numbers supporting Jonas Sand Låbakk the 2024 Fantasy Premier League Winner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/0*hTZ7BniZaEyC2w1m" /></figure><p>As stated earlier, it takes a good strategy, skill, and winning formula to crack the game and be the top winner. This article will focus on some of the interesting key stats and insights on Jonas&#39;s 2024 FPL feat which happens to be the second-best FPL season point since inception.</p><p>The data was collated through the FPL API endpoints to get information on the FPL winner and also, the individual players used across various game weeks. To do this you can read up some of the references on steps and guidelines to extract FPL data.</p><h3>Squad Stats</h3><p>Jonas was very meticulous about his player pick throughout the whole season, he was not following the frenzy trend of buying every and any trendy player in FPL. The data available suggested that he focused on consistent performers, maintaining only dependable players across all positions. Jonas used only 66 unique players across 38 game weeks, with players from all clubs of the league except Fulham. Here is a view of all the players used by Jonas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQ0uGPTqDHfexkfLRSsNuw.png" /><figcaption>The word cloud of every player used by Jonas Sand</figcaption></figure><h4><strong>Most Selected Players:</strong></h4><p>Bukayo Saka (Arsenal, MID): In the squad for 32 GWs with 28 starts.</p><p>Erling Haaland (Man City, FWD): In the squad for 29 GWs with 27 starts and captained for 15 GWs.</p><p>Mohammed Salah (Liverpool, MID): In the squad for 27 GWs with 25 starts and captained for 13 GWs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J4XIyLwVSbyc9qf3Cv5SYA.png" /><figcaption>Top 10 Players to start across the season</figcaption></figure><p>Of the 66 players used, the chart above shows the top 10 players with the highest starts in his squad.</p><h4><strong>Captaincy Choice:</strong></h4><p>The captain’s armband holds immense power in FPL, with the ability to double or triple (Triple Captain Hit) the point output of the chosen player. A manager&#39;s Captaincy choice can make or mare a manager&#39;s season therefore GW captain must be carefully selected.</p><p>Jonas didn’t give himself too much headache as he found satisfaction in Haaland and Salah who were his highest captaincy choice. The armband was rotated among 8 different players. His captains gave him 600 points which amounts to 21.4% of his total points. This further steers the conversation on the importance of good captaincy choices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIpKkm59UsiQeM_jI3hvzA.png" /><figcaption>Jonas Captaincy choice</figcaption></figure><h4><strong>Top Performer:</strong></h4><p>Jonas ended the season with 2799 points, of which Haaland (353 points), Salah (266 points), Saka (216 points), Palmer (221 points), and Son (171 points) contributed a whooping 68% as the top contributors. Little wonder why they are the regular faces in his squad.</p><p>Here is what Jonas&#39;s FPL squad looks like with his most picked players and points returned (captaincy points inclusive) across the season.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKM7gbf6oLR_FjzFvDbRIQ.png" /></figure><p>Jonas maintained a balanced team, with significant contributions from both offensive and defensive players:</p><p>Goals: 182 goals scored by the squad.</p><p>Assists: 88 assists.</p><p>Clean Sheets: 51 clean sheets.</p><p>Goals Conceded: 188 goals.</p><p>Bonus Points: 301 points</p><p>Yellow Cards: 52 yellow cards.</p><p>This balance ensured a steady accumulation of points from all areas of the pitch.</p><h4><strong>Goalkeeper Dilemma:</strong></h4><p>One position Jonas rotated a lot was the goalkeeping position as he kept rotating players based on their fixtures and favorable form. This made him have 8 goalkeepers sharing the spot across the season, with the goalkeepers keeping 51 clean sheets and conceding 188 goals among them. Jose Sa was the only goalkeeper not to start a game in Jonas&#39;s squad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B91_agVM-sxqLIzzuL7A2g.png" /><figcaption>Goalkeepers start across the season</figcaption></figure><h4><strong>Bench</strong></h4><p>Jonas had a reliable bench that could easily slot in for any player but also made sure he didn’t leave a lot of value on the bench. He left a total of 318 points on the bench, averaging 8 points per week which is very low.</p><h3>Gameweek Stats</h3><p>Jonas accumulated a total of 2,799 points at the end of Gameweek 38, which means he averaged around 74 points every Gameweek. His most successful week with the highest points was GW 34 and GW 37 with 143 points and his most disappointing game week with the lowest points was GW 29 where he had 19 points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5nPn8Lcf8lYYNWdIRJFwQ.png" /></figure><h3><strong>Other Important Gameweek Stats</strong></h3><p>Highest Weekly Rank — 30,708 in GW 35</p><p>Lowest Weekly Rank — 6,907,847 in GW 7</p><p>Started the season with 77 points and ranked 1,221,598</p><h4><strong>Formation Used</strong></h4><p>Throughout the season, Jonas favored more width in his midfield than in other positions. This strategy emphasizes a midfield-heavy approach, which is often beneficial in FPL due to midfielders’ potential for goals and assists.</p><p>This was evident in the formation used across the season. Earlier in the season, he utilized a 3–5–2 formation (used 17 times) and later changed to 3–4–3 (used 16 times) in the 2nd half of the season, this could be because of differential forwards like Solanke who burst into the scene in the latter part of the season.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_MyGfDWyR42kM4RGH5DCQ.png" /></figure><h4>Chips Used Stats</h4><p>Another important thing Jonas got right was his Chip usage, their usage was perfectly timed with his Triple Captain (Haaland) in GW 25 returning 30 points (overall GW points was 108), his bench boosts adding up an extra 22 points (overall GW points was 143) and his Freehit in GW 34 returned 143 points. This also means his 2 best-performing GWs were Benchboost and Freehit weeks.</p><p>Wildcard 1 — GW 8<br>Triple Cap — GW 25<br>Wildcard 2 — GW 30<br>Freehit — GW 34<br>BenchBoost — GW 37</p><h3>Legends of the Game</h3><p>Not only is Jonas Sand the 2024 FPL winner, but his total accumulated points of 2,799 stood as the 2nd best FPL points finish in the history of the game only bettered by Jamie Pigott&#39;s heroic season of 2021/2022 with 2,844 points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DyfWpIXoKZFWCQtDpyNoBQ.png" /><figcaption>FPL Winners records</figcaption></figure><h3><strong>Recommendations for Future FPL Managers</strong></h3><p>Based on the insights derived from this data, here are some of the key takeaways for me and I think future FPL managers can make use of them in subsequent seasons.</p><p><strong>Start Stable:</strong> Minimize early season transfers to build squad value and cohesion.<br><strong>Use Chips Wisely:</strong> Plan chip usage around fixture swings and double game weeks.<br><strong>Focus on Midfield:</strong> Prioritize a midfield-heavy formation like 3–5–2 to capitalize on versatile point contributors.<br><strong>Captain Consistently:</strong> Place the captaincy on consistently high-performing players.<br><strong>Build Core Team:</strong> Identify a core group of reliable, high-performing players and rotate around them as needed.<br><strong>Manage the Bench: </strong>Ensure a strong bench to cover injuries or suspensions and also aim to minimize points left on the bench.<br><strong>Increase Squad Value:</strong> Engage in early transfers to increase squad value, enabling a stronger team in the latter stages.<br><strong>Balance the Team:</strong> Maintain a balance between offensive and defensive players to maximize overall points.<br><strong>Learn from the Best:</strong> Study the strategies of past winners to identify successful patterns and approaches.</p><p>The 2024 FPL season has provided a rich source of strategic wisdom, with Jonas Sand Låbakk’s victory serving as a blueprint for aspiring FPL champions. By integrating these insights and recommendations, future FPL managers can enhance their chances of climbing the ranks and potentially winning their leagues.</p><h3>Resources</h3><p><a href="https://www.fantasyfootballpundit.com/list-famous-fpl-managers-footballers-winners/"><strong>https://allaboutfpl.com/2022/06/list-of-fpl-winners-since-the-first-fpl-season-in-2002-03/</strong></a><strong><br></strong>FPL past winners records</p><p><a href="https://www.oliverlooney.com/blogs/FPL-APIs-Explained"><strong>https://www.oliverlooney.com/blogs/FPL-APIs-Explained</strong></a></p><h4><strong>API Endpoints</strong></h4><p><a href="https://fantasy.premierleague.com/api/bootstrap-static/"><strong>https://fantasy.premierleague.com/api/bootstrap-static/</strong></a></p><p><a href="https://fantasy.premierleague.com/api/event/***%7Bevent_id%7D***/live/"><strong>https://fantasy.premierleague.com/api/event/***{event_id}***/live/</strong></a><strong> </strong>Returns statistics on every football player in FPL for the specified game week, {event_id} is replaced with game week</p><p><a href="https://fantasy.premierleague.com/api/entry/***%7Bmanager_id%7D***/"><strong>https://fantasy.premierleague.com/api/entry/***{manager_id}***/</strong></a><br>Returns a summary of the data on a given manager.</p><p><a href="https://github.com/oladeeayo/FPL-2024-Winner">GitHub - oladeeayo/FPL-2024-Winner: This repo contain the data sheet of the FPL 2024 winner which was collected through FPL API</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf750fbf06ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>