Skip to main content

Info-Hub: A comprehensive stock analysis and news aggregation platform.

Project description

Info-Hub

Social Preview

info-hub 现在是一个 定制版 uwillberich 交易工作台,核心只做两件事:

  • 交易复盘
  • 转强选股

其余模块保留,但已经降级为证据层或内容层,不再主导交易判断。

当前定位1334

决策顺序固定为:

  1. 市场分类
    • 主线市场 / 独立龙头市场 / 区间/防御市场
  2. 概率情景
    • 基准 / 乐观 / 风险
  3. 时间门纪律
    • 09:00 / 09:25 / 09:30-10:00 / 14:00
  4. 证据补强
    • 问财、新闻、板块、涨停、量价数据

四条铁律:

  • 先定方法论,再调工具
  • 数据为辅,逻辑为主
  • 不因数据好看改变市场判断
  • tool 与 uwillberich 冲突时,信 uwillberich¥¥##¥

核心能力

1. 交易复盘

  • 输入持仓组合,按 uwillberich 输出复盘
  • 输出市场分类、基准/乐观/风险、持仓建议、时间门纪律、可做/避免
  • 支持历史复盘回看
  • 支持本地持仓模板

前端入口:

  • 交易中枢
  • 交易复盘

后端接口:

  • POST /api/review/generate
  • GET /api/review/history
  • GET /api/review/history/{id}

2. 转强作战台

  • 盘前生成主板转强候选池
  • 使用问财筛选 + uwillberich 方法论统一评估
  • 候选分层:buy / watch / avoid
  • 候选综合评分:竞价强度 + 承接 + 消息支撑 + 方法论结论
  • 历史回看
  • 次日验证闭环

前端入口:

  • 交易中枢
  • 转强作战台

后端接口:

  • GET /api/turn-strong
  • POST /api/turn-strong/generate
  • POST /api/turn-strong/refresh
  • GET /api/turn-strong/history
  • GET /api/turn-strong/history/list
  • GET /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_KEY
  • EM_API_KEY
  • IWENCAI_BASE_URL
  • IWENCAI_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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

info_hub-1.0.0-py3-none-any.whl (119.8 kB view details)

Uploaded Python 3

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

Hashes for info_hub-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9c107719a7badfc0bc79a198bcacb8ddefd834f59fd715e6fefb92b8aa6da9d5
MD5 bf4312f0f7f829b8bba50600414b6d3e
BLAKE2b-256 2ecabd5dbefa659584788df64b514c9869e729df111acd08fbbbfb5b22c622bf

See more details on using hashes here.

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

Hashes for info_hub-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe1e85918be8c63611b8db551784a7199b8ce3e74395ad64e4528aa40b0d26d
MD5 b6927c94d87e151abd51c79f96500d33
BLAKE2b-256 3c5c67162db222cd357510bbecabfe422669a704ffe7745284a0a7981f1c43a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page