20 Commits

Author SHA1 Message Date
zhulinsen
ae19329d66 fix: stabilize watchlist details and workspace state (#2126) 2026-08-05 22:45:12 +08:00
Alfred
4c678850e2 feat: add Claude Code and OpenCode generation backends (#1850)
Co-authored-by: zhulinsen <42829555+ZhuLinsen@users.noreply.github.com>
2026-06-30 22:33:02 +08:00
Alfred
4fa81a421c feat: add legacy LLM usage telemetry (#1698) 2026-06-17 18:46:01 +08:00
DragonL641
51e7337882 feat: add Finnhub & AlphaVantage US market data source adapters (#1313)
* feat: add Finnhub and AlphaVantage API key config fields

* feat: add FinnhubFetcher for US market OHLCV and realtime quotes

* feat: add AlphaVantageFetcher for US market OHLCV and realtime quotes

* feat: register FinnhubFetcher and AlphaVantageFetcher in DataFetcherManager

* fix: address PR review feedback on US fetcher routing and AlphaVantage pct_chg

- Fix AlphaVantage pct_chg calculation: sort by date ascending before
  computing percentage change to handle newest-first API response
- Extend US daily routing source_order to include FinnhubFetcher and
  AlphaVantageFetcher in the failover chain
- Add newest-first pct_chg regression test for AlphaVantage
- Add US routing fallback order test
- Update CHANGELOG.md with new feature and fix entries
- Add docs/specs/ to .gitignore to prevent accidental commits

Verified: 1956 tests passed, ci_gate.sh clean

* fix: address third round PR review - routing gaps, index isolation, CHANGELOG cleanup

- Isolate US index routing: YFinance-first, skip Finnhub/AlphaVantage for index codes
- Add Finnhub/AlphaVantage to US realtime_quote and get_stock_name routing
- Clean CHANGELOG.md: only our 3 Finnhub/AlphaVantage entries in [Unreleased]
2026-05-17 21:24:34 +08:00
mumu
629335852e docs: Clean root helper files (#1203)
* chore: clean root helper files

* fix: forward quick smoke args
2026-05-06 18:44:39 +08:00
mumu
695365b3d8 feat: add Anspire Open LLM support (#1193)
* feat: add Anspire Open LLM support
2026-05-04 23:53:22 +08:00
mumu
b06c098a7c chore: harden ai governance assets (#738) 2026-03-17 23:23:31 +08:00
LouisHong
028e57e3f9 #602[PR 1]: 数据源韧性增强与代码清理 (#609)
* feat: enhance yfinance fetcher with Stooq fallback and stock mapping

- Implement _get_us_stock_quote_from_stooq for US stock data resilience
- Add stock_mapping.py for common stock code-to-name conversion
- Add unit test for Stooq fallback logic
- Part of #1

* feat: expand STOCK_NAME_MAP with major A-share stocks

* refactor: decouple stock_mapping from yfinance_fetcher (optional import)

* fix: correct Stooq fallback prev close and lint

* fix: data fetcher improvements and gitignore updates

- Prefer static stock name mapping for prefetch
- Fix gitignore to track src/data
- Document Stooq fallback prev close behavior in CHANGELOG

This combines the last three commits while excluding README.md changes.
2026-03-12 20:43:27 +08:00
Krane
50b75b6db5 Feature/WebUI 增加配置页面,可在页面修改配置内容 (#285)
* feat: setting-page

* fix: 调整配置分类排序

* fix: 调整配置分类排序

* fix: 修改页面文案

* fix: 未配置的选项显示空输入框

* fix: 优化默认配置项,多参数配置

* fix: 配置依赖管理

* fix: 配置依赖管理,全局单例模式

* fix: 数据更新错误问题

* fix: 空值校验

* fix: 默认展示CUSTOM_WEBHOOK_URLS配置
2026-02-10 22:58:10 +08:00
[ZE]
dbe1cd7cae feat(backtest): add backtest engine with evaluation pipeline and WebUI (#269)
Add a complete backtest/evaluation system that measures the accuracy of
AI-generated stock analysis recommendations against actual market outcomes.

Backend:
- Backtest engine (src/core/backtest_engine.py) with direction inference,
  stop-loss/take-profit simulation, and outcome classification (win/loss/neutral)
- Repository layer (src/repositories/backtest_repo.py) with SQLite persistence
  for backtest_results and backtest_summaries tables
- Service layer (src/services/backtest_service.py) orchestrating evaluation runs
  with configurable window days, neutral band, and min-age filters
- REST API endpoints: POST /run, GET /results, GET /performance, GET /performance/{code}
- Pydantic schemas for request/response validation

Frontend (apps/dsa-web):
- New Backtest page with performance dashboard sidebar showing direction
  accuracy, win rate, simulated returns, SL/TP trigger rates, and W/L/N counts
- Paginated results table with outcome badges, direction indicators, and
  color-coded return percentages
- Stock code filter and one-click "Run Backtest" trigger
- Full TypeScript types and API client matching backend schemas

Direction mapping fix:
- "Wait/observe" (观望) advice now maps to direction_expected="down" instead
  of "flat", correctly reflecting that "wait" means "stay out due to downside
  risk" rather than predicting a flat market

Tests:
- 21 unit tests covering engine logic, service orchestration, and summary
  aggregation (all passing)

Docs:
- Updated README, full-guide, and translations with backtest feature docs
2026-02-08 14:49:50 +08:00
Johnson
981fdd7310 chore: 更新.gitignore添加忽略.static目录规则 (#263)
* chore: 更新.gitignore添加忽略.static目录规则

Add .static directory to .gitignore.

* chore: 更新.gitignore添加忽略static目录规则
2026-02-06 20:23:08 +08:00
zhulinsen
6c6eaf8c6a fix: Tushare priority and realtime quote support (fixed #185)
- Upgrade Tushare priority to -1 when token configured
  - Implement realtime quote with Pro/legacy API fallback
  - Load .env earlier for proper proxy setup
  - Remove unreliable north-bound capital from market analyzer
  - Add ETF test scenario, extend stale issue timer (3d -> 7d)
2026-01-31 16:10:41 +08:00
adminlove520
12a9e41672 fix: update .gitignore file 2026-01-25 20:38:11 +08:00
adminlove520
6f76df436a refactor(discord-bot): 优化Discord机器人代码结构和功能\n\n1. 封装命令处理逻辑,实现统一的错误管理\n2. 优化异步任务处理,添加超时支持\n3. 增强错误处理和日志记录\n4. 优化配置管理,添加Discord相关配置项\n5. 改进用户体验,添加操作状态提示\n6. 添加.trae/目录到.gitignore 2026-01-23 14:30:14 +08:00
zhulinsen
e88d2248fe docs: 精简 README,新增完整配置指南
feat: 修复 HK 股票代码识别 & 增强稳定性

- README 精简至 236 行,高级配置移至 docs/full-guide.md
- 修复 HK 股票代码识别(支持 hk1810 等 1-5 位格式)
- AkShare API 调用添加重试机制和失败缓存 (#62)
- 钉钉 Webhook 支持 20KB 限制分块发送 (#61)

Closes #61, #62
2026-01-17 17:36:08 +08:00
Developer
f652638044 feat: 添加 efinance 数据源支持(最高优先级)
- 新增 EfinanceFetcher 数据获取器(Priority 0)
- 数据源:https://github.com/Micro-sheep/efinance
- 支持股票历史K线、ETF数据、实时行情、基本信息等
- 更新 DataFetcherManager 默认数据源顺序
- 添加 efinance>=0.5.5 依赖

数据源优先级顺序:
0. EfinanceFetcher (efinance)
1. AkshareFetcher (akshare)
2. TushareFetcher (tushare)
3. BaostockFetcher (baostock)
4. YfinanceFetcher (yfinance)
2026-01-16 16:26:54 +00:00
zhulinsen
48ca4ee742 chore: block env files and require version check in bug reports
- Expand .gitignore to block all *.env files (prevents accidental credential leaks like #57)
- Update bug_report.md template to require version confirmation before submitting issues
2026-01-16 22:09:29 +08:00
zhulinsen
9fcb5a8df1 feat: 添加自动关闭过期内容和改进 AI 审查调试 2026-01-14 20:40:17 +08:00
zhulinsen
3ba7342c3e update readme and reduce the use of emojis 2026-01-10 16:01:21 +08:00
zhulinsen
4a003c94ea Initial commit: A股智能分析系统 2026-01-10 15:38:56 +08:00