Skip to main content

dsh-ui-web/packages/skins/trading

34Stars2Forks0Issues0Watchers

Replace the DeepSeek chat web interface with a trading terminal. The top bar displays a stock quote ticker and scrolling marquee showing A-share, HK, US stock, crypto, and forex prices. The bottom bar shows real-time intraday and Changqiao indices.

Evidence5/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki

ⓘ This plugin is a sub-package of the CAPTAIN1275/dsh-ui-web monorepo — stars and activity count the whole repository.

Language
TypeScript
License
Apache-2.0
Branch
main
dsh-plugindsh-plugin-marketdsh-plugins

Install

cmdweb profile
$ dsh plugin --profile web add @captain1275/dsh-client-ui-skin-trading

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin CAPTAIN1275/dsh-ui-web/packages/skins/trading for me: review the repository at https://github.com/CAPTAIN1275/dsh-ui-web first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

One-Line Description

A "stock trading skin" for dsh Web that transforms the DeepSeek chat interface into a market trading terminal. It hot-swaps via the client plugin mechanism, only modifying browser appearance and local data requests without affecting conversations and model calls.

Core Capabilities

  • Renders a fixed top bar with K-line brand logos and embeds three real-time quote quick cards
  • Scrolling ticker continuously displays A-share, Hong Kong, US stock indices, crypto, and forex quotes with red-up green-down color scheme
  • Bottom bar displays real-time A-share, Hong Kong, US stock market status (intraday/lunch break/pre-market/closed)
  • Status bar renders Hong Kong and US stock index grids (shows broker snapshots when Longbridge plugin is installed, otherwise shows public market data)
  • Workspace count cell reads the number of currently open workspaces; connection status indicator on the right
  • Injects K-line favicon, fixes document title to "Trading Terminal · DeepSeek Online"
  • Three-tier data source auto-fallback: fun-ticker watchlist → Longbridge market snapshots → independent public quotes (Tencent / Binance / Frankfurter)
  • All quote request failures safely fallback to "--", terminal chrome unaffected by network issues

Technical Implementation

  • Language: TypeScript
  • Key Dependencies: @deepseek-ai/dsh-client-connection, @deepseek-ai/cordis, tsdown
  • Architecture Pattern: Client skin plugin — apply() only modifies browser DOM and injects favicon/title, timers are cleaned up in cordis effect cleanup; all writes follow "skin only removes what it wrote" rollback discipline
  • Entry Files: src/index.ts (host page empty shell) + src/client/index.ts (browser main logic)

Use Cases

For people who like monitoring the market while also using dsh to write code. After installation, while chatting with DeepSeek you can also glance at scrolling quotes for A-shares, Hong Kong stocks, and US stocks, as well as whether A-shares, Hong Kong stocks, and US stocks are in trading or closed status, without needing additional software; if you're already using dsh-fun-ticker or dsh-longbridge, the ticker will automatically follow your watchlist and broker real indices.

Prerequisites & Compatibility

DependencyMin VersionDescription
DSH ClientNot declaredOnly declares @deepseek-ai/dsh-client-connection as client injection, no fixed version
Node.jsNot declaredpackage.json does not declare engines field
PlatformCross-platformPure frontend skin, not OS-bound
Native ModulesNoneNo node-gyp / native bindings required

Installation

dsh plugin --profile web add github:CAPTAIN1275/dsh-ui-web/packages/skins/trading

Configuration

This plugin requires no additional configuration. The skin has no configurable settings; all behavior is determined by built-in defaults and installed sibling plugins (dsh-fun-ticker / dsh-longbridge, optional).

FAQ

Q: What does this plugin do?

A: Transforms dsh's Web chat interface into an interactive terminal appearance — adds K-line brand top bar, scrolling quote ticker, intraday and Longbridge index status bar, plus fixed "Trading Terminal" page title and K-line favicon, so you can monitor the market while coding.

Q: Do I need to install additional quote plugins?

A: No. The skin has built-in independent public quote sources (Tencent qt.gtimg.cn A/H/US stocks, Binance 24h quotes, Frankfurter ECB rates), and all quotes fallback to "--" when offline, the terminal chrome won't crash. After installing dsh-fun-ticker, the ticker will follow your watchlist; after installing dsh-longbridge, Hong Kong and US stock index grids read broker snapshots.

Q: How do I enable it after installation?

A: Skins are on-demand enabled, only one skin should be active at a time. Use dsh-skin use trading (scripts/dsh-skin helper script in repository) to switch, remove that line and corresponding package to return to default appearance.

Q: Does it affect model requests?

A: No. The skin only modifies browser DOM and reads quote sources, does not send any cordis events, does not assemble or send provider requests, and has no impact on KV cache.

Q: Will theme switching become other skins?

A: No. The skin's color palette maintains trading terminal colors under both light/dark themes (light is for daytime trading view, dark is TradingView-style graphite), switching Appearance theme only toggles between two sets of trading terminal colors.

Q: Will A-share holidays show as trading open?

A: Yes. Intraday and status bar are only modeled by weekdays and time slots, exchange holidays are still displayed as trading open — this is a known limitation declared by the skin, acceptable as status decoration.

Q: What time period do US stock quotes reflect?

A: The ticker US stocks come from Tencent source, reflecting NYSE/Nasdaq regular hours; crypto and forex are 24/7, showing real-time values as long as network is accessible.

Q: Will卸载 leave traces?

A: No. The skin deletes body properties in effect cleanup, removes the three bars and favicon, and restores page title to original (unless session title has already overwritten it).

Difficulty Level

Beginner — single command installation, one script to enable, the skin itself has no configuration items to learn, ordinary users can install and use immediately.

Known Issues & Limitations

  • Loading page remains unchanged: the shell's startup page renders before plugin bundle loads, skin takes effect from the finalized UI, startup moment still has default appearance
  • Theme switching is internal to skin: skin pins its own palette in both light/dark states, switching Appearance theme only toggles between two sets of trading terminal colors, won't switch back to default appearance
  • Market hours modeled by weekday and hour, exchange holidays still display as trading open, acceptable as status decoration
  • US stock quotes via Tencent source are NYSE/Nasdaq regular hours, pre-market/after-hours won't be reflected in ticker; crypto and forex 7×24, show real-time values as long as network is accessible
  • Two skins activated simultaneously will both inject window chrome, ensure only one skin line is enabled yourself

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/CAPTAIN1275/dsh-ui-web/packages/skins/trading)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory