This repository contains all the code used to fetch the data from various DEXes and generate liquidity data for each pairs
To be able to do so without taking too much time, it's a multi step process
- Data fetching
- Data unification
Documentation available here
npm install
- Set the RPC_URL environment variable
export RPC_URL=https://url/
- Start the sushiswapv2 history fetcher (the fastest one)
node ./src/sushiswap.v2/sushiswap.v2.history.fetcher.js
It should run for several minutes the first time and at the end, the process should display
UniswapV2HistoryFetcher: ending
UniswapV2HistoryFetcher: sleeping 24.69 minutes
And you should be able to see the ./data directory filled with data
./data/uniswapv2
./data/precomputed/uniswapv2