Preface¶
When building agents in DeepSeek Harness (DSH), a common need is to “answer market quotes in conversations and watch a watchlist on the interface.” Connecting to public APIs such as East Money yourself and writing a separate sidebar UI is a lot of work, and it must be aligned with Harness’s plugin loading and tool registration. The community plugin dsh-stock-quotes (maintainer AhaCrazy, SkillHub category: Web tools) bundles these two things into one bundle: the browser side provides a configurable data panel in the sidebar, and the Host side registers stock_quote, letting the Agent batch query A-share, HK stock, US stock and sector quotes. Below we describe its positioning, capabilities, and installation/usage.
What Is This¶
dsh-stock-quotes is a plugin for DeepSeek Harness (current repo version 2.0.1, MIT license). In one sentence: a neutrally styled sidebar watchlist real-time quotes table + conversation tool stock_quote.
The panel’s default sidebar name is “Data”, the icon is a plain table style, the display name can be changed in settings, intended to look like a general data view rather than dedicated market software. Quotes come from delayed/snapshot data from public APIs; the README clearly states it is for viewing only, does not constitute investment advice, and should not be used for trading decisions.
Environment requirements (from README):
- DeepSeek Harness 0.2.x, and requires the
plugin_managertool - No API key needed, no additional dependencies; the Host side does not import any modules outside the package
Core Features¶
Sidebar Data Panel¶
The watchlist is displayed in a single table, supporting A-shares, HK stocks, US stocks, and East Money sectors (BKxxxx or matched by sector name in the panel). Columns include latest price, change amount, change percentage, today’s open/high/low, turnover, etc.; quotes auto-refresh about every 15 seconds by default (can be changed to 5/10/15/30/60 seconds in settings, with backoff on failure, up to 2 minutes).
Interaction: add by entering a code or name at the top; reorder by dragging at the row head or right-clicking “Move up/Move down/Move to top/Move to bottom”; select multiple with checkboxes then use the action bar to batch delete or move to top/bottom; right-click to delete, copy code, etc. The watchlist order is saved in the browser localStorage (key dsh-stock-quotes/watchlist), mapped to quotes by code, avoiding quote misalignment after dragging.
The toolbar “Curve” toggles a per-row intraday mini line chart (enabled by default, preferences stored in dsh-stock-quotes/prefs). Intraday data refreshes about once every 60 seconds, separate from the 15-second quote refresh; once the curve is turned off, the intraday API is no longer requested. Clicking a row expands a large chart supporting 1-day/5-day switching, crosshair reading, etc. (see the “Chart” section in the repo README for details).
The stock_quote Tool¶
The Host side registers the tool name stock_quote: it can batch fetch quotes for one or more instruments at a time; when called without arguments it uses the default watchlist from the configuration (see defaultSymbols below). Sector name resolution is mainly done in the panel; on the tool side please pass the code directly, e.g. BK1036.
Codes and Sectors¶
The README lists the multi-market notations: 6-digit codes, sh/sz/hk/us prefixes, .SH/.HK suffixes, and raw secid (e.g. 1.600519). Ambiguous bare 6-digit codes are resolved according to documented rules (e.g. 000001 defaults to a Shenzhen individual stock; the Shanghai Composite Index requires sh000001 or 000001.SH).
Sectors use the same set of East Money APIs; there is no public mapping for Tonghuashun (iFinD) 88xxxx sector codes, so you need to switch to East Money BK codes or names. The suggestion data for name search comes from the repo’s data/securities.json, which the panel fetches from a CDN and caches for about a day.
Settings¶
In the Settings → Plugins → “Data Panel” card you can change: the display name (default “Data”), refresh interval, up/down color scheme (red up / green down, or green up / red down), collapsible columns, abnormal movement alert thresholds, and JSON import/export of the watchlist. Settings are stored in localStorage (dsh-stock-quotes/prefs). The panel’s watchlist and the Host configuration’s default list are independent of each other.
Installation and Activation¶
The plugin is installed as a bundle. The flow given in the README is: first place the repo in a local directory, then install it in a DSH session via plugin_manager using an absolute path.
Get the source code (README original):
git clone https://github.com/AhaCrazy/dsh-stock-quotes.git
Install the bundle in DSH (replace <path-to> with the actual path on your machine):
plugin_manager action: install_bundle target: <path-to>/dsh-stock-quotes
After the client module loads, an icon will appear in the sidebar; if not, refresh the page once. stock_quote will appear in the tool list on the next request.
Uninstall:
plugin_manager action: remove_bundle target: dsh-stock-quotes
Before installing, it’s recommended to review the repo source code and the MIT license yourself; the plugin runs with the permissions of the DSH process and accesses East Money’s public quote APIs (push2 / push2his), which are unofficial, have no SLA, and may be rate-limited or change.
Typical Usage¶
Configuring the Agent’s Default Query List¶
Edit cordis.patch.yml in the plugin bundle; config.defaultSymbols determines the default instruments for stock_quote when called without arguments. README example:
- insert:
- id: stock-quotes
name: 'dsh-stock-quotes'
config:
defaultSymbols:
- sh000001
- sh600519
- sz300750
- hk00700
- usAAPL
After making changes, apply the configuration according to your DSH plugin update method; this is unrelated to the watchlist maintained in the browser panel.
Adding to the Watchlist in the Panel¶
Enter a code or sector name at the top of the panel, then press Enter or click “Add”. When unsure of the code, enter a name (e.g. 茅台) and pick from the suggestion list. To delete: right-click a row and select “Delete”. Import/export uses JSON: {"version":1,"symbols":[...]} or a string array, handy for switching machines.
Checking Prices in Conversation¶
After installing and loading the tool, you can ask the Agent questions that need real-time quotes (the README example: “How much is Moutai now?”). The Agent should call stock_quote; the exact parameter form depends on the tool definition; for multiple instruments just pass the corresponding code list.
Use Cases and Caveats¶
Who it’s for: users who develop or daily-use agents in DSH, want to watch a watchlist in the sidebar, and want to query A/HK/US and East Money sector snapshots in conversations.
Data and compliance: the data may be delayed or inaccurate; do not use it for trading decisions. The plugin does not collect or report data; the watchlist and settings are stored only in local localStorage.
Coverage (README): supports A-shares, Beijing Stock Exchange, HK stocks, US stocks, indices, ETFs/LOFs, convertible bonds, B-shares, sectors, and other instruments covered by East Money APIs; does not support delisted codes, OTC fund NAVs, futures, options, foreign exchange, etc. Browser-side fuzzy search by Chinese stock name is not currently supported (sector names are an exception).
Development and testing: the repo provides npm test (Node >= 20); maintainers can rebuild the search index with node scripts/build-index.mjs (requires access to push2.eastmoney.com).
Conclusion¶
dsh-stock-quotes bundles a “neutrally styled sidebar data panel” and the “Host tool stock_quote” into a single DSH bundle, lowering the cost of integrating market quotes in the Harness. For more operational details, chart interactions, and disclaimers, see the GitHub README.
- SkillHub directory page: https://www.skillhub.cn/plugins/AhaCrazy/dsh-stock-quotes
- Repo: https://github.com/AhaCrazy/dsh-stock-quotes