狮佬你好,开发了一个面向 Agent 的 A股投研插件,希望能收录到插件商店。#2
Open
atmyrx wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
你好!提交自研的 A股智能分析插件 GuanLan (观澜) 的完整源码至 Plugin/GuanLan/ 目录下。目录内已包含有效的 plugin-manifest.json 及 config.env.example。
GuanLan 专为 VCPToolBox 生态设计,赋予 AI-Agent 专业级 A股投研分析能力。
插件核心亮点
DataHub 三层双引擎容灾(无单点故障)
采用 新浪财经API(实时行情) -> Tushare HTTP API(基本面) -> AKShare(全量容灾接管) 架构。
每个关键数据函数都有 fallback,自动重新解析数据格式,确保在 A股数据源频繁变更下实现生产级高可用。
生产级工程细节
filelock 跨进程并发安全:@synchronized_data 装饰器+FileLock,彻底杜绝多 Agent 并发调用时的 JSON 读写竞态。
真实 A股费率引擎:内置券商级费率计算(佣金/印花税/过户费自动结算),盈亏复盘精准到分,并支持用户在 config.env 中自定义费率。零硬编码依赖:Token 及敏感信息均通过环境变量注入,提供 .gitignore 及 config.env.example。
38 个专业命令覆盖投研全链路
多维感知:实时行情、技术面(MA/MACD/RSI/布林带/KDJ等)、资金面、舆情情绪(5维度)、事件异动(龙虎榜/大宗/解禁/业绩预告)。
策略回测与压力测试:内置 MA交叉/MACD/RSI/布林带 4种回测策略,以及 2015股灾等 5种历史极端行情压力测试模型。
动态风控:支持 ATR(14) 跟踪止损机制,只上移不下移,自动锁利润。
完善的文档与示例
提供了详细的 README.md,包含与 VNpy/同花顺的竞品对比、9个 Agent 对话实战场景示例,以及与 TradingAgents-CN 深度投研框架的搭配指南。
恳请狮子大佬审核收录,非常感谢!