Preface

DeepSeek Harness (dsh) is an open-source agent runtime developed by DeepSeek, with the core design principle of “everything is a plugin”: models, tools, sessions, sandboxes, and interfaces can all be combined via plugins. The official repository is located at deepseek-ai/deepseek-harness. Several independent plugin directory sites have emerged in the community for retrieving and categorizing these plugins; these are not officially affiliated with DeepSeek / FunFound and should not be treated as official app stores.

When coding for long periods while staring at a terminal or web interface, you may occasionally want to check market indices and trading volume, or ask an agent to pull quotes, capital flows, and announcements for a Chinese A-share stock. You usually have to switch to a market data app and paste the numbers back manually. dsh-stock-market solves this problem: it adds a market sidebar to the right of the DSH web interface, while providing a set of fixed free stock data tools for agents. The repository’s self-introduction is straightforward: “Effectively fixes the bug where you can’t lose money in your account while coding” — this is a joke, as the plugin itself provides market display and public data queries, not a trading system.

This article is collated after cross-checking the plugin directory page, GitHub repository README, package.json, CHANGELOG, and license. The current repository version is 0.2.0 (CHANGELOG date 2026-08-13), and the GitHub star count is subject to the repository page, which was 15 on the day this article was verified.

What It Is

dsh-stock-market is a tool plugin for the DeepSeek Harness web interface, maintained by AnacondaKC, licensed under BSD-3-Clause, and primarily written in TypeScript. The community directory categorizes it under “Tools and Capabilities”, with the page address:

https://deepseek-harness-plugin.com/zh-CN/plugins/dsh-stock-market/

It addresses two types of needs:
1. For human users: A “Market” sidebar appears on the right side of the web UI, so you can view indices, trading volume, and news without leaving your current session.
2. For models: It aggregates 57 free APIs from East Money, Tencent Finance, Sina Finance, and Tonghuashun into internal adapters, exposing only 9 business-organized tools to the agent. The agent queries “real-time quotes / K-line / capital flow” instead of dealing with raw URLs and endpoint_ids.

package.json declares "dsh.client.platform": "web" and injects client modules such as sessions, settings, and plugin settings. It is attached to the web interface, not a generic package for headless task mode.

Core Features

The repository README divides its capabilities into four sections: interface, snapshots, API directory, and tool toggle.

1. Right-side “Market” Sidebar
The top information area displays the latest prices and price changes for the Shanghai Composite Index, Hang Seng Index, NASDAQ, KOSPI, Nikkei 225, Brent Crude Oil, and COMEX Gold, with horizontal scrolling support. The sidebar can be collapsed, dragged to adjust width, or resized via keyboard, and its state is saved per session.

Starting from version 0.2.0, plugin-level persistent settings have been added: master switch, default sidebar state, and default session-level stock tool state; it also integrates with the DSH rc.5 settings.plugin.item configuration card. Even after the plugin is disabled, it can be re-enabled from the “Plugins” settings page.

2. A-Share Market Snapshots
The Shanghai Composite, Shenzhen Component, ChiNext Index, and STAR Market Composite Index are sourced from Tencent’s real-time market data and refreshed every 5 seconds. The total trading volume of the two exchanges is compared with the same period of the previous trading day; financial news is sourced from East Money.

3. Fixed Free APIs, No Keys Required
The plugin only connects to public APIs that can be called without a license, API Key, Cookie, or login status. APIs that cannot be called statelessly or have been discontinued are not included in the directory. The settings page lists all free data sources and connected fixed APIs.

The API directory given in the README is as follows:
| Data Source | API Count | Main Capabilities |
|—|—:|—|
| East Money | 36 | Real-time/batch quotes, rankings, K-line, intraday, capital flow, data center, F10, research reports, news, search |
| Tencent Finance | 6 | Batch real-time quotes, K-line, intraday, individual stock/sector rankings, individual stock news |
| Sina Finance | 13 | Batch real-time quotes, K-line, market/sector, capital flow, rolling news and page-based data |
| Tonghuashun | 2 | Daily K-line, intraday trend |

4. Session-level Stock Tool Toggle
The input bar tool row can enable or disable all stock tools, and the state is persisted with the session log. When the toggle is turned off, all stock_* tools will be removed from the tool list for the next model request in that session; old requests or forged calls will still be rejected at the pre-execution policy and final guard stages.

9 Tools Visible to the Agent

The underlying 57 APIs are not directly exposed to the model. The agent can only call the following 9 tools:
- stock_quote: Real-time securities market snapshot
- stock_chart: K-line and intraday trend
- stock_ranking: Individual stock, industry, concept, and sector component rankings
- stock_money_flow: Individual stock, sector, and Shanghai-Shenzhen-Hong Kong Stock Connect capital flow
- stock_fundamentals: Company, financial, shareholder, valuation, and operating indicators
- stock_events: Announcements, block trades, margin trading and short selling, dragon and tiger list, and data center events
- stock_research: Market research reports, individual stock research reports, earnings forecasts and ratings
- stock_news: News stream, individual stock news, search, and stock bar
- stock_capabilities: Query tool actions, parameters, and data source switching specifications

Security codes must be formatted as 600519.SH or 000001.SZ, only supporting Chinese A-shares. Each tool only accepts the declared action and corresponding business parameters, and does not accept underlying endpoint_id, URL, Host, proxy address, or credentials.

