Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/nigu-miaomiao/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 1.0.0 - 2026-12-04
初次提交
21 changes: 21 additions & 0 deletions plugins/nigu-miaomiao/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Light_PolarisCN

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
57 changes: 57 additions & 0 deletions plugins/nigu-miaomiao/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 拟股喵喵

~~老实赚钱应该很枯燥吧~~
ZTools 股票行情插件:A股 / 港股 / 美股自选股、指数与分时走势,数据来自腾讯行情公开接口。

## 功能

- **实时报价**:现价、涨跌额、涨跌幅、今开 / 昨收 / 最高 / 最低、成交量 / 成交额、换手率、振幅、市盈率、市净率、流通市值 / 总市值
- **多市场**:沪A、深A、北交所、港股、美股,以及上证 / 深证 / 创业板指数
- **自选股**:搜索添加(代码 / 名称 / 拼音)、置顶、移除,本地持久化
- **分时图**:当日分时折线、昨收基准线、坐标刻度
- **自动刷新**:3 / 5 / 10 / 30 / 60 秒或关闭;窗口隐藏时暂停
- **涨跌配色**:红涨绿跌(A股习惯)/ 绿涨红跌(美股习惯)一键切换
- **快捷操作**:点击复制代码、跳转腾讯行情;支持选中文字后直接查询

## 使用

1. 在 ZTools 中呼出 `股票`、`行情`、`自选股`、`拟股喵喵` 等关键词打开
2. 顶部输入框输入:
- 6 位代码:`600519`、`000001`、`300750`、`430047`
- 5 位港股代码:`00700`
- 英文简称:`AAPL`、`TSLA`
- 中文名称或拼音:`茅台`、`腾讯`、`gzmt`
3. 回车或点击建议项加入自选;点击自选行查看详情与分时
4. 选中股票代码后呼出「查询股票」可直接查询

快捷键:`Ctrl/Cmd + K` 聚焦搜索框,`↑` / `↓` 选择建议,`Enter` 添加,`Esc` 关闭。

## 文件结构

```
nigu-miaomiao/
├── plugin.json # 插件配置(名称、指令、窗口尺寸)
├── index.html # 界面结构
├── styles.css # 深色/浅色主题与布局
├── app.js # 渲染层逻辑(列表、详情、分时图、搜索)
├── preload.js # Node 侧行情抓取(腾讯公开接口)
└── logo.png # 插件图标
```

## 数据来源

腾讯行情公开接口:

| 用途 | 接口 |
| --- | --- |
| 批量报价 | `https://qt.gtimg.cn/q=sh600519,sz000001,...` |
| 代码搜索 | `https://smartbox.gtimg.cn/s3/?q=...&t=all` |
| 分时数据 | `https://web.ifzq.gtimg.cn/appstock/app/minute/query?code=...` |

`preload.js` 在 Node 环境发起请求,绕过浏览器 CORS 限制;GBK 行情文本用 `TextDecoder('gbk')` 解码。

## 说明

- 行情数据来自公开接口,可能存在延迟,**仅供参考,不构成任何投资建议**。
- 接口若无提示变更或限流,插件会提示“行情获取失败”,已加载的数据仍会保留。
- 本项目仅用于个人学习与日常看盘。
Loading
Loading