Radix Telegram Bot
- Install Python 3.x and make sure it's in PATH.
- Register an Infura API account and create a new Ethereum Project.
- Set up a Telegram Bot and obtain the bot API token.
- Install project dependencies
python -m pip install -r requirements.txt
. - Create a file called
infura.json
with your Infura Project ID (seeinfura.example.json
). - Create
RadBotToken.json
with your Telegram Bot token (seeRadBotToken.example.json
). - Run
python rewards.py
- this will prefetch the historical data into filestake.h5
. - Run the Bot!
python RadBot.py
.
-
HDF5 does not cleanup deleted data from the file automatically (see here). You need to compact it manually
ptrepack --chunkshape=auto --propindexes --complevel=0 --complib=blosc stake.h5 stake_new.h5
and then
mv -f stake_new.h5 stake.h5
-
myRadixPortfolio.py can be run standalone against a CSV file containing your own addresses