Info-Hub: A comprehensive stock analysis and news aggregation platform.
Project description
Info-Hub
info-hub 现在是一个 定制版 uwillberich 交易工作台,核心只做两件事:
交易复盘转强选股
其余模块保留,但已经降级为证据层或内容层,不再主导交易判断。
当前定位1334
决策顺序固定为:
- 市场分类
主线市场 / 独立龙头市场 / 区间/防御市场
- 概率情景
基准 / 乐观 / 风险
- 时间门纪律
09:00 / 09:25 / 09:30-10:00 / 14:00
- 证据补强
- 问财、新闻、板块、涨停、量价数据
四条铁律:
- 先定方法论,再调工具
- 数据为辅,逻辑为主
- 不因数据好看改变市场判断
- tool 与
uwillberich冲突时,信uwillberich¥¥##¥
核心能力
1. 交易复盘
- 输入持仓组合,按
uwillberich输出复盘 - 输出市场分类、
基准/乐观/风险、持仓建议、时间门纪律、可做/避免 - 支持历史复盘回看
- 支持本地持仓模板
前端入口:
交易中枢交易复盘
后端接口:
POST /api/review/generateGET /api/review/historyGET /api/review/history/{id}
2. 转强作战台
- 盘前生成主板转强候选池
- 使用问财筛选 +
uwillberich方法论统一评估 - 候选分层:
buy / watch / avoid - 候选综合评分:竞价强度 + 承接 + 消息支撑 + 方法论结论
- 历史回看
- 次日验证闭环
前端入口:
交易中枢转强作战台
后端接口:
GET /api/turn-strongPOST /api/turn-strong/generatePOST /api/turn-strong/refreshGET /api/turn-strong/historyGET /api/turn-strong/history/listGET /api/turn-strong/validation
技术栈
- 前端:React 19 + Vite + Zustand + framer-motion
- 后端:FastAPI + APScheduler + SQLite + httpx
- LLM:Qwen / DashScope
- 方法论来源:桌面
uwillberich项目
依赖关系
info-hub 直接依赖桌面 uwillberich 项目:
~/Desktop/uwillberich/skill/uwillberich/scripts/~/Desktop/uwillberich/skill/uwillberich/knowledge/~/Desktop/uwillberich/.qwen-env~/.uwillberich/runtime.env
关键环境变量:
DASHSCOPE_API_KEYEM_API_KEYIWENCAI_BASE_URLIWENCAI_API_KEY
启动
后端
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
前端
cd frontend
npm install
npm run dev
默认访问:
- 前端:
http://localhost:5173 - 后端:
http://localhost:8000/api/health
验证
后端测试
cd backend
./.venv/bin/python -m unittest \
tests.test_turn_strong_service \
tests.test_turn_strong_history \
tests.test_turn_strong_validation \
tests.test_quant_market_service \
tests.test_uwillberich_prompts
前端构建
cd frontend
npm run build
目录
info-hub/
├── backend/
│ ├── config.py
│ ├── database.py
│ ├── llm/
│ │ ├── prompts.py
│ │ ├── methodology.py
│ │ └── uwillberich.py
│ ├── routers/
│ │ ├── review_report.py
│ │ ├── turn_strong.py
│ │ └── quant_market.py
│ ├── services/
│ │ ├── turn_strong_service.py
│ │ ├── quant_market_service.py
│ │ └── market_service.py
│ └── tests/
├── frontend/
│ └── src/
│ ├── components/dashboard/TradeDeskPanel.tsx
│ ├── components/review-report/ReviewPanel.tsx
│ ├── components/turn-strong/TurnStrongPanel.tsx
│ ├── components/layout/
│ ├── config/sections.ts
│ ├── hooks/useStreamResponse.ts
│ └── stores/appStore.ts
└── 交接手册.md
当前状态
已经完成:
uwillberich-first后端编排- 双核心前端信息架构
- 复盘历史与模板
- 转强历史与次日验证
- 前端面板懒加载
- 转强高频历史接口短 TTL 缓存
当前已知项:
- 前端主包仍有
500kB+告警,但不影响构建与使用 - 缓存是单进程内存缓存,适合当前本地/单实例场景
- 更多工程化工作应优先做部署和分包,而不是再扩功能面
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
info_hub-1.0.0.tar.gz
(97.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
info_hub-1.0.0-py3-none-any.whl
(119.8 kB
view details)
File details
Details for the file info_hub-1.0.0.tar.gz.
File metadata
- Download URL: info_hub-1.0.0.tar.gz
- Upload date:
- Size: 97.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c107719a7badfc0bc79a198bcacb8ddefd834f59fd715e6fefb92b8aa6da9d5
|
|
| MD5 |
bf4312f0f7f829b8bba50600414b6d3e
|
|
| BLAKE2b-256 |
2ecabd5dbefa659584788df64b514c9869e729df111acd08fbbbfb5b22c622bf
|
File details
Details for the file info_hub-1.0.0-py3-none-any.whl.
File metadata
- Download URL: info_hub-1.0.0-py3-none-any.whl
- Upload date:
- Size: 119.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe1e85918be8c63611b8db551784a7199b8ce3e74395ad64e4528aa40b0d26d
|
|
| MD5 |
b6927c94d87e151abd51c79f96500d33
|
|
| BLAKE2b-256 |
3c5c67162db222cd357510bbecabfe422669a704ffe7745284a0a7981f1c43a9
|