Script for sending text message alerts on crypto price changes from the past 24 hours based on a threshold.
python
>= 3.6.0requests
Set the following environment variables:
- export
GMAIL_USER
=[email protected] - export
GMAIL_PASS
=RavioliRavioliGiveMeTheFormuoli - export
ALERT_PHONE_NUMBER_EMAIL
=[email protected]- AT&T: [email protected] (SMS) [email protected] (MMS)
- T-Mobile: [email protected] (SMS & MMS)
- Verizon: [email protected] (SMS), [email protected] (MMS)
- Sprint: [email protected] (SMS), [email protected] (MMS)
- XFinity Mobile: [email protected] (SMS), [email protected] (MMS)
- Virgin Mobile: [email protected] (SMS), [email protected] (MMS)
- Tracfone: [email protected] (MMS)
- Metro PCS: [email protected] (SMS & MMS)
- Boost Mobile: [email protected] (SMS), [email protected] (MMS)
- Cricket: [email protected] (SMS), [email protected] (MMS)
- Republic Wireless: [email protected] (SMS)
- Google Fi (Project Fi): [email protected] (SMS & MMS)
- U.S. Cellular: [email protected] (SMS), [email protected] (MMS)
- Ting: [email protected]
- Consumer Cellular: [email protected]
- C-Spire: [email protected]
- Page Plus: [email protected]
Percent threshold is optional
python crypto-alerter.py [percent threshold ?= 7]
or
python3 crypto-alerter.py [percent threshold ?= 7]
or w/e
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
Set strings containing coin names in the COINS_TO_CHECK
list at the top of the script
API / Data Source