FQGate-agent README

The project's README from github.com/fqgate/FQGate-agent. As one markdown file: README.md.

FQGate 品牌标识

FQGate Agent

面向多种 AI 软件的开源 FQGate 接入层
让 AI 使用本机 A 股行情、K 线、资讯与 Level-2 数据

CI Agent Release AGPL-3.0-only Gitee 国内镜像

FQGate 本地金融 AI Gateway

FQGate Agent 是 FQGate 的开源 AI 接入项目,维护 Codex 与 Claude Code 插件入口、四个证券研究 Skill 和 MCP Apps 界面源码。WorkBuddy、ZCode、OpenClaw、DeepSeek Harness、豆包和千问通过 FQGate 主程序的“AI 接入”页面按各自支持条件接入。

面向 AI 智能体的金融行情数据 MCP 终端

项目入口

项目 用途 GitHub 国内镜像
FQGate Agent 插件、Skill、MCP Apps 源码与 FQGate 正式包 fqgate/FQGate-agent Gitee 源码镜像
FQGate 组织 项目主页与后续开源项目 github.com/fqgate —

更名说明: 曾用名 tonghuasun-codex、tonghuasun-agent,现已更名为 fqgate-agent。

Agent 插件入口、Skill 和 MCP Apps 界面源码均免费开源,不设订阅、会员、试用额度或付费解锁。FQGate 主程序作为本机行情网关单独提供编译包,并适用安装包内的许可。

当前 Agent 插件版本为 1.0.0,最低需要 FQGate 2.0.0。FQGate Agent 不提供个人资产、持仓查询、证券买卖、撤单或资金操作。支持自选股管理的数据来源可以查询和修改关注列表,但这不属于证券交易。

为什么是 FQGate

支持 MCP Apps 的 AI 软件可以方便地显示 K 线、证券行情、资讯和 Level-2 成交信息。能否显示相应内容,取决于连接状态、账号权限和数据来源。

一句话安装

将下面这句话完整发送给你正在使用的 AI 助手:

请按照 FQGate Agent 仓库说明完成安装和接入:https://github.com/fqgate/FQGate-agent 。先阅读根目录 README;如果电脑上已有 FQGate 0.x 或 1.x,再阅读 docs/升级到-2.x.md。根据操作系统和处理器从 FQGate Agent Releases 选择正式包;Windows 只使用包含完整应用目录的 windows-x64.zip。下载后核对同名 SHA-256 文件,启动 FQGate,在“行情数据”中确认连接可用,再通过“AI 接入”配置当前 AI 软件。最后重新打开 AI 会话,确认名为 fqgate 的 MCP 连接能够返回工具列表并查询一只明确证券的当前行情。任何步骤失败都要说明失败位置和原始错误,不要把仅下载、解压或写入配置表述为安装成功。

安装流程应完整覆盖:读取说明、选择匹配系统的正式版本、核对安装包、启动 FQGate、确认数据连接、配置当前 AI 软件,以及使用真实行情查询验证 fqgate 连接。

FQGate 主程序下载

下载时应按操作系统和处理器选择安装包,并使用同名 .sha256 文件核对完整性。不要下载 GitHub 自动生成的 Source code 压缩包。

Windows

下载文件名包含 windows-x64.zip 的正式包,完整解压到固定文件夹,再运行其中的 FQGate.exe。

macOS

Apple 芯片选择 macos-arm64.zip,Intel 芯片选择 macos-x86_64.zip。解压后将 FQGate.app 移到“应用程序”。

已经安装 FQGate 0.x 或 1.x 的用户,请阅读升级到 2.x,不要只替换旧版可执行文件。安装结束前,应确认 FQGate 已经启动、数据连接可用,并且名为 fqgate 的 MCP 连接能够读取工具列表和查询当前行情。

选择你的 AI 工具

AI 软件 接入方式
ChatGPT(Codex 接入) 在 FQGate“AI 接入”页面安装 Codex 插件,或使用下方 Codex 命令
Claude Code 在 FQGate“AI 接入”页面安装,或使用下方 Claude Code 命令
豆包、千问、DeepSeek Harness、WorkBuddy、ZCode、OpenClaw 开发测试中

Codex:

codex plugin marketplace add fqgate/FQGate-agent --json
codex plugin add fqgate-agent@fqgate-official --json

Claude Code:

claude plugin marketplace add fqgate/FQGate-agent --scope user
claude plugin install fqgate-agent@tonghuasun-agent --scope user

ChatGPT 入口使用电脑上的 Codex;普通 ChatGPT 网页和手机应用不能通过这个入口连接当前电脑上的 FQGate。完成接入后,需要重新打开 AI 会话。

可以直接这样问

普通行情是否可以使用游客连接,取决于当前选择的数据来源。问财和 Level-2 等功能需要相应账号及权限,游客行情可能延迟或受限,最终可用范围以 FQGate 实际返回的工具列表和账号权限为准。

数据、隐私与安全

FQGate 默认只监听当前电脑的本机地址,Agent 不会连接公网或局域网中的 FQGate 地址。项目维护者不运营接收用户行情查询、证券账号或 AI 对话内容的远程服务;插件的分析说明和行情图表不会把 FQGate 返回的数据发送给项目维护者。

使用云端 AI 服务时,发送给该服务的对话和工具结果可能受其隐私政策与设置约束。请在使用前阅读隐私政策与使用条款。

本项目不提供个股推荐、收益预测或投资建议。AI 生成的内容可能存在错误或延迟,行情及证券信息请以数据提供方、证券公司和交易所的正式记录为准。

文档与交流

微信群二维码会定期失效;下方交流 1 群和交流 2 群的二维码均标注为 2026 年 12 月 9 日前有效。如果二维码无法使用,请先加入 QQ 群或提交 Issue 提醒维护者更新。

FQGate 平民量化数据网关交流 1 微信群二维码,2026 年 12 月 9 日前有效 FQGate 平民量化数据网关交流 2 微信群二维码,2026 年 12 月 9 日前有效

支持项目

支持 FQGate 与开源 Agent 项目

如果 FQGate 和开源 Agent 项目对你有帮助,欢迎自愿赞赏支持。赞赏不会解锁任何功能、数据权限、投资建议、问题处理优先级或后续服务承诺。

头像 昵称 渠道 金额 日期
峰-Kevin 峰-Kevin 微信 20 2026-8-25
阿东 阿东 微信 500 2026-8-27
星光 星光 微信 88.88 2026-8-27
許 許 微信 100 2026-9-1
ICE ICE 微信 8.88 2026-9-7
序号 序号 微信 8.8 2026-9-6
U_U U_U 微信 188 2026-9-7
阿东 阿东 微信 100 2026-9-9
wd wd 微信 100 2026-9-9
峰-Kevin 峰-Kevin 微信 50 2026-9-9
@BetterMe(借钱勿扰) @BetterMe(借钱勿扰) 微信 66 2026-9-10
桥南 桥南 微信 50 2026-9-11
-45°俯视大地 -45°俯视大地 微信 5 2026-9-12
**平 **平 支付宝 50 2026-9-14
小龙 小龙 微信 88 2026-9-19
康诚传媒 康诚传媒 微信 5 2026-9-23
草木皆兵 草木皆兵 微信 5 2026-9-24
**进 **进 支付宝 10 2026-9-24
阿东 阿东 微信 188 2026-10-3
宏渭 宏渭 微信 5 2026-10-3
9.59 9.59 微信 50 2026-10-5
**波 **波 支付宝 58 2026-10-11
**湘 **湘 支付宝 9.9 2026-10-12
**雨 **雨 支付宝 1 2026-10-12
开心 开心 微信 5.00 2026-10-14
王云 王云 微信 20 2026-10-14
**招 **招 支付宝 20 2026-10-16
自己 自己 微信 100 2026-10-19
*雷 *雷 支付宝 20 2026-10-24
无名 无名 微信 20 2026-10-26

开源与许可

Agent 插件入口、Skill 和 MCP Apps 界面源码依据 AGPL-3.0-only 开源。FQGate 编译包适用其随包许可,不属于本仓库的开源范围;详细边界见法律与许可说明。

这是一个由独立开发者维护的非官方项目,与同花顺及其关联公司不存在授权、合作或背书关系。FQGate 和 Agent 不会增加任何账号的数据权限,实际可用范围仍以相应账号及服务权限为准。

FQGate-agent (fqgate/FQGate-agent)

Searching Database…

What is this?FQGate-agent is an unofficial local AI agent connector for the THS (同花顺) desktop stock trading client, letting AI assistants like Codex, Claude Code and DeepSeek query your computer's real-time A-share quotes, K-line charts, Level-2 data, positions, orders and trades.
Is this an official THS plugin or a third-party tool?It's an independent, unofficial project with no partnership or endorsement from THS; it only reads data from your already-logged-in THS desktop app and exposes it locally to AI tools - it never grants new market, account or trading permissions beyond what you already have.
How do I install and set it up?You just send the message '安装并配置同花顺插件,项目地址:...' directly to your AI assistant (Codex, Claude Code, etc.) and it handles installation and configuration for you.
Which AI tools are supported, and do I need my own THS account?It works with Codex, Claude Code, WorkBuddy, ZCode, OpenClaw, DeepSeek Harness, Doubao and Qwen. You need THS desktop already installed and logged in with your own securities account since the plugin only surfaces data you already have access to.
Is the trading feature ready to use right now?Trading tools are off by default and must be manually enabled; every order, cancel or edit shows a confirmation before going through THS's normal trading flow, and trading itself hasn't been fully tested yet. Unattended REST trading has its own separate switch that also stays off by default.
Does it work on Mac too?No - the README explicitly states it only supports Windows and Mac support isn't planned for now.
Does it cost anything to use?No, all features are completely free with no subscriptions, memberships, plans or paid unlocks; donations are optional and don't buy any extra functionality or priority support.
Is the data or analysis it gives financial advice?No, it's purely a data connector and display tool - it doesn't give stock picks, profit forecasts or investment advice, and AI-generated output may contain errors or delays.
How do I find my local API token if something breaks?The installer auto-generates a token saved on your computer, viewable via a PowerShell command; if the config seems missing, just ask your AI assistant to 'repair the THS plugin configuration' instead of creating it manually.
Creator
fqgate
Size
15.7 MB
Stars
280
Age
3mo
Commits · 90 Days