A tool to extract historical Uniswap V3 positions data into a CSV
-
Copy .env.default to .env
cp .env.default .env
-
Replace GRAPH_API_KEY with your graph API key from https://thegraph.com/.
Note: the Uniswap V3 subgraph is free to use, but it seems making queries to it fail if you have no GRT in your Graph account. To get it to work, create an account and add a very small amount of GRT to it. You can do this through Polygon so the fees are nto to bad. -
Install dependencies
You will need to have Node.js and yarn. Once those are installed, runyarn
-
Run script
yarn start <uniswap V3 NFT ID> <output file path>