f1426912008/dsh-stock-ticker ↗★ 0
dsh-stock-ticker
实时股票自选股监视微窗及设置面板 适合需要在DSH Web界面中顺便盯盘、查看股票走势的用户。
同名包的其他仓库
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:f1426912008/dsh-stock-ticker说明文档
阅读完整 README ↗Configuration
The durable section is resolved through the best backing the running composition offers:
| Backing | When it is chosen | Where the values live |
|---|---|---|
| settings namespace | the settings service exposes register(namespace, schema) | the platform's own settings document, under stock-ticker: |
| JSON document | otherwise (the normal case on the 0.2 line) | $DSH_HOME/stock-ticker.json, mode 0600 |
| process memory | a read-only harness home | for 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
| Field | Default | Meaning |
|---|---|---|
watchlist | [] | Instruments, in display order. At most 24. |
maxCurves | 6 | How many rows get an intraday curve (1–24). |
refreshMs | 15000 | Poll cadence during trading hours (5000–300000). |
visible | true | Whether the panel is mounted. |
opacity | 1 | Panel opacity, 0.35–1. |
pinned | null | { 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.