@xlcongi/dsh-plugin-kanban 0.1.1 → 0.1.2
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/README.md +17 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,58 +1,40 @@
|
|
|
1
1
|
# @xlcongi/dsh-plugin-kanban
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**自选股盯盘看板** DeepSeek Harness 插件:在对话里打开看板、查看当日与浮动盈亏、手填或导入持仓。
|
|
4
4
|
|
|
5
|
-
>
|
|
6
|
-
>
|
|
7
|
-
> **定位:本机自用 / 开发插件。** 需已有 `kanban/` 源码(`KANBAN_HOME`)。尚未捆绑 Python,**不能当市场插件指望别人装了就能用**。
|
|
8
|
-
>
|
|
9
|
-
> **npm 名说明:** 无作用域的 `dsh-plugin-kanban@0.0.1` 是他人占位包,与本仓库无关。请装 **`@xlcongi/dsh-plugin-kanban`**。
|
|
5
|
+
> 非投资建议。只读公开行情,**不下单**。不做券商登录 / OCR。
|
|
10
6
|
|
|
11
|
-
##
|
|
7
|
+
## 能做什么
|
|
12
8
|
|
|
13
9
|
| 工具 | 作用 |
|
|
14
10
|
|------|------|
|
|
15
|
-
| `kanban_open` |
|
|
16
|
-
| `kanban_summary` |
|
|
17
|
-
| `kanban_holdings_get` |
|
|
18
|
-
| `kanban_holdings_set` |
|
|
19
|
-
| `kanban_holdings_import` | 粘贴 CSV
|
|
20
|
-
| `kanban_refresh` |
|
|
21
|
-
|
|
22
|
-
## 前置
|
|
23
|
-
|
|
24
|
-
1. 本机看板源码(含 `app.py`),通过其一找到:`KANBAN_HOME` / `SMART_QUANT_ROOT/kanban` / 同级 `../kanban`
|
|
25
|
-
2. `py -3 app.py` 可跑
|
|
26
|
-
3. 可选:`KANBAN_URL=http://127.0.0.1:5000`
|
|
11
|
+
| `kanban_open` | 打开盯盘看板(浏览器地址) |
|
|
12
|
+
| `kanban_summary` | 总资产 / 现金 / 当日与浮动盈亏 / 持仓摘要 |
|
|
13
|
+
| `kanban_holdings_get` | 读取当前持仓配置 |
|
|
14
|
+
| `kanban_holdings_set` | 手填保存持仓(未传现金时保留原现金,不会误清零) |
|
|
15
|
+
| `kanban_holdings_import` | 粘贴 CSV、JSON 或交割明细导入 |
|
|
16
|
+
| `kanban_refresh` | 全量刷新行情与报告 |
|
|
27
17
|
|
|
28
18
|
## 安装
|
|
29
19
|
|
|
30
|
-
npm(发布后):
|
|
31
|
-
|
|
32
20
|
```sh
|
|
33
21
|
dsh plugin --profile desktop add @xlcongi/dsh-plugin-kanban
|
|
34
22
|
```
|
|
35
23
|
|
|
36
|
-
|
|
24
|
+
或:
|
|
37
25
|
|
|
38
26
|
```sh
|
|
39
27
|
dsh plugin --profile desktop add xlcongi/dsh-plugin-kanban
|
|
40
28
|
```
|
|
41
29
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
"@xlcongi/dsh-plugin-kanban": "link:D:/trae_projects/smart_quant/dsh-plugin-kanban"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
并写入 `dsh.profile.bundles`,重启 DSH。
|
|
30
|
+
安装后重启 DSH。首次使用请设置环境变量 `KANBAN_HOME` 指向看板程序目录(内含 `app.py`),或确认看板已在 `http://127.0.0.1:5000` 运行。
|
|
49
31
|
|
|
50
|
-
##
|
|
32
|
+
## 使用示例
|
|
51
33
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
- 「打开盯盘看板」
|
|
35
|
+
- 「现在持仓盈亏怎样」
|
|
36
|
+
- 「导入这段持仓 CSV」
|
|
55
37
|
|
|
56
|
-
##
|
|
38
|
+
## 说明
|
|
57
39
|
|
|
58
|
-
|
|
40
|
+
插件通过本机看板服务展示页面与计算盈亏;数据留在本机,不上传券商账户。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xlcongi/dsh-plugin-kanban",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "自选股盯盘看板:在对话里打开看板、查看盈亏、录入或导入持仓。只读公开行情,不下单。非投资建议。",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|