Introduction

DeepSeek Harness (DSH) adopts the “everything is a plugin” philosophy. For developers who need to run A-share market watch tools locally, dsh-leekbox provides a web client plugin solution. The plugin is maintained by SuCriss, open-sourced under the MIT license, and aims to integrate real-time quotes, stock selection strategies, and news feed aggregation as an extension of the DSH web client.

Core Features

The plugin provides the following modules:

  • Market Panel: Supports real-time quotes for indices such as the Shanghai Composite Index, Shenzhen Component Index, ChiNext Index, and STAR 50, with automatic refresh every 30 seconds.
  • Multi-Pool Rankings: Covers rankings for various market instruments, including A-shares on the Shanghai and Shenzhen exchanges, main-board stocks, non-main-board stocks, on-exchange ETF funds, convertible bonds, and LOFs.
  • Watchlist Management: Supports real-time quotes for watchlist stocks. Data is persistently stored in $DSH_HOME/.leekbox-watchlist.json, with support for grouping and import/export.
  • Stock Selection Tools: Provides two modes: “Score-Based Selection” (weighted sorting based on 13 technical signals) and “Multi-Strategy Cross-Selection” (parallel intersection of 7 preset strategies).
  • News Feed Aggregation: Aggregates 7×24 breaking news from three sources—Sina, East Money, and Jin10—supporting source filtering and deduplication.
  • Market Sentiment: Provides a “Market Sentiment Thermometer,” which integrates indicators such as consecutive limit-up tiers, failure rate of limit-up stocks, and the number of advancing and declining stocks.
  • Individual Stock Details: Clicking any stock pops up an independent detail window, displaying 15 real-time indicators and a K-line chart (supporting daily/weekly/monthly/intraday timeframes).

Installation and Activation

This plugin runs only on DSH’s web profile (dsh.client.platform: "web").

Link the plugin package into the node_modules directory of the DSH web profile:

mklink /J "$DSH_HOME\profiles\web\node_modules\dsh-leekbox" "<本包路径>"

2. Register the Plugin

Append the following content to the $DSH_HOME/profiles/web/cordis.patch.yml file:

# - insert:
#     - id: leekbox
#       name: 'dsh-leekbox'

After configuration changes, DSH will automatically hot-reload, and you can refresh the browser page to see the 🥬 entry in the left sidebar.

Typical Usage

  • View Quotes: Click the 🥬 icon in the left sidebar to open the market panel. The top of the panel displays consecutive limit-up tiers (such as 2-board, 3-board, etc.) and a list of stocks that hit the upper limit.
  • View Details: Clicking any stock name (for example in the watchlist or search results) opens an independent detail window. This window supports dragging and multiple instances; close it by clicking the overlay or pressing the ESC key.
  • Watchlist Operations: The detail window supports one-click adding to the watchlist. The watchlist supports JSON backup, CSV export, and import from text/CSV files.

Notes

  • Runtime Environment: You must ensure DSH version >= 0.1.1-rc.1, and that dsh.client.platform for the current profile is "web".
  • Data Sources: Real-time quotes are based on Tencent Finance, rankings and stock selection are based on East Money, and breaking news is based on Sina, East Money, and Jin10.
  • Access Restrictions: The browser side accesses via same-origin /api/leekbox/*, and the server-side routes run with the host process.
  • Disclaimer: All data is for research reference only and does not constitute any investment advice.

Summary

dsh-leekbox integrates the quotes, stock selection, and breaking news features of traditional market watch software into DSH’s web interface. For users who are already using DSH for development or work, this is a solution for obtaining A-share data without installing additional third-party software.