Skip to content

orderflow playground

@angelfish@angelfish19 charts

Note:

  • The 1inch Fusion and Uniswap X wallet numbers are not representative. They are currently tracking resolver/filler addresses, not actual users.
  • Maestro users, who use the Uniswap V2: Router 02, are separately identified and counted via addresses with fee payment to Maestro address 0xCAC. Uniswap V2: Router 02 volume as shown in this dashboard represents addresses that use Uniswap V2: Router 02 but are not Maestro users.

Coverage

This dashboard is currently missing 1B of the swap volume on Ethereum.

I am working on increasing the coverage of this dashboard. I have ruled out Maverick and Balancer as potential missing pieces because Balancer's frontend redirects to Cowswap, and Maverick's and DODO's volume is primarily originates from aggregators.

Transaction Sanity Checker Takes in specific block and returns top-level trades.

Pairs are added manually to categories after running this query, which finds the top on-chain pairs of the week.

degen: pairs that dex.trades does not recognize

blue-chip: pairs that are in the top 100 tokens by marketcap

long-tail: pairs that dex.trades does recognize, but are not blue-chip

pegged: pairs such as stETH-ETH and USDC-USDT

USD-ETH: pairs such as WETH-USDC and WETH-USDT

I also include the top 2 tokens traded on-chain, to see which protocols are capitalizing on popular on-chain pairs.

Changelog:

July 20, 2023:

  • Upgraded graphs to serve more focused information
  • Added telegram trading bots: Started tracking Maestro separately, who is a top user of the Uniswap V2 Router, and added Unibot's Router to router list
  • Characterize orderflow of different protocols by pairs traded

List of Routers used in above queries and accompanying context and notes.

Notes:

  • I gathered the routers by looking at the top burn contracts in the last 90 days and verified most routers by sending test transactions through their frontends.

Further work:

  • use affiliate address to track 0x API
  • more accurate tracking of telegram trading bots
  • recollapse CTEs to make queries much faster

This dashboard is a series of queries that explores the swap orderflow of popular wallets & dapp frontends.

It considers:

  • tracks weekly market share of volume, # of txs, and unique wallets
  • characterizes orderflow by dominance in different size buckets and token pair types, such as small traders vs whales and blue chip vs long-tail tokens

Approach: This query best effort approximates the orderflow per frontend by tracking transactions that interact with a to address of a list of routers, which you can find at the bottom of this dashboard.

Example: Every transaction is only counted once by the entry point, the service or the site where the user made the swap. This transaction routes through the Metamask Swap Router, and then the 1inch Aggregation Router, but this trade is only counted in as a trade on Metamask.

Credit: Shoutout to 1inch, whose code mine is based on. You can find 1inch's dashboard tracking frontend orderflow here. The primary differences are:

  • Uniswap Router Contracts are explicitly separated to reflect the Uniswap frontend orderflow more accurately, as they only use the Universal Router.
  • Cowswap is special-cased since the from address is the solver, not the user. Instead, the user is derived from the GPV2 Settlement trade event logs.
  • Tracking telegram trading bots Maestro and Unibot
  • Code is refactored into CTEs, making queries slower but easier to read.
  • Additional trade statistics.