A web application that monitors cryptocurrency prices and sends phone call alerts when target prices are reached using Twilio.
- Real-time cryptocurrency price monitoring
- Support for multiple popular cryptocurrencies (BTC, ETH, XRP, etc.)
- Customizable price alerts (above/below target price)
- Phone call notifications via Twilio
- User-friendly web interface
- Python 3.8 or higher
- Twilio account with:
- Account SID
- Auth Token
- Phone Number
- Studio Flow SID
- Clone the repository:
git clone [your-repo-url]
cd Crypto-Price-Alert-Bot- Install required dependencies:
pip install -r requirements.txt- Create a
.envfile based on.env.example:
cp .env.example .env- Configure your
.envfile with your Twilio credentials:
ACCOUNT_SID=your_account_sid
AUTH_TOKEN=your_auth_token
TWILIO_PHONE_NUMBER=your_twilio_phone
STUDIO_FLOW_SID=your_studio_flow_sid
Start the server using uvicorn:
uvicorn asgi:asgi_app --host 0.0.0.0 --port 8000Access the web interface at: http://localhost:8000
- Select a cryptocurrency from the dropdown menu
- Enter your target price in USD
- Choose whether to alert when price goes above or below target
- Enter your phone number (in international format: +1234567890)
- Set the price check interval (in seconds)
- Click "Start Price Alert Bot" to begin monitoring
POST /api/start-monitor: Start price monitoringPOST /api/stop-monitor/<monitor_id>: Stop price monitoringGET /api/status/<monitor_id>: Get monitor statusPOST /api/make-test-call: Make a test call
- Backend: Flask/ASGI
- Frontend: HTML, CSS, JavaScript
- Price Data: CoinGecko API
- Notifications: Twilio API
- Keep your
.envfile secure and never commit it to version control - Use environment variables for sensitive credentials in production
- Implement rate limiting and authentication for production use