Skip to main content

How to use dsh-stock-watch

Add an A-stock watchlist monitoring popup to the top right corner of DSH Web, featuring real-time quotes, time-sharing/K-line charts, and buy/sell target price alerts, with an integrated fan-shaped AI entry for one-click generation of research and review conversations.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

dsh-stock-watch

— source: plugin_wiki.wiki_content

Install & verify

dsh plugin --profile web add dsh-stock-watch

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 本地开发安装:dsh plugin --profile web add file:D:\projects\github\dsh-stock-watch
  • 或直接通过 git:dsh plugin --profile web add github:Awu12277/dsh-stock-watch
  • 安装后重启 dsh web 生效;卸载:dsh plugin --profile web remove dsh-stock-watch
  • 右上角可折叠弹窗:折叠时显示自选股实时涨跌家数药丸;展开为完整列表,点击任意行进入详情
  • 胶囊可拖动:按住「📈 自选股」药丸可拖到屏幕任意位置,面板随之跟随(右边缘对齐);展开后按住面板头部也可拖动;位置持久化到 localStorage。拖到屏幕四边自动吸附,贴边后胶囊变为半球(屏幕边缘显示涨/跌家数,如 3↑0↓),点击仍可展开面板

— source: plugin_wiki.readme_en (fallback readme_raw)

FAQ

What to do if the 📈 stock pill doesn't appear in the top right corner after installation?

Make sure dsh plugin add is run with --profile web and restart dsh web after installation: package.json#dsh.client.platform is fixed to web, only the web profile will scan this bundle, and merely refreshing the browser won't reload the host page and client modules (README.md:26 / package.json:26-30).

Where does the market data come from? Is it the same as the official API?

The Host side uses Node's native fetch to directly connect to Tencent Finance's public endpoint web.ifzq.gtimg.cn, the same source as the upstream CLI project stocking's market.ts; therefore, even if the DSH deployment doesn't mount a web fetch provider or the sandbox blocks network access, this plugin can still fetch market data (README.md:79-84 / index.js:240).

Where is the stock watchlist data stored? How to completely clear it?

Stock watchlist, buy/sell target prices, panel position, and MA moving average visibility are all stored in browser localStorage, with keys stocking.config.v1 / stocking.pos.v1 / stocking.size.v1 / stocking.ma.v1 (client.js:152-174). On first installation, there's a one-time migration from ~/.stocking/settings.json, after which localStorage is the only data source; deleting stocking.config.v1 and refreshing restores the default groups (Shanghai Index, CSI 300, Zijin Mining).

— source: plugin_wiki.faq_json

Compatibility

  • DSH: 未声明
  • Node: 未声明
  • Platforms: 跨平台

— source: plugin_wiki.compatibility_json

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule