A professional-grade Python automation pipeline that integrates real-time financial market data with Google Gemini AI for deep sentiment analysis and automated Telegram alerting.
- Automated Data Ingestion: Fetches live price data via REST APIs (Binance).
- AI-Driven Research: Leverages the Gemini-Pro model to transform raw data into human-readable market sentiment.
- Enterprise Logging: Built-in Python
loggingmodule to track script heartbeats and performance. - Error Resilience: Implements
try-exceptblocks to handle API timeouts or network failures gracefully. - Cloud Optimized: Designed for headless deployment on Google Cloud Compute Engine (GCP) or any Linux VPS using
cron.
- Language: Python 3.10+
- LLM Engine: Google Generative AI (Gemini)
- Networking: Requests (REST API)
- Security:
python-dotenvfor environment variable isolation.
- Python 3.x installed.
- Telegram Bot Token & Chat ID.
- Google Gemini API Key.
Clone the repository and install dependencies:
sudo apt update && sudo apt install python3 python3-pip git -y
git clone https://github.com/anonymousblessed21/Finpulse-AI.git
cd Finpulse-AI
pip3 install -r requirements.txt
python3 main.pyThis project uses .env files to ensure that all sensitive credentials (API keys, Tokens) are kept out of the source code. The .gitignore is pre-configured to prevent accidental exposure of these secrets.