f1426912008/dsh-stock-ticker ↗★ 0

dsh-stock-ticker

实时股票自选股监视微窗及设置面板 适合需要在DSH Web界面中顺便盯盘、查看股票走势的用户。

套件
dsh-stock-ticker
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年9月30日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:f1426912008/dsh-stock-ticker

Configuration

The durable section is resolved through the best backing the running composition offers:

BackingWhen it is chosenWhere the values live
settings namespacethe settings service exposes register(namespace, schema)the platform's own settings document, under stock-ticker:
JSON documentotherwise (the normal case on the 0.2 line)$DSH_HOME/stock-ticker.json, mode 0600
process memorya read-only harness homefor the session only

The browser half never touches the settings RPC. The Host's Web settings surface serves an allowlist of in-box namespaces, so an out-of-tree namespace answers settings-not-exposed; configuration therefore travels over this plugin's own /api/stock-ticker/config route, and the settings page and the mini-window are two views of one shared mirror.

Settings fields

FieldDefaultMeaning
watchlist[]Instruments, in display order. At most 24.
maxCurves6How many rows get an intraday curve (1–24).
refreshMs15000Poll cadence during trading hours (5000–300000).
visibletrueWhether the panel is mounted.
opacity1Panel opacity, 0.35–1.
pinnednull{ left, top } once the panel has been placed.

Each watchlist entry is { code, name, market }, where code is six digits and market is one of sh, sz, bj.

Writes are strict: an unknown key or a wrongly-typed value is refused with 400 rather than silently merged, because a silently-dropped field looks to the user like a save that did not stick.