Skip to content

Script for sending text message alerts on crypto price changes from the past 24 hours based on a threshold

License

Notifications You must be signed in to change notification settings

chrisdruta/crypto-alerter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto-trade-alerter

Script for sending text message alerts on crypto price changes from the past 24 hours based on a threshold.

dolan plz

Requirements

requirements.txt

  • python >= 3.6.0
  • requests

Environment variables

Set the following environment variables:

Usage

Percent threshold is optional

python crypto-alerter.py [percent threshold ?= 7] or

python3 crypto-alerter.py [percent threshold ?= 7] or w/e

Crontab example

Calls the script every 6 hours with the proper secret environment

0 */6 * * * . ~/.env && python3 ~/code/crypto-alerter/crypto-alerter.py > /dev/null 2>&1

Setting desired crypto alerts

Set strings containing coin names in the COINS_TO_CHECK list at the top of the script

Thanks

API / Data Source

coin gecko

About

Script for sending text message alerts on crypto price changes from the past 24 hours based on a threshold

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages