tickflow-stock-panel

by shy3130Verified

TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力驱使策略定制+个股分析+复盘 | 自由接入第三方数据源与个性化扩展数据 | 个人开源 ,非TickFlow官方项目

3,468
Stars
817
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/shy3130/tickflow-stock-panel

Getting Started

Guides for using skills like tickflow-stock-panel.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

📈 A股智能量化工作台

声明:个人开源

自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台

面向个人散户与量化爱好者而生

License: MIT Python React Data: TickFlow Deploy: Docker GitHub stars


本项目个人开源,数据源插件化,可任意接入第三方数据源。仅供学习研究使用,严禁商业用途。

⚠️ 小白请绕路,本开源项目谨作为本地量化提供解决思路Demo,不作为投资软件或者看盘软件。

明确不做:不对标同花顺 / 通达信,不内置「AI 荐股 / 涨停预测」。

有问题可以邮件415333856@qq.com

觉得有用可以点个 Star


✨ 核心功能

模块一句话详见
🔍 选股引擎18 个内置策略 + 自定义信号 + AI 生成 + 代码迁移,Polars 毫秒级扫全 A 股strategy.md
📊 指标流水线MA/EMA/MACD/RSI/KDJ/布林/量比等,一次扫表落盘 enriched Parquetfeatures.md
🧪 回测研究因子/策略回测 + 财务快照因子(点时口径),T+1/费用/滑点约束,SSE 持久任务features.md
⛏️ 因子挖掘嵌套样本外搜索多因子排名组合,与自有策略对照,候选库显式发布、永不自动上线mining.md
🌡️ 市场环境情绪周期 6 阶段(连板梯队驱动)+ 概念/行业主线排名,与 5 档环境分并存market-phase.md
🚨 异动监控交易所异动规则口径(3/10/30 日偏离值),盘中实时接近度,系统告警与推送接入
📡 监控中心四类监控(策略/个股信号/价格/异动),多条件 AND/OR + 语音播报 + 飞书推送features.md
📈 个股分析9 类关键价位 + AI 四维分析(技术/基本面/财务/消息面)features.md
🏆 连板梯队连板层级统计 + 概念涨幅轮动 + 盘后 AI 复盘 + 炸板/翘板预警features.md
🧰 数据扩展数据源插件化(stock-sdk 示例 + YAML 自定义源),扩展字段配成一级页面同台分析custom-data-source.md
📦 主要页面与功能

📊 行情总览

  • 看板 Dashboard — 市场情绪评分 + 涨跌/成交额榜单 + 概念领涨领跌 + 大盘异动事件流,一日全貌
  • 自选 Watchlist — 自选股池,多分组管理(M:N),表格/卡片双视图,换手/量比/RSI 等实时指标
  • 指数 Indices — 沪深指数浏览与同步

🔍 选股与回测

  • 策略 Screener — Polars 毫秒级扫描全 A 股,18 个内置策略卡片 + 自定义条件
  • 回测 Backtest — 两种模式:
    • 因子回测 — IC/IR、分层收益、多空组合,先筛掉无效指标
    • 策略回测 — 净值曲线、回撤、夏普、胜率,支持 T+1/手续费/滑点/止损,SSE 流式进度
  • 挖掘 Mining — 嵌套样本外因子与策略挖掘:训练区间因子方向重估 + 相关性去重 + 多因子排名组合搜索,自有策略作对照轨;候选入库,显式确认后才发布,永不自动上线

📈 个股与板块分析

  • 个股分析 Stock Analysis (Beta) — 日K + 9 类关键价位 + AI 四维分析(技术/基本面/财务/消息面)
  • 财务分析 Financials — 利润表/资负表/现金流/关键指标 + AI 解读
  • 概念分析 Concept Analysis — ths 概念涨幅轮动矩阵 + 领涨/领跌主线 + 个股穿透
  • 行业分析 Industry Analysis — 行业分层涨幅轮动 + 领涨/领跌主线 + 成分股
  • 市场环境 Regime — 情绪周期 6 阶段(冰点/启动/主升/高潮/退潮/修复,连板梯队驱动,EMA 平滑 + 2 日确认)+ 概念/行业主线排名,与 5 档环境分并存
  • 连板梯队 Limit Up Ladder — 连板层级统计 + 概念/行业分布 + 封单监控(可切换连跌梯队)

🔔 监控与复盘

  • 监控中心 Monitor — 策略/个股信号/价格/异动四类规则,支持自选分组作用域,盘中实时弹窗 + 语音播报(播报个股名称与信号) + 触发记录持久化
  • 异动监控 Abnormal Moves — 按交易所异动规则口径(3日 ±20%/±30%/±40% · 10日 +100% · 30日 +200%)实时计算个股偏离值接近度,盯住异动边缘名单;触发记录 + 站内通知/飞书·企微推送
  • 复盘 Review (Beta) — 盘后 AI 自动生成市场复盘,可定时执行、推送飞书、下载 Markdown

🗄️ 数据与扩展

  • 数据 Data — 本地数据画像与同步状态(维表/日K/除权/Enriched/指数/ETF/分钟K/财务),盘后管道与历史扩展
  • 扩展分析 (动态菜单) — 把任意第三方/扩展数据字段配成一级菜单,与内置数据同台分析
  • 设置 Settings — 数据源与能力检测、AI 接口、实时监控、扩展页面、信号库、菜单与系统设置

📸 界面预览

看板 Dashboard策略 Screener
看板页面策略页
回测 Backtest挖掘 Mining
回测页挖掘页
监控中心 Monitor连板梯队 Limit Ladder
监控中心连板梯队页
概念分析 Concept自选 Watchlist
概念分析自选页

🚀 快速开始

前置依赖:Python ≥ 3.11 · Node ≥ 20 · uv · pnpm(npm i -g pnpm)

方式 A:Dev 模式(二次开发推荐)

cp .env.example .env       # 按需填 TICKFLOW_API_KEY(留空 = None 模式)
./dev.sh                   # Windows: .\dev.ps1

自动检查 / 下载依赖、释放端口、同时起前后端。后端 → http://localhost:3018 · 前端 → http://localhost:3011

方式 B:Docker(部署最省心)

cp .env.example .env
docker compose up --build
# 打开 http://localhost:3018

Docker 镜像内置固定版本的 Codex CLI,Compose 会将主机 ${HOME}/.codex 只读挂载到容器,因此主机需先完成 Codex 登录。若主机 Codex 使用 loopback local-access provider,容器会保留实际端口并自动将主机名映射为 host.docker.internal。需要覆盖镜像内版本时可设置构建参数:

CODEX_CLI_VERSION=0.144.3 docker compose up --build

Windows 用户注意:纯 PowerShell / CMD 下 HOME 环境变量通常未设置,会导致挂载路径解析失败、容器读不到 Codex 登录态。请在 .env 中显式指定主机 Codex 目录:

# PowerShell 示例(实际路径以本机为准)
echo "CODEX_HOME_HOST=C:\Users\你的用户名\.codex" >> .env

Codex CLI 模式允许 TickFlow 容器读取本机 Codex 登录凭据,仅应在受信任的本机环境启用。凭据目录以只读方式挂载,不会写入镜像。

镜像已内置 stock-sdk 数据源插件(Node 运行时 + 依赖),开箱即用。

📖 Docker 进阶、GitHub Actions 自构建、老 CPU 兼容、访问密码设置等见 docs/deployment.md

跑起来后的第一次使用

  1. 设置 → 凭据与能力 → 点 重新检测,确认档位标签
  2. 设置立即跑盘后管道:拉日 K + 计算 enriched 表(None / Free 走 free-api,当日数据盘后 1-2 小时可用)
  3. 自选页加标的 → 选股页点策略卡片扫描 / 配自定义信号
  4. 回测页选策略 + 区间 → 看净值 / 夏普 / 交易明细(SSE 实时进度)
  5. 监控中心配规则,盘中实时弹窗 + 持久化记录

⚙️ 配置

所有配置从根目录 .env 读取(复制 .env.example 开始),也可在面板 设置 页修改。最常用的三项:

TICKFLOW_API_KEY=              # 留空 = None 模式(历史日K免费);填 Key 解锁更多
AI_API_KEY=                    # 留空 = 关闭 AI;填 Key 启用策略生成
PORT=3018                      # 服务端口

📖 完整配置项(数据源档位、AI、服务、密码、老 CPU 兼容)见 docs/configuration.md


🏗️ 技术栈

选型
后端FastAPI · Pydantic v2 · APScheduler · sse-starlette
数据Polars(计算)· DuckDB(查询)· Parquet(存储)
回测vectorbt(全项目唯一 pandas 边界)
数据源TickFlow 官方 SDK · 插件化扩展(stock-sdk 示例插件 · YAML 自定义源)
AI(可选)OpenAI 兼容接口(DeepSeek / 通义 / Ollama 等)
前端React 18 · Vite · TypeScript · Tailwind · Tanstack Query · Lightweight Charts · ECharts · dnd-kit
部署Docker 两阶段构建,前端 dist 拷进后端镜像,单容器

🗺️ 路线图

Phase内容状态
0-1仓库骨架 · FastAPI 壳 · 能力探测 · K 线同步与分析页
2-3Polars enriched 流水线 · Screener · vectorbt 回测(T+1/手续费/止损)
4-5监控引擎 · 四类监控规则 · 实时 SSE 推送 · 持久化记录
6个股分析(专用日 K + 9 类关键价位 + AI 四维分析)
v0.2因子挖掘全链路 · 市场阶段与主线识别 · 异动监控 · 数据源插件化
v2Webhook 推送· 板块异动 · 早晚报 · 更多扩展🚧

📚 完整文档

文档内容
docs/deployment.md部署方式(Dev / Docker / GH Actions)、老 CPU 兼容、更新代码、访问密码
docs/configuration.md所有 .env 配置项详解(数据源、AI、服务、密码、数据目录)
docs/features.md各功能模块详细说明(选股/指标/回测/监控/个股分析/数据扩展)
docs/custom-data-source.md自定义数据源接入、YAML 配置与 mock 联调示例
docs/strategy.md策略体系(18 内置策略 + 三种扩展方式 + 文件结构)
docs/mining.md因子与策略挖掘口径、防泄漏、任务隔离和发布边界
docs/market-phase.md市场情绪周期 6 阶段与概念/行业主线识别的口径与设计
docs/plugin-development.md数据源插件开发规范(以 stock-sdk 为参考实现)
docs/secondary-development.md代码二次开发、前端插槽、后端策略接口与 AI 开发模板
backend/app/strategy/prompts/strategy-guide.md策略开发完整规范(AI 生成与手写)

fork同时请点个star哦,欢迎 Issue 和 PR。


💬 交流群

欢迎加入交流群,讨论交流。

交流群二维码

⚠️ 免责声明

本项目仅供学习与量化研究,不构成任何投资建议。回测结果不代表未来收益。A 股有风险,入市需谨慎。数据准确性以数据源 TickFlow 官方为准。

📄 License

MIT © tick-stock-panel contributors

本项目依赖 TickFlow 提供数据服务,使用前请遵守其服务条款

数据源插件 stock-sdk 遵循其各自的 ISC 协议。

社区

本开源项目已链接并认可 LINUX DO 社区

本开源项目由 智谱 GLM 大模型 辅助构建,感谢 智谱 AI 开放平台 提供支持。

Frequently Asked Questions

What is tickflow-stock-panel?

tickflow-stock-panel is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shy3130. TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力驱使策略定制+个股分析+复盘 | 自由接入第三方数据源与个性化扩展数据 | 个人开源 ,非TickFlow官方项目. It has 3,468 GitHub stars.

Is tickflow-stock-panel safe to use?

Yes. tickflow-stock-panel passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install tickflow-stock-panel?

Clone the repository with "git clone https://github.com/shy3130/tickflow-stock-panel" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is tickflow-stock-panel written in?

tickflow-stock-panel is primarily written in Python. It is open-source under shy3130 on GitHub, so you can review or fork the full source.

Are there alternatives to tickflow-stock-panel?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh tickflow-stock-panel against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details