A Python bot that tracks cryptocurrency prices in real-time using the CoinGecko API and sends alerts (via Console or Telegram) when a target price is reached.
- Live Data: Fetches real-time prices from CoinGecko (no API key required for basic usage).
- Custom Alerts: Set your own price thresholds for Bitcoin, Ethereum, or any other coin.
- Telegram Integration: Can be easily configured to send push notifications to your phone.
- Clone the repository:
git clone https://github.com/yourusername/crypto-bot.git
- Install dependencies:
pip install -r requirements.txt
- Open
main.py. - Set
CRYPTO_IDto your desired coin (e.g.,bitcoin,ethereum,solana). - Set
TARGET_PRICEfor the alert. - (Optional) Add your Telegram Bot Token and Chat ID to receive real notifications.
- Run the bot:
python main.py
This project uses the free CoinGecko API.