Allows you to monitor the returns on your coin investments with an alerts via Telegram. Further alert senders can be implemented as well.
Note: Currently this tool is only available for Mac or Linux users.
-
Clone this repo.
-
pip install pycoingecko -
pip install etherscan-python(Go to https://etherscan.io/, sign up and get your API key). -
Create a environment variable called
INITIAL_INVESTMENTS. Each line in this variable should contain the id of the coin you are interested to monitor followed by a single space followed by the initial price you bought this coin for (price per 1 coin).- If you're not sure about the
idof your coin you should check at coingecko's API - i.e.:
curl -X 'GET' 'https://api.coingecko.com/api/v3/coins/list' -H 'accept: application/json' - If you're not sure about the
-
For using telegram:
- Check out this link and get a token.
- Get the
chat_idby writing something in the chat of your new bot and then visithttps://api.telegram.org/bot<YourBOTToken>/getUpdatesand get thechat_idunder the keymesasge['chat']['id'] - Add a configuration environment variable with a
ymlstructure, you can see an example in thetests/data/correct_config.ymlfile. You need to add the bot you implemented with the abstract methods in thebackend/interfacesfolder and it's corresponding API key and chat ID of the Telegram chat you want the messages to be sent to.
The main purpose of this tool is for scheduling a cron-job on an always available instance (i.e., server).
The usage is simple: python cci.py <BOT NAME>.
- Make a library for easy installation
- Add an option for a threshold only above which alerts will be sent to Telegram
- Write more tests
- Make available for Windows users as well
- Use poetry for requirements