Cryptic is a Python-based tracker that monitors the prices of selected cryptocurrencies and stocks. If the price changes exceed a defined threshold or your investments turn profitable, it sends SMS alerts via Twilio.
- Tracks real-time prices of crypto (via CoinGecko) and stocks (via Yahoo Finance)
- Sends SMS alerts if thresholds are exceeded or if you're in profit
- Logs all price data into a
prices.csvfile - Fully containerized with Docker support
- Auto-restarts using
--restart alwaysin Docker - Uses
.envfile to securely store sensitive data
- Python 3.10
- Docker
- Twilio API
- CoinGecko API
- yFinance (Yahoo Finance)
- Pandas, CSV
- dotenv
Cryptic/
├── Dockerfile
├── docker.sh
├── prices.csv
├── requirements.txt
├── readme.md
├── src/
│ ├── main.py
│ ├── alert.py
│ ├── coingecko.py
│ └── stocks.py
└── .env
git clone https://github.com/yourusername/Cryptic.git
cd Cryptic# .env
TWILIO_SID=your_twilio_sid
TWILIO_AUTH_TOKEN=your_twilio_token
TWILIO_FROM=your_twilio_phone_number
TWILIO_TO=your_verified_phone_numberchmod +x docker.sh
./docker.shThis script will:
- Stop and remove any existing
crypticcontainer - Rebuild the image
- Start a new container with:
- Logs mounted to
prices.csv - Twilio credentials loaded from
.env
- Logs mounted to
- Bitcoin
- Ethereum
- Solana
- FXI
- NVDA
- SOXL
- SPY
- XEQT (
XEQT.TOin code)
You'll receive a message like this:
🚨 NVDA is UP 5.42%
Price: $135.21
Profit: +$13.21 CAD (+10.2%)
- Your average book cost per asset
- Your quantity per asset
- Threshold defined in
alert.py(default: 10%) I used 10% because I am looking for a longterm return
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python src/main.py- Set
THRESHOLDinalert.pyto control SMS sensitivity prices.csvis automatically created and appended every 5 minutes- Docker ensures your tracker keeps running with
--restart always
- Web dashboard via Streamlit
- Email alert option #I don't think I will do this one
- Multi-currency support
Zack (BrainChemist)
GitHub
MIT License