MCPcopy Index your code
hub / github.com/DR-lin-eng/stock-scanner

github.com/DR-lin-eng/stock-scanner @2.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.6 ↗ · + Follow
379 symbols 1,059 edges 12 files 290 documented · 77%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

股票分析系统 (Stock Analysis System)

提要

stock_analyzer.py是gui界面分析a股的关键文件,在21-22行中记得填入apiurl防止无法使用ai分析(1.0版本需要。新版本参考config,json配置)

更新2.0版本 现在支持,25项财务指标,综合新闻分析,高级情绪分析等全部数据获取。兼容openai格式,支持更多的模型。(但是本版本由于获取数据量大,会导致分析时间比较的长。根据服务器网络情况不同,可能1-5分钟)

我将可以给大家提供示例网页(直接上2.5版本,针对web端优化)。(模型使用"deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",能力不是很强,应该够用)

请我喝奶茶:https://juanzen.linzefeng.top/

特殊情况

这种情况下为正常 image

以下readme可能已经过时,等我有空整理,仅供参考。

项目简介 (Project Overview)

这是一个专业的A股股票分析系统,提供全面的技术指标分析和投资建议。系统包括三个主要组件: - 单股票分析GUI - 批量股票扫描器 - 高级技术指标分析引擎

This is a professional A-share stock analysis system that provides comprehensive technical indicator analysis and investment recommendations. The system includes three main components: - Single Stock Analysis GUI - Batch Stock Scanner - Advanced Technical Indicator Analysis Engine

功能特点 (Key Features)

单股票分析 (Single Stock Analysis)

  • 实时计算多种技术指标
  • 生成详细的股票分析报告
  • 提供投资建议
  • 支持单股和批量分析

全市场扫描 (Market-Wide Scanning)

  • 扫描全部A股股票
  • 根据多维度技术指标进行评分
  • 筛选高潜力股票
  • 按价格区间生成分析报告

技术指标 (Technical Indicators)

  • 移动平均线 (Moving Average)
  • RSI (Relative Strength Index)
  • MACD (Moving Average Convergence Divergence)
  • 布林带 (Bollinger Bands)
  • 能量潮指标 (OBV)
  • 随机指标 (Stochastic Oscillator)
  • 平均真实波动范围 (ATR)

系统依赖 (System Dependencies)

  • Python 3.8+
  • PyQt6
  • Pandas
  • NumPy
  • AkShare
  • Markdown2

快速开始 (Quick Start)

安装依赖 (Install Dependencies)

pip install -r requirements.txt

运行应用 (Run Application)

单股票分析GUI

python gui2.py

全市场股票扫描

python 全部股票分析推荐1.py

配置 (Configuration)

  • .env 文件中配置 Gemini API 密钥
  • 可在 stock_analyzer.py 中调整技术指标参数

输出 (Outputs)

分析结果将保存在 scanner 目录下: - price_XX_YY.txt:按价格区间的详细分析 - summary.txt:市场扫描汇总报告

注意事项 (Notes)

  • 股票分析仅供参考,不构成投资建议
  • 使用前请确保网络连接正常
  • 建议在实盘前充分测试

贡献 (Contributing)

欢迎提交 issues 和 pull requests!

许可证 (License)

MIT License

Copyright (c) 2024 [linzefeng]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

免责声明 (Disclaimer)

本系统仅用于学习和研究目的,投资有风险,入市需谨慎。

特别鸣谢

image yxvm NodeSupport赞助了本项目

👨‍💻 Author

Created by [linzefeng]

Core symbols most depended-on inside this repo

emit
called by 39
2.0 win app/gui2.py
append_streaming_text
called by 32
2.0 win app/gui2.py
send_log
called by 18
2.6 webapp(流式传输测试版)/flask_web_server.py
send_to_client
called by 10
2.6 webapp(流式传输测试版)/flask_web_server.py
send_progress
called by 10
2.6 webapp(流式传输测试版)/flask_web_server.py
clean_data_for_json
called by 7
2.6 webapp(流式传输测试版)/flask_web_server.py
analyze_stock
called by 6
1.0/stock_analyzer.py
check_auth_config
called by 5
2.5 webapp/flask_web_server.py

Shape

Method 265
Function 59
Class 33
Route 22

Languages

Python100%

Modules by API surface

2.0 win app/gui2.py57 symbols
2.6 webapp(流式传输测试版)/flask_web_server.py54 symbols
2.6 webapp(流式传输测试版)/web_stock_analyzer.py44 symbols
2.5 webapp/web_stock_analyzer.py41 symbols
2.0 win app/stock_analyzer.py40 symbols
1.0/gui2.py31 symbols
全部股票分析推荐1.py29 symbols
2.5 webapp/flask_web_server.py27 symbols
2.0 win app/配置文件编辑器.py20 symbols
1.0/gui.py16 symbols
1.0/stock_analyzer.py14 symbols
1.0/web_app.py6 symbols

For agents

$ claude mcp add stock-scanner \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page