Skip to main content

dragon-quant icon

dragon-quant 缅A龙头识别工具

PyPI version Python >= 3.10 License Downloads GitHub stars Stability: scan and review

一款通过多维量化评分识别市场龙头的工具。基于 TMDX 获取股票行情,使用 SQLite 持久化数据,并具备完备的选股与选股回测能力。

目录

稳定性说明

选股与选股回测能力已经稳定,暂时不再迭代。当前重点是搭建模拟账户交易与回测系统,打通盘后复盘、集合竞价和账户交易链路。

功能 状态 预期稳定时间
scan 龙头扫描 稳定 —
review 龙头回测 稳定 —
prep 盘后复盘 快速迭代中 2026 年 12 月初
auction 集合竞价强度判断 快速迭代中 2026 年 12 月初
review-account 账户模拟交易与回测 快速迭代中 2026 年 12 月初
agent-skill 盘前预案复盘回测等 skills 快速迭代中 2026 年 12 月中

龙头扫描

在当日收盘后运行,扫描涨停候选股,通过多维量化评分识别市场龙头:

dragon-quant scan --top 5

龙头扫描示例

龙头回测

这里的回测结果采用宽松口径:入选后首个非一字板交易日按最低价买入,统计后续最多 5 个交易日的最大收益与回撤。

# 回测已到观察期的扫描结果
dragon-quant review

# 打开龙头回测面板
dragon-quant review --ui-only

龙头回测面板

快速使用

要求 Python ≥ 3.10,推荐使用 pipx 安装:

pipx install dragon-quant

# 当日收盘后扫描龙头
dragon-quant scan --top 5

# 回测扫描结果并打开面板
dragon-quant review --ui

只需查看已有回测结果时,运行 dragon-quant review --ui-only。

设计哲学

龙头不是预判出来的,而是根据盘面证据识别出来的。 评分器从带动性、领涨性、抗跌性、流动性和资金承接五个维度评估候选股:四项核心特征设置门槛,资金承接作为补充证据,避免单一高分掩盖明显短板。

模拟交易与回测的目标,是把盘后复盘、集合竞价和账户交易串成可回放、可验证的决策链,用统一的候选池、买卖规则、费用与成交假设检验策略,而不只展示选股收益。

详细设计见评分器规范与模拟交易和回测方案。

目录结构

dragon_quant/
├── commands/        # CLI 命令入口
├── scan/            # 龙头扫描、五维评分与结果持久化
├── review/          # 龙头回测
├── review_account/  # 盘后复盘、集合竞价、模拟账户与交易策略
├── vpa/             # 量价分析
├── infra/           # 行情数据源、SQLite、缓存、因子与资产同步
└── tests/           # 单元、集成与离线 E2E 测试
web_ui/              # 回测与账户可视化面板
assets/              # 图标与 README 截图
docs/                # 模块与开发文档
archived_md/         # 已落地的调研与技术方案

免责声明

本工具仅供学习交流,不提供任何个股买卖建议。评分、回测与模拟交易的所有输出均为技术研究结果,不构成投资建议;据此操作产生的盈亏由使用者自行承担。

欢迎共建

欢迎通过 Issues 分享使用反馈、讨论策略与提出改进,也欢迎提交 PR 参与共建。

License

MIT

Metadata

Release files for dragon-quant 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dragon-quant 0.7.3
File Size Uploaded Provenance Actions
dragon_quant-0.7.3.tar.gz 733.5 kB Without provenance Details for dragon_quant-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dragon-quant 0.7.3
File Interpreter ABI Platform Actions
dragon_quant-0.7.3-py3-none-any.whl Python 3 none any Details for dragon_quant-0.7.3-py3-none-any.whl

Total release size: 1.6 MB

Release files / dragon_quant-0.7.3.tar.gz

Download URL dragon_quant-0.7.3.tar.gz
Size 733.5 kB
Tags Source
SHA-256 checksum
How to use checksums
611902ca3e102aa0f2a11d78e44653a6943261cc53bc9dec57984767c4296be1
BLAKE2b-256 checksum
How to use checksums
0da70507701aa038c09dcf10bfa04e3e4fc40645db75dac7e44bab30673634ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.8

Release files / dragon_quant-0.7.3-py3-none-any.whl

Download URL dragon_quant-0.7.3-py3-none-any.whl
Size 847.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de1cf9f355e17d87ffeb3da4ddacbbab68dd583eb71a4e759a508eb287da75a9
BLAKE2b-256 checksum
How to use checksums
d7ae921bf522050e304c1f85e832642eadc66f41242e5bcfd38c524c3f737cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.8

Security for dragon-quant 0.7.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page