DeepSeek Harness Plugin: dsh-stock-ticker (Real-Time A-Share Monitoring)

One of the core design philosophies of DeepSeek Harness (DSH) is “everything is a plugin.” For developers or users who need to monitor A-share market trends, embedding a lightweight stock ticker component directly within the Web GUI is often more efficient than opening an external website. dsh-stock-ticker is a plugin designed specifically for this scenario, offering a complete A-share watchlist monitoring solution that is ready to use out of the box without any build process.

Plugin Introduction

dsh-stock-ticker is a real-time stock ticker plugin for the DeepSeek Harness Web GUI. It is maintained by user f1426912008 and is open-sourced under the MIT license.

This plugin renders a draggable and collapsible mini-window in DSH’s shell.overlay extension slot, and provides a dedicated “Stock Ticker” settings page in the settings.section extension slot. It has no runtime dependencies and is implemented in pure JavaScript, addressing the need to read market data from Eastmoney within the local process and display it in real-time.

Core Features

The plugin primarily offers the following capabilities:

  1. Mini-window & Interaction

    • Draggable & Collapsible: The window resides in a layer overlaid on the main interface, supporting drag-to-move and collapse/hide functions.
    • Pinning: A “Pin” button is located in the top right corner of the window. Clicking it locks the window in its current position, disabling dragging via the title bar. Clicking again or using the settings page unpins it.
    • Anti-mistouch & Adaptive: A position saving mechanism ensures the location persists after refreshing; when the window size changes, the position is automatically calibrated to prevent the panel from being dragged off-screen.
  2. Market Visualization

    • Intraday Curves: Supports configuring up to 24 rows of stocks, each displaying an intraday trend chart.
    • Red Up / Green Down: Following A-share market conventions, rising stocks are shown in red and falling stocks in green.
  3. Detail Display

    • Hover Detail Card: Hovering over any row displays a detailed data card, including Open, High, Low, Previous Close, Volume, Amount, Turnover Rate, Amplitude, Volume Ratio, P/E Ratio, P/B Ratio, and Limit Up/Down prices, without causing reflow of the list below.
  4. Management

    • Settings Page: Provides a unified configuration entry to manage the watchlist, set the number of intraday curves (maxCurves), refresh interval (refreshMs), panel opacity (opacity), visibility toggle (visible), and pinned position (pinned).

Installation & Activation

Before installation, ensure your DSH environment meets the following requirements:

  • DeepSeek Harness: Must be a desktop build version that supports plugin extensions.
  • Node.js: Version 20.3 or higher.
  • Network Permissions: The host process must have outbound HTTPS access to push2.eastmoney.com, push2his.eastmoney.com, and searchapi.eastmoney.com.

Run the following command to install the plugin:

dsh plugin --profile <profile> add ./dsh-stock-ticker

Once installed, look for the “Stock Ticker” entry in the DSH settings menu, or ensure visible is set to true in the configuration to see the mini-window in the interface.

Configuration & API

Settings Fields

The plugin supports configuration via the settings page or HTTP API. Key configuration items include:

  • watchlist: A list of watchlist stocks, supporting up to 24 stocks.
  • maxCurves: The maximum number of rows to display intraday curves (1-24).
  • refreshMs: Refresh interval (5000-300000 milliseconds, default 15000).
  • opacity: Panel opacity (0.35-1).
  • pinned: Fixed position { left, top }.

HTTP Endpoints

The plugin provides same-origin HTTP APIs for external calls:

  • GET /api/stock-ticker/config: Get current configuration.
  • POST /api/stock-ticker/quotes: Get quote data (can specify secids, defaults to watchlist).
  • POST /api/stock-ticker/trends: Get trend data for specified stocks.
  • POST /api/stock-ticker/search: Search for stocks.

Use Cases & Notes

  • A-Share Only: This plugin is designed exclusively for mainland China A-share markets (SSE, SZSE, BSE) and does not support quotes from other exchanges.
  • Zero Dependencies: The plugin itself has no runtime dependencies; all data processing logic is completed within the host process.
  • Data Source: Data originates from Eastmoney’s public push interfaces. Since requests are initiated by the host process and the page cannot directly set the Referer header, direct interface calls from the page may be restricted.

Conclusion

dsh-stock-ticker offers a minimalist solution that allows users to monitor A-share market trends directly within the DSH Web interface. Through interactive designs like dragging, collapsing, and detail cards, it provides a complete stock monitoring experience without disrupting the main interface.

Plugin Directory: https://www.skillhub.cn/plugins/f1426912008/dsh-stock-ticker
GitHub Repository: https://github.com/f1426912008/dsh-stock-ticker

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye