Ứng dụng AI hỗ trợ phân tích và tư vấn chứng khoán Việt Nam với Telegram bot và web API.
- 🤖 Chat AI: Tư vấn đầu tư thông minh với nhiều AI provider (OpenAI, Anthropic, Google, Mistral...)
- 📊 Phân tích thị trường: Tự động thu thập và tóm tắt thông tin thị trường
- 💬 Telegram Bot: Truy cập dễ dàng qua Telegram
- 🌐 Web API: REST API cho tích hợp ứng dụng
- 📈 Dữ liệu realtime: Kết nối DStock và VietStock
# Clone repository
git clone https://github.com/nguyen-trantrung/stocker.git
cd stocker
# Build và chạy
make build
make run# Cài đặt dependencies
pip install -r requirements.txt
# Chạy server
python -m stocker.cli server --config dev/config.dev.yaml
# Chạy Telegram bot
python -m stocker.cli telegram --config dev/config.dev.yaml
# Chat CLI
python -m stocker.cli chat --config dev/config.dev.yaml "Thị trường hôm nay thế nào?"Copy và chỉnh sửa file config:
chat:
provider: "openai"
name: "gpt-4"
api_key: "sk-..." # hoặc set biến môi trường OPENAI_API_KEY
temperature: 0.2
server:
host: "0.0.0.0"
port: 8080
telegram:
token: "your-bot-token" # hoặc set TELEGRAM_BOT_TOKEN
aggregator:
enabled: true
interval_minutes: 60# AI Providers
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GOOGLE_API_KEY="..."
# Telegram
export TELEGRAM_BOT_TOKEN="..."# Development với Docker
make dev
# Chạy tests
make test
# Shell vào container
make shell