个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证AI-powered trading advisor for semiconductor and tech stocks with DeepSeek sentiment analysis
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗AI-powered trading advisor for semiconductor and tech stocks. Uses DeepSeek API to analyze news sentiment and supply chain cascades, sending buy/sell/hold alerts to your Android phone via Telegram.
News → Prefilter (VADER) → DeepSeek API → Signal Scorer → Telegram Alert
│ │
└── Supply Chain Graph ←──────┘
(cascade effects)
# 1. Clone the repo
git clone https://github.com/Sinnup/trading-expert.git
cd trading-expert
# 2. Configure environment
cp .env.example .env
# Edit .env with your API keys:
# DEEPSEEK_API_KEY=sk-...
# TELEGRAM_BOT_TOKEN=...
# TELEGRAM_CHAT_ID=...
# NEWSAPI_KEY=...
# GNEWS_API_KEY=...
# 3. Install dependencies
uv sync
# 4. Start the system
docker compose up -d
# 5. Verify
uv run trading-agent --help
uv run trading-agent analyze --ticker NVDA # Analyze one ticker
uv run trading-agent watch # Start intraday monitoring
uv run trading-agent daily # Run daily summary
uv run trading-agent signals --ticker NVDA # Recent signals
uv run trading-agent portfolio # Paper trading P&L
uv run trading-agent backtest # Signal accuracy stats
Once the bot is running, message it on Telegram:
/status — Current signal summary/signals NVDA — Last 5 NVIDIA signals/portfolio — Paper trading P&L/mute 4h — Snooze alerts/unmute — Resume alerts/threshold 0.8 — Set minimum alert score/help — Show all commandsNVDA, AMD, INTC, AVGO, QCOM, MRVL, MU, TXN, ADI, ON, MCHP
ASML, AMAT, LRCX, KLAC
TSM, SMIC, 688981.SS (Hua Hong)
005930.KS (Samsung), 000660.KS (SK Hynix)
AAPL, MSFT, GOOGL, AMZN, META
2454.TW (MediaTek), ARM, IFNNY (Infineon), STM
trading-expert/
├── pyproject.toml # uv project config
├── Dockerfile # Multi-stage Docker build
├── docker-compose.yml # redis, worker, beat, app
├── .env.example # API key template
├── config/
│ ├── settings.yaml # Global settings
│ ├── companies.yaml # Ticker universe + supply chain
│ └── thresholds.yaml # Alert thresholds + keywords
├── trading_expert/
│ ├── cli.py # Click CLI
│ ├── fetchers/ # News + price data ingestion
│ ├── analysis/ # Prefilter, DeepSeek, signals, cascade
│ ├── models/ # SQLAlchemy ORM (5 tables)
│ ├── notifications/ # Telegram bot + formatter
│ ├── portfolio/ # Paper trading + backtesting
│ └── tasks/ # Celery async tasks
├── tests/ # Unit tests (43 passing)
├── IP plans/ # Architecture docs
├── .claude/agents/ # Agent role definitions
└── FEATURE_MANAGER.md # Backlog + changelog
5 tables in SQLite (auto-migrates to PostgreSQL):
| Table | Purpose |
|---|---|
articles | Every fetched news article with sentiment scores |
signals | Buy/sell/hold signals per ticker |
signal_outcomes | Accuracy tracking at 7/30/90 days |
paper_trades | Virtual buy/sell execution records |
portfolio_snapshots | Daily portfolio value snapshots |
| Process | Frequency | What it does |
|---|---|---|
| Intraday fetch | Every 15 min (market hours) | Fetch news → filter → analyze → alert |
| Daily summary | 4:30 PM ET (market close) | Aggregate day's signals, send Telegram report |
| Outcome check | Daily at 6:00 AM | Check past signals for accuracy (7/30/90d) |
| Portfolio snapshot | Manual or via daily task | Save portfolio value for performance tracking |
docker compose up -d
# 1. Clone repo + copy .env
# 2. Update DATABASE_URL in .env to PostgreSQL if using cloud DB
# 3. docker compose up -d
# Identical operation — no code changes needed.
# Start Redis manually, then:
celery -A trading_expert.tasks.celery_app worker --loglevel=info &
celery -A trading_expert.tasks.celery_app beat --loglevel=info &
uv sync # Install all deps
uv run pytest # Run all tests (43 tests)
uv run trading-agent --help # CLI help
See .claude/agents/ for role-specific instructions used during development:
architect.md — System architecture decisionsdeveloper.md — Coding standards and patternsqa.md — Testing strategyversioning-expert.md — Git workflow and commit conventionsdevops.md — Docker, deployment, environmentsecurity-reviewer.md — Secrets, dependencies, code securityFollows Conventional Commits:
feat(analysis): implement DeepSeek signal analysis
fix(fetchers): handle RSS timeout gracefully
docs(readme): add deployment instructions