This is a Python project for monitoring tether price in sevreal exchanges and sending updates to a Telegram channel.
-
Clone this repository:
git clone https://github.com/Ilia-Abolhasani/tether-exchange-monitor.git cd tether-exchange-monitor
-
Install the required Python packages from the requirements.txt file:
pip install -r requirements.txt
- Create a .env file from the provided .env.template and fill in the necessary information:
# Telegram Bot API Key
bot_api_key = ""
channel_id = ""
To use the Telegram bot for sending updates, follow these steps:
-
Create a Telegram bot using BotFather:
- Visit BotFather on Telegram and follow the instructions to create a new bot.
- Once your bot is created, you will receive a
bot_api_key
. Keep this key for the next steps.
-
Create a private channel on Telegram:
- In Telegram, create a private channel where you want to receive the updates.
-
Add the Telegram bot to the channel as an admin:
- In your private channel, go to the "Members" section and add the Telegram bot you created as an admin. This step is necessary for the bot to send messages to the channel.
-
Find the
channel_id
using the username_to_id_bot:- You can use the username_to_id_bot in Telegram to find the
channel_id
for your private channel. This ID is required in your.env
file to specify the destination channel for updates.
- You can use the username_to_id_bot in Telegram to find the
After setting up the Telegram bot and filling in the .env
file, you can run the project using the following command:
python3 run.py
The project will check tether price every 5 minutes. If any changes occur in the price values, it will send the latest values to the Telegram channel. You can adjust the 5-minute interval by modifying the cron job in app/cron/manager.py based on your requirements.
Feel free to customize and improve the project as needed for your specific use case.
Please be aware that this project involves handling sensitive information and automating actions. It is important to exercise caution and consider the following:
-
Security: Be extremely cautious with your
.env
file, API keys, and sensitive data. Ensure that you do not share this information with others. -
Risk: Using this project to monitor cryptocurrency prices carries inherent risks. Be aware of the potential risks involved and only use it if you fully understand and accept those risks.
-
Financial Responsibility: You are solely responsible for the consequences of using this project, including any financial implications. Make sure you are well-informed and understand the potential outcomes.
-
Legal Compliance: Ensure that using this project complies with the terms of service and regulations of the exchanges and platforms you are accessing.
By using this project, you acknowledge and accept the responsibility for your actions and the potential risks involved. The project author and contributors are not responsible for any consequences that may arise from its use.