
AnacondaKC/dsh-stock-market
113Last commit Aug 13, 2026
dsh-stock-market DSH plugin
This plugin adds a market sidebar to DSH that displays real-time indexes and provides agent tools for stock quotes, charts, rankings, money flow, fundamentals, events, research, and news. It connects to free public data sources from East Money, Tencent, Sina, and Tonghuashun without requiring any API keys.
How to install the dsh-stock-market DSH plugin
dsh plugin --profile web add link:/absolute/path/to/dsh-stock-marketCopying does not run this command. Review the repository and version before installing the dsh-stock-market DSH plugin.
dsh-stock-market DSH plugin data source
dsh-stock-market DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-stock-market DSH plugin can do
- Real-time market sidebar showing major indices (Shanghai, Shenzhen, ChiNext, etc.) with 5-second refresh.
- 9 agent tools for stock data: quote, chart, ranking, money flow, fundamentals, events, research, news, and capabilities query.
- Supports session-level toggle to enable/disable all stock tools from the agent's tool list.
- Data source switching (auto) with degraded mode warnings for inconsistent endpoints.
- Connects to 57 free public endpoints from East Money, Tencent, Sina, and Tonghuashun without credentials.
Where the dsh-stock-market DSH plugin fits
- Get real-time stock quotes and K-line charts for A-share analysis.
- Monitor market indices and sector rankings during trading sessions.
- Research company fundamentals, financials, and institutional ratings.
- Stay updated with stock news, announcements, and research reports.
- Track money flow, margin trading, and dragon & tiger lists.
Who the dsh-stock-market DSH plugin is for
- Chinese A-share investors and traders using DSH.
- Developers building AI-assisted stock analysis workflows with DSH.
dsh-stock-market DSH plugin limitations
- Only supports Shanghai and Shenzhen A-share stocks (codes like 600519.SH or 000001.SZ).
- Depends on free public websites (East Money, Tencent, Sina, Tonghuashun) which have no SLA and may change or break.
- Not suitable for commercial or high-frequency use; consider licensed data sources.
- Market sidebar indices are limited to a fixed set (Shanghai, Hang Seng, Nasdaq, KOSPI, Nikkei, Brent, Gold).
dsh-stock-market DSH plugin: from the repository README
Quoted from the AnacondaKC/dsh-stock-market README, the upstream source of the dsh-stock-market DSH plugin. Copyright remains with the original authors.
DSH 的沪深 A 股行情侧栏和固定免费股票数据工具插件。 ## 功能 - 右侧“行情”侧栏:顶部信息区展示上证指数、恒生指数、纳斯达克、韩国综合、日经指数、布伦特原油和纽约金主连的最新价与涨跌,支持横向滚动;侧栏支持收起、拖拽或键盘调整宽度及会话级状态保存。 - A 股行情快照:上证指数、深证成指、创业板指和科创综指来自腾讯实时行情,5 秒刷新;两市成交额与上一交易日同期比较,财经资讯来自东方财富。 - 数据接口设置:展示全部免费数据源和已接入的固定接口目录,无需配置凭据。 - 会话级股票工具开关:输入框工具行可启用或关闭全部股票工具,状态随会话日志持久化。 ## 界面预览    ## 接口目录 | 数据源 | 接口数 | 主要能力 | |---|---:|---| | 东方财富 | 36 | 实时/批量行情、排行、K 线、分时、资金流、数据中心、F10、研报、资讯、搜索 | | 腾讯财经 | 6 | 批量实时行情、K 线、分时、个股/板块排行、个股资讯 | | 新浪财经 | 13 | 批量实时行情、K 线、市场/板块、资金流、滚动新闻及页面型数据 | | 同花顺 | 2 | 日 K、分时走势 | 只保留无需许可证、API Key、Cookie 或登录状态即可调用的免费接口。不可无状态调用或已经停服的接口不接入插件。 ## DSH 工具 Agent 只看到以下 9 个按业务组织的工具,57 个数据源接口保留为插件内部适配器: - `stock_quote`:实时证券行情快照。 - `stock_chart`:K 线与分时走势。 - `stock_ranking`:个股、行业、概念和板块成分排行。 - `stock_money_flow`:个股、板块及沪深港通资金流。 - `stock_fundamentals`:公司、财务、股东、估值和经营指标。 - `stock_events`:公告、大宗交易、融资融券、龙虎榜和数据中心事件。 - `stock_research`:市场研报、个股研报、盈利预测和评级。 - `stock_news`:资讯流、个股新闻、搜索和股吧。 - `stock_capabilities`:查询工具动作、参数及数据源切换口径。 证券代码统一使用 `600519.SH` 或 `000001.SZ`,仅支持沪深 A 股。各工具只接受声明的 `action`
Read the full READMERepository license: BSD-3-Clause
dsh-stock-market DSH plugin questions
How to install dsh-stock-market plugin?
Build the plugin with `npm run build` then install via `dsh plugin --profile web add link:/absolute/path/to/dsh-stock-market`. Make sure you have DSH workspace set up.
How to enable or disable the stock tools?
Use the input box tool row toggle to enable or disable all stock tools for the current session. The state persists across the session. When disabled, the tools are removed from the agent's tool list for the next request.
Does the plugin require an API key or paid subscription?
No. All data sources are free public endpoints (East Money, Tencent, Sina, Tonghuashun) that require no API key, cookie, or login. However, they have no SLA and may break.
What stock code format should I use?
Use the format `600519.SH` for Shanghai stocks and `000001.SZ` for Shenzhen stocks. Only A-share stocks are supported.
Is the market sidebar data real-time?
The sidebar refreshes every 5 seconds, showing latest prices and changes for major indices. The underlying data is sourced from Tencent's real-time feed.