Bitcoin-Price-Notification Project by Desai Khushbu

AttainU
AttainU

Bitcoin-Price-Notification

About :

As we all know, Crypto Currency price is a fickle thing.You never really know where it’s going to be at the end of the day.  So,instead of constantly checking various sites for the latest updates,this python program push crypto currency price notifications at certain time interval and also notify when price reach to a certain value as threshold value provided by user.

Getting Started

Setting up a virtual environment.(To create an isolated environment for Project)

  • pip install virtualenv #install virtual environment
  • cd your_project
  • virtualenv env
  • .\env\Scripts\activate #Activate the virtual environment

 

External Module Installation :

  • pip install argparse (To make it easy to write user-friendly command-line interfaces)
  • pip install requests (To send HTTP requests and get responce from it)

 

Set up command line interface :

optional arguments:

  • -h, --help show this help message and exit
  • -t THRESHOLD, --Threshold THRESHOLD Enter Threshold Price for Emergency Notification
  • -i INTERVAL, --Interval INTERVAL Enter Notification Time Interval in Seconds
  • -c COINTYPE, --CoinType COINTYPE Enter Type of Crypto-Currency
  • -n NOTIFICATION, --notification NOTIFICATION Enter where you want notification: Email or Telegram
  • -e EXCHANGE, --exchange EXCHANGE Enter exchange currency in which you want notification(write only 3 digit e.g. INR)

 

If user didn't give above optional argument then python will consider below default parameter

threshold = 10000, interval = 60, coinType = 'Bitcoin', notification = 'Telegram', exchange = "USD"

Demo :