Skip to content

Risk-DAO/dex-history-fetcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dex-history-fetcher

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

  1. Data fetching
  2. Data unification

Documentation available here

Run a fetcher

  1. npm install
  2. Set the RPC_URL environment variable

export RPC_URL=https://url/

  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%