The default source=auto: Semantically equivalent APIs can be switched automatically; if there are inconsistencies in specifications for rankings, capital flow, and page-based news, the return value will be marked degraded with a warning. The sidebar uses a separate internal RPC and does not share infrastructure with these 9 tools.

The repository README includes three interface screenshots: overall sidebar view, analysis session with the market sidebar, and analysis results after collapsing the sidebar. The files are located under assets/screenshots/.

Installation and Activation

The installation command given on the directory page is as follows, run in the DeepSeek Harness terminal:

dsh plugin add github:AnacondaKC/dsh-stock-market

The dsh CLI will pull the plugin from GitHub and install it into the current configuration. According to the official CLI documentation, the syntax for installing a plugin to a specified profile is dsh plugin --profile <name> add .... This plugin declares itself as a web client, so if you are not using the web profile, you need to specify it explicitly, for example:

dsh plugin --profile web add github:AnacondaKC/dsh-stock-market

For reproducible installations, pin the commit hash as instructed on the directory page:

dsh plugin add github:AnacondaKC/dsh-stock-market#commit

Replace #commit with the actual commit hash. The latest push to the repository was on 2026-08-13.

When installing from local source code, the README requires first building the plugin, then linking it as a DSH bundle:

dsh plugin --profile web add link:/absolute/path/to/dsh-stock-market

Development dependencies link to the local DSH workspace instead of using public DSH packages on npm. package.json requires Node.js >= 22.19.0. The plugin runs with the permissions of the current dsh process, and may execute code during installation; you should review the repository source code and the BSD-3-Clause license before installing.

Typical Usage

After installation, launch the web interface (dsh web or the corresponding web profile). You can confirm that the plugin is working in the following order:
1. Check the sidebar. A “Market” panel should appear on the right side of the page: the top has a horizontally scrollable index and commodity quote bar, and below it are A-share snapshots (Shanghai Composite, Shenzhen Component, ChiNext, STAR Market) and news. Collapse the sidebar when not needed.
2. Enable the stock tools. Toggle the stock tool switch in the input bar tool row. When turned off, stock_* tools should no longer appear in the model’s next request.
3. Ask the agent to query a Chinese A-share stock. Use the 600519.SH or 000001.SZ format with 6 digits plus a market suffix, do not use US tickers, and do not include underlying API IDs in your prompts. For example, you can directly ask for real-time quotes, K-lines, capital flow, or recent announcements, and the agent will select tools like stock_quote, stock_chart, stock_money_flow, or stock_events.
4. If you are unsure of the action, parameters, or data source specifications for a tool, first ask the agent to call stock_capabilities instead of guessing field names.
5. To change default behaviors, adjust the master switch, default sidebar state, and default session-level tool state on the plugin settings page. Starting from version 0.2.0, if the host RPC is unavailable or returns incompatible data, it will fall back to built-in configuration to prevent the settings card from disappearing entirely.

The repository does not provide a “standard prompt template”. The steps above correspond to the interface entry points, code specifications, and tool boundaries already documented in the README, rather than a made-up operation script.

Applicable Scenarios and Notes

It is particularly suitable for these use cases:
- Working on code with the DSH Web UI open for long periods, and needing convenient access to market indices and trading volume.
- Asking the agent to organize public information for Chinese A-shares: quotes, financials, shareholders, announcements, research reports, and news.
- Not wanting to apply for a market data account or store Cookies in your configuration, and only wanting to use public site APIs.

There are several boundary conditions you need to review before use:

Only covers Chinese A-shares. The tool layer explicitly only accepts .SH / .SZ codes. Although the top of the sidebar displays Hang Seng Index, NASDAQ, crude oil, and gold, this is just a display quote bar, and does not mean the agent has global market query capabilities.

Data comes from public websites, no formal SLA. The README specifies: requests use fixed Host, parameter whitelist, and fixed Referer; Tencent, Sina, and Tonghuashun GBK data is only decoded on the server; there are connection concurrency limits, recommended minimum request intervals, timeouts, limited retry backoff, cancellation propagation, and an 8 MiB response limit. JSON arrays, long text, HTML pages, and final tool JSON all have separate output limits to avoid passing oversized upstream responses directly to the browser or model context. APIs may break after upstream sites are updated. Commercial or high-frequency use should switch to officially licensed data sources.

The plugin does not store market account credentials. It does not read, store, or handle any third-party market data credentials. This also means its capabilities are limited to free APIs that can truly be called anonymously.

Permissions and license. The plugin runs with the permissions of the current dsh process. Before installing, check the source code at https://github.com/AnacondaKC/dsh-stock-market and the LICENSE (BSD-3-Clause). The community directory site only provides indexing and installation command display, and does not constitute a security audit.

Do not treat it as a trading or investment advisory tool. The repository’s positioning is a market sidebar and read-only data tool. The degraded tag in the return value indicates that different data sources may have inconsistent specifications, requiring manual verification.

Summary

dsh-stock-market combines two functions into a single web plugin: a Chinese A-share market sidebar for human users, and 9 A-share data tools for agents. It has a fixed API directory, no keys required, and organizes functions by business logic, making it ideal for users already using the DeepSeek Harness web interface who want to avoid switching to a separate market data app.

Directory page: https://deepseek-harness-plugin.com/zh-CN/plugins/dsh-stock-market/

GitHub: https://github.com/AnacondaKC/dsh-stock-market