Skip to content

nguyen-trantrung/stocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stocker AI

Ứ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.

✨ Tính năng

  • 🤖 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

🚀 Cài đặt & Chạy

Docker (Khuyến nghị)

# Clone repository
git clone https://github.com/nguyen-trantrung/stocker.git
cd stocker

# Build và chạy
make build
make run

Python Local

# 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?"

⚙️ Cấu hình

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

🔑 Biến môi trường

# AI Providers
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GOOGLE_API_KEY="..."

# Telegram
export TELEGRAM_BOT_TOKEN="..."

🛠️ Phát triển

# Development với Docker
make dev

# Chạy tests
make test

# Shell vào container
make shell

About

Ứng dụng LLM hỗ trợ thông tin chứng khoán Việt Nam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published