@czf1995/dsh-waste-market 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +60 -0
- package/README.md +60 -0
- package/cordis.patch.yml +6 -0
- package/lib/client.js +14 -0
- package/lib/emrank.js +1 -0
- package/lib/fetch-utils.js +1 -0
- package/lib/index.js +1 -0
- package/lib/screener.js +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 a23842
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# DSH Waste Market
|
|
2
|
+
|
|
3
|
+
An A-share market dashboard plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): a draggable trading panel inside the DSH Web UI.
|
|
4
|
+
|
|
5
|
+
Click the 📊 entry in the DSH sidebar to open the dashboard:
|
|
6
|
+
|
|
7
|
+
| Tab | What it does |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Indices | SSE / SZSE / ChiNext / STAR50 realtime indices, 30s auto-refresh |
|
|
10
|
+
| Quotes | Stock / ETF / convertible bond / LOF search (code / name / pinyin) + multi-pool rankings (A-shares / ETFs / convertibles / LOF, sorted by change / turnover / volume ratio / main net inflow) + sector board + Dragon-Tiger list |
|
|
11
|
+
| Watchlist | Realtime quotes with persistence at `$DSH_HOME/.waste-market-watchlist.json`; groups, JSON backup / CSV export, import from JSON / CSV / text (merge or replace) |
|
|
12
|
+
| Screener | Two modes: **score screener** (price / change / turnover filters + 13 technical signal toggles + weighted scoring) and **multi-strategy crossover screener** (7 preset strategies in parallel; a stock must hit several at once, sorted by hit count) |
|
|
13
|
+
| News | 7×24 flash news aggregated from Sina / Eastmoney / Jin10; filterable by source, important items highlighted, 60s auto-refresh |
|
|
14
|
+
|
|
15
|
+
A **market sentiment thermometer** sits at the top: limit-up / limit-down / broken-board counts, market-wide advance/decline breadth, and the consecutive-board ladder with an expandable limit-up pool.
|
|
16
|
+
|
|
17
|
+
Clicking any stock opens a detached detail window: large price + change, 15 realtime metrics, daily / weekly / monthly / 5m / 30m K-line (forward-adjusted, candlesticks + MA5/10/20 + volume + crosshair). Windows are draggable, multiple can be open, ESC or overlay click closes them.
|
|
18
|
+
|
|
19
|
+
## Data sources
|
|
20
|
+
|
|
21
|
+
- Realtime quotes / indices / K-line: Tencent Finance (qt.gtimg.cn / ifzq.gtimg.cn, multi-host fallback)
|
|
22
|
+
- Rankings / sectors / Dragon-Tiger / fund flow / screener universe: Eastmoney (push2.eastmoney.com, multi-mirror fallback)
|
|
23
|
+
- Search: Eastmoney (searchadapter.eastmoney.com)
|
|
24
|
+
- 7×24 flash news: Sina Finance live feed + Eastmoney flash + Jin10
|
|
25
|
+
|
|
26
|
+
All data is proxied by the plugin's server half and served to the browser same-origin under `/api/waste-market/*`, loopback only. Research use only — not investment advice.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
dsh plugin --profile web add @czf1995/dsh-waste-market
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or manually (development mode):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 1. Link the package into the web profile's node_modules (or pnpm add file:...)
|
|
38
|
+
ln -s "<repo path>" "$DSH_HOME/profiles/web/node_modules/@czf1995/dsh-waste-market"
|
|
39
|
+
|
|
40
|
+
# 2. Append to $DSH_HOME/profiles/web/cordis.patch.yml:
|
|
41
|
+
# - insert:
|
|
42
|
+
# - id: waste-market
|
|
43
|
+
# name: '@czf1995/dsh-waste-market'
|
|
44
|
+
|
|
45
|
+
# 3. The profile watcher recomposes in ~1s; hard-refresh the page to see the 📊 entry.
|
|
46
|
+
# If lib/index.js (server half) changed, restart the DeepSeek Harness process.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Structure
|
|
50
|
+
|
|
51
|
+
- `lib/index.js` — server cordis plugin: `/api/waste-market/*` routes + watchlist persistence + news aggregation
|
|
52
|
+
- `lib/emrank.js` — Eastmoney rankings / sectors / Dragon-Tiger / fund flow
|
|
53
|
+
- `lib/fetch-utils.js` — shared fetch helpers (GBK decode, multi-host fallback)
|
|
54
|
+
- `lib/screener.js` — screener engine
|
|
55
|
+
- `lib/client.js` — browser panel (React)
|
|
56
|
+
- `cordis.patch.yml` — plugin row registration (`dsh.bundle.patch`)
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
MIT
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# DSH Waste Market
|
|
2
|
+
|
|
3
|
+
A 股行情面板插件,为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web 界面增加一个可拖拽的行情看盘窗口。
|
|
4
|
+
|
|
5
|
+
在 DSH Web 左侧边栏点击 📊 入口即可打开:
|
|
6
|
+
|
|
7
|
+
| 页签 | 功能 |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| 大盘 | 上证 / 深成 / 创业板 / 科创50 实时指数,30 秒自动刷新 |
|
|
10
|
+
| 行情 | 股票 / ETF / 转债 / LOF 搜索(代码 / 名称 / 拼音)+ 多池榜单(沪深A股 / ETF·场内基金 / 可转债 / LOF,按涨幅 / 成交额 / 换手 / 主力净流入排序)+ 板块榜 + 龙虎榜 |
|
|
11
|
+
| 自选 | 自选股实时行情(持久化于 `$DSH_HOME/.waste-market-watchlist.json`),支持分组、JSON 备份 / CSV 导出、JSON / CSV / 文本导入(合并或覆盖) |
|
|
12
|
+
| 选股 | 两种模式:**评分选股**(价格 / 涨跌幅 / 换手率筛选 + 13 项技术信号勾选 + 加权评分排序)和**多策略交叉选股**(7 个预设策略并行交集,需同时命中多个策略,按命中数排序) |
|
|
13
|
+
| 快讯 | 新浪 / 东财 / 金十 三源聚合 7×24 快讯,来源可筛选,重要资讯红色高亮,60 秒自动刷新 |
|
|
14
|
+
|
|
15
|
+
行情页顶部为**市场情绪温度计**:涨停 / 跌停 / 炸板数、全市场涨跌家数、连板梯队,可展开涨停池列表。
|
|
16
|
+
|
|
17
|
+
点击任意股票会弹出独立详情窗口:大字现价 + 涨跌、15 项实时指标、日 / 周 / 月 / 5 分 / 30 分 K 线(前复权,蜡烛图 + MA5/10/20 均线 + 成交量 + 十字光标)。窗口可拖动、可多开,ESC 或点击遮罩关闭。
|
|
18
|
+
|
|
19
|
+
## 数据来源
|
|
20
|
+
|
|
21
|
+
- 实时行情 / 指数 / K 线:腾讯财经(qt.gtimg.cn / ifzq.gtimg.cn,多主机自动回退)
|
|
22
|
+
- 榜单 / 板块 / 龙虎榜 / 资金流 / 选股:东方财富(push2.eastmoney.com,多镜像回退)
|
|
23
|
+
- 搜索:东方财富(searchadapter.eastmoney.com)
|
|
24
|
+
- 7×24 快讯:新浪财经直播流 + 东方财富快讯 + 金十数据
|
|
25
|
+
|
|
26
|
+
所有数据由插件服务端代理抓取并标准化,浏览器端同源调用 `/api/waste-market/*`,仅限本机 loopback 访问。数据仅供研究参考,不构成投资建议。
|
|
27
|
+
|
|
28
|
+
## 安装
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
dsh plugin --profile web add @czf1995/dsh-waste-market
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
或手动安装(开发模式):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 1. 把包链接进 web profile 的 node_modules(或 pnpm add file:...)
|
|
38
|
+
ln -s "<本包路径>" "$DSH_HOME/profiles/web/node_modules/@czf1995/dsh-waste-market"
|
|
39
|
+
|
|
40
|
+
# 2. 在 $DSH_HOME/profiles/web/cordis.patch.yml 追加:
|
|
41
|
+
# - insert:
|
|
42
|
+
# - id: waste-market
|
|
43
|
+
# name: '@czf1995/dsh-waste-market'
|
|
44
|
+
|
|
45
|
+
# 3. profile 配置 watcher 会在 ~1s 内热重组合;浏览器刷新页面后侧边栏出现 📊 入口。
|
|
46
|
+
# 若修改了 lib/index.js(服务端代码),需要重启 DeepSeek Harness 进程生效。
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 结构
|
|
50
|
+
|
|
51
|
+
- `lib/index.js` — 服务端 cordis 插件:`/api/waste-market/*` 路由 + 自选股持久化 + 快讯聚合
|
|
52
|
+
- `lib/emrank.js` — 东方财富榜单 / 板块 / 龙虎榜 / 资金流数据
|
|
53
|
+
- `lib/fetch-utils.js` — 共享 fetch 工具(GBK 解码、多主机回退)
|
|
54
|
+
- `lib/screener.js` — 条件选股引擎
|
|
55
|
+
- `lib/client.js` — 浏览器端面板(React)
|
|
56
|
+
- `cordis.patch.yml` — 插件行注册(`dsh.bundle.patch`)
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
MIT
|
package/cordis.patch.yml
ADDED