The goal of this project is analyze Uniswap V2 and SushiSwap AMM pools using on-chain data and recommend 10 pools that are expected to have the best risk-adjusted return for a relatively passive investment strategy.
data/uni_v2_sushi_pools.csv
has a list of most known pools. This can be considered a definitive list for this project- only analyze pools where ETH (WETH) are one of the tokens
- use primarily on-chain data. If you have other data sources feel fee to use them, but the project needs to be runnable without additional creds
- historical total return
- historical fee return
- historical volume/turnover/TVL/etc
- token price volatility
- A table with stats/metrics used to identify the target pools
- A summary table with the selected pools
- A write-up explaining why the pools were selected (can be brief 1-2 paragraphs)
- [Optional] Other stats/metrics you would look at with more time
The project requires an eth node provider for data collection. A public Alchemy URL is in the example.py
file, but is likely to be rate limited. We recommend getting your own key and adding it to the .env file as PROVIDER_URL
.
The project uses Poetry as its dependency manager. Below are the steps to get started:
- install Poetry
- run
poetry install
in the root of the project - run
poetry run example
(it may be rate limited if you did not add a PROVIDER_URL)