An intelligent chatbot that provides real-time cryptocurrency information using natural language processing. Built with Streamlit, NLTK, and the CoinGecko API.
Created with ❤️ by Ngenoh
- Live price tracking
- Market capitalization
- 24-hour price changes
- Historical price data
- Automatic data refresh every 60 seconds
- Intelligent query understanding using NLTK
- Conversational interface with greeting recognition
- Context-aware responses
- Multi-topic query handling
- Energy usage ratings
- Environmental impact scores
- Sustainability analysis
- Green technology adoption metrics
- Latest cryptocurrency news
- Project updates
- Market developments
- Summarized news content
- Bitcoin (BTC)
- Ethereum (ETH)
- Cardano (ADA)
- Clone the repository:
git clone https://github.com/Wizard-hash2/CryptoChatbot.git
cd CryptoChatbot- Create and activate a virtual environment (recommended):
# Windows
python -m venv .venv
.venv\Scripts\activate
# Linux/Mac
python3 -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the application:
streamlit run app.pyThe chatbot understands various types of questions, such as:
- "Hi" or "Hello" - Get a friendly greeting and capabilities list
- "What can you do?" - See all available features
- "Help" - Get assistance with using the bot
- "What's Bitcoin's current price?"
- "Show me Ethereum's market cap"
- "How has Cardano's price changed in the last 24 hours?"
- "Compare the sustainability scores of all cryptocurrencies"
- "Show me Bitcoin's price and latest news"
- "Tell me about Ethereum's market cap and sustainability"
- "What's the energy usage and price of Cardano?"
- Python 3.8+
- Streamlit: For the interactive web interface
- NLTK: Natural Language Processing
- Word tokenization
- Stopword removal
- Text preprocessing
- CoinGecko API: Real-time cryptocurrency data
- Requests: HTTP library for API calls
- Real-time market data: CoinGecko API
- Sustainability scores: Curated database
- Energy usage metrics: Industry research
- News content: CoinGecko API
- Market data refreshes every 60 seconds
- News updates with each query
- Session persistence for chat history
- Cached API responses for better performance
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this project for your own learning and development!
Created and maintained by Ngenoh 🌟
