Introduction¶
When writing code or running agents in DeepSeek Harness (DSH) for extended periods, context is frequently interrupted if you have to switch to a browser or trading software to check your watchlist and positions. The common workaround is to open a separate market page or a desktop floating window, but these interfaces are often outside the DSH window and struggle to share the same local settings as the current workspace. Introducing the community plugin dsh-stock-bar (maintained by NoCandles). It provides a persistent market ticker bar at the top of the DSH window, complete with charts, order books, position accounting, and AI reviews. Market data is sourced from public interfaces of Eastmoney and Tencent. The plugin does not execute trades and does not constitute investment advice.
Overview¶
dsh-stock-bar is a DSH plugin categorized as a “Network Tool.” It displays real-time prices, price change percentages, and other data for your watchlist and holdings at the top of the window. Clicking allows you to expand a full panel. The host entry point is lib/index.js, and the client injects the layout via Cordis patches. The current repository package.json version is 1.1.0, license is MIT, and it requires Node >= 20.
Community Directory Page: skillhub.cn/plugins/NoCandles/dsh-stock-bar. Source Code & Documentation: GitHub - NoCandles/dsh-stock-bar.
Core Features¶
The following capabilities are derived from the feature list in the repository’s README.
Market Ticker Bar¶
Real-time prices and price change percentages for watchlist and holdings; scrolling ticker display (supports horizontal scrolling via mouse wheel); limit up/down markers; collapsible into a small capsule in the title bar. The ticker bar resides within the DSH window, rather than being a floating window covering the entire desktop.
Charts & Order Books¶
- Charts: Time-sharing (1/3/5 day) and K-line (Daily/Weekly/Monthly/Minute); MA5/10/20/60, Volume, Crosshair, Cost dashed lines.
- Order Books: 5-level bid/ask and order ratio.
Positions, Accounting & Alerts¶
- Positions: Share count, cost price, market value, floating and intraday P&L (separated by currency).
- Accounting: Transaction history, weighted average cost, realized P&L.
- Alerts: Pop-up notifications when price or price change percentage hits a set threshold.
AI Analysis & Optional Sidebar¶
- AI Analysis: Uses configured DSH models (two-level selection: Provider → Model) to stream output for market reviews.
- Sidebar Page (Optional): If dsh-better-sidebar is installed, the same panel set can be opened as a “Stocks” tab in the right sidebar, sharing positions and settings with the top ticker bar; polling automatically pauses when the tab is not visible.
Installation & Activation¶
Method 1: Search for dsh-stock-bar directly in the DSH plugin marketplace to install.
Method 2: Install from the GitHub repository. Run the following in your terminal:
dsh plugin --profile desktop add github:NoCandles/dsh-stock-bar
dsh plugin forwards arguments to pnpm and will not automatically modify dsh.profile.bundles in your <profile>/package.json. You need to add dsh-stock-bar to this field manually, otherwise the bundle will not load. After modifying, fully exit DSH and restart it; simply refreshing the page is insufficient.
Uninstall example:
dsh plugin --profile desktop remove dsh-stock-bar
Typical Usage¶
After installation and bundle loading, click any stock in the top bar to expand the panel. The seven tabs are: Positions / Watchlist / Add / AI Analysis / Transactions / Alerts / Settings. Share counts and cost prices in positions can be modified directly within the table.
If dsh-better-sidebar is installed, a “Stocks” tab will appear in the right sidebar. The components are shared with the top bar; polling automatically pauses when the tab is invisible.
Development notes (from README): If only lib/client.js is changed, a page refresh is sufficient; if lib/index.js (host) is changed, DSH must be restarted. The repository provides local self-check scripts (totaling 780 assertions, no DSH or keys required), for example:
node scripts/verify.mjs
node scripts/verify-client.mjs
node scripts/verify-live.mjs
node scripts/verify-analysis.mjs
For API details and known limitations, see the repository’s docs/notes.md. For version history, see CHANGELOG.md.
Use Cases & Notes¶
Target Audience: Users who need to monitor A-share watchlists and holdings, view K-line charts and order books, record transaction history, and occasionally perform market reviews using configured models—all within the same DSH window.
Permissions & Trust: The plugin runs with the permissions of the current DSH process. It accesses public market interfaces and reads/writes local position and settings data. It is recommended to review the source code and MIT license before installation to ensure compliance with your usage and regulatory requirements.
Data & Boundaries: Market data comes from third-party public interfaces; latency and accuracy depend on the data source. The plugin does not provide trading orders or investment advice. The DSH community plugin directory is an independent site and has no official affiliation with DeepSeek or Hithink RoyalFlush.
Conclusion¶
dsh-stock-bar consolidates watchlists, position P&L, charts, order books, transaction history, alerts, and AI reviews into the DSH top bar, reducing the need to switch between multiple windows. To install, search for dsh-stock-bar in the plugin marketplace, or add it via the command github:NoCandles/dsh-stock-bar as described above and configure dsh.profile.bundles.
- Directory Page: https://www.skillhub.cn/plugins/NoCandles/dsh-stock-bar
- GitHub: https://github.com/NoCandles/dsh-stock-bar