Skip to content

Crypto Bot that will send real time alerts if a price of a coin is above/below target level. You can also retrieve current prices of coins and their respective charts.

License

Notifications You must be signed in to change notification settings

Banila48/CryptoPriceAlert-Bot-Stable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoPriceAlert-Bot

Originally forked from https://github.com/alighazi/price_alert_bot

Function of Bot

  1. Get current price of Coins with its respective candle chart (various timeframes)
  2. Get alert notification when price of desired coin is above or below your target level

Screenshots

Notifications

List of Followed Coins

Price of Coin

Setting Up

Tutorial

Important Note Uptime: ~24/7 Downtime: ~ 2 Days (sometimes due to high traffic of API)

Rough Steps

  1. Create EC2 Instance using t2-Micro
  2. Generate your putty private file (.ppk) using puttyGen.exe
  3. Connect to your EC2 Instance with putty.exe using ubunutu@IPv4 address
  4. Create an extra screenn session using "screen -S New"
  5. After running your python file, detach the screen using "Ctrl + A + D"
  6. Logout of terminal using "Ctrl + A + D"
  7. To reconnect to your Bot console, use "screen -r {window name that you created before}
  8. Ctrl + C to terminate the bot and update it (remember to git pull/push)

Common Errors

  1. Error: Running py file

python3 -m tg_bot_service (without .py extension)

  1. Error: Importing ParseMode from Telegram

pip install python-telegram-bot --upgrade

  1. Error: KeyError"Coin"

This is due to hitting the Rate Limit of CryptoCompare API.

Add throttle function to before each API function to reduce the frequency of calls. I use this ratelimit library

  1. Error: pip3 module not found

This happens if you terminate your EC2 instance and relaunch a new server. You need to re-setup your ubuntu installation.

sudo apt-get update

sudo apt-get install python3-pip

git clone "github repo"

cd "folder"

pip3 install -r requirements.txt

pip install "any other missing modules"

python3 -m tg_bot_service

Putty Shotcuts

  1. Ctrl + A + D (to detach screen)
  2. screen -list (to see all sessions)
  3. screen -dr SCREENID (to reattached screen)

About

Crypto Bot that will send real time alerts if a price of a coin is above/below target level. You can also retrieve current prices of coins and their respective charts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published