Skip to content

DEX analyzer

@babalaba@babalaba8 charts

Analysis of Top 5% Trading Accounts for Each DEX

Overview

This SQL query focuses on determining the transaction volumes generated by the top 5% of trading accounts for each decentralized exchange (DEX) and comparing that volume against the total trading volume of the respective DEX. The result showcases how dominant the top 5% of traders are on each platform.

Breakdown:

  1. TotalAccounts CTE:

    • For each DEX, the total number of distinct trading accounts is calculated.
  2. RankedAccounts CTE:

    • For every DEX, each trading account is assigned a rank based on its total trading volume. The account with the highest volume gets rank 1, the next gets rank 2, and so on.
  3. Top5PercentAccounts CTE:

    • Leveraging the ranking from RankedAccounts, this CTE filters to capture only the top 5% of trading accounts for each DEX based on their trading volume.
  4. DexTotalAmount CTE:

    • The total trading volume for each DEX is calculated. This will be used later to determine the percentage contribution of the top 5% traders.
  5. Final Query:

    • For each DEX, the total trading volume generated by the top 5% of traders is aggregated. This value is then compared to the total trading volume of the DEX to determine their percentage contribution. The results are sorted in descending order of this percentage to easily identify which DEX has the highest concentration of trading by its top traders.

DEX analyzer

This dashboard aims to analyze DEX data.๐Ÿ˜Š whale