### Summary This pull request adds the source code from https://github.com/XLabs/influx-backfiller to this repository. Also, several changes have been made to the InfluxDB backfiller: * Stop using floats to store/manipulate price data, use decimals or integers instead. * Update the volume metric to be in sync with the rest of the codebase. * Remove duplicated code between the influx backfiller and analytics modules. * Remove a fair amount of unused code |
||
---|---|---|
.. | ||
bin | ||
cmd | ||
coingecko | ||
parser | ||
prices | ||
tokens | ||
.gitignore | ||
Makefile | ||
README.md | ||
common.go | ||
go.mod | ||
go.sum | ||
main.go |
README.md
influx backfiller
Takes CSV file with VAAs as input, and generates a line protocol file for bulk loading into InfluxDB.
Usage
Run the program to generate InfluxDB dump files:
./influx-backfiller metrics vaa-count --input vaas-signed.csv --output vaa-count.csv
./influx-backfiller metrics vaa-volume --input vaas-signed.csv --output vaa-volume.csv
Then load the files into InfluxDB:
influx write --bucket wormhole-explorer --file vaa-count.csv
influx write --bucket wormhole-explorer --file vaa-volume.csv
Historic Prices
The prices file is generated with cmd/symbol_historic
and uses the coingecko api to fetch daily prices for
all supported symbols.
There is a compressed version of the file already generated called prices.csv.gz
.