In this notebook, we are using the following subgraph:
ENDPOINT = 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2'
- Define private methods for querying
- Query to find all token IDs for $UNI
- Query to find all token IDs for $WETH
- Query to find IDs of all combinations of a pair of tokens
- Query to find recent swaps between the pairs (by their pair IDs)
- Data cleaning and plotting
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
◼️