An Obsidian plugin that shows live fund / ETF quotes and mini trend charts in the right sidebar. It works like a phone fund widget: a card list showing fund name, code, a mini sparkline and the change percentage (Chinese market convention: red for up, green for down).
Clone the repository:
git clone https://github.com/moyansuyu/obsidian-fund-watch.git
cd obsidian-fund-watch
Install dependencies and build:
npm install
npm run build # generates main.js
Copy the files (main.js, manifest.json, styles.css) into your vault:
<your-vault>/.obsidian/plugins/fund-watch/
Enable "Fund Watch" in Obsidian Settings -> Community plugins.
In the plugin settings tab:
Fund list: one fund per line, format code [etf|fund]. Example:
022458 fund
588080 etf
510310 etf
513300 etf
159696 etf
If the type is omitted, it is inferred from the code prefix (codes starting with 5 or 1 are treated as exchange-traded ETFs, everything else as off-exchange funds).
Refresh interval (minutes): polling interval for ETF quotes, 1 minute by default. Off-exchange fund NAV updates only once per day, so the interval has no effect on them.
push2.eastmoney.com / push2his.eastmoney.comfundmobapi.eastmoney.comAll requests go through Obsidian's built-in requestUrl, which bypasses browser CORS, so no proxy is required. These third-party endpoints come with no official guarantee and their fields may change; the data layer is isolated so it can be swapped for your own NAV API later.
obsidian-fund-watch/
├── main.ts # Plugin logic (panel / data fetching / rendering)
├── manifest.json # Plugin manifest
├── styles.css # Panel styles
├── esbuild.config.mjs # Build config
├── tsconfig.json
├── package.json
└── versions.json
MIT
在 Obsidian 右侧边栏实时查看基金 / ETF 行情与迷你走势图的小插件。效果类似手机上的基金小组件:卡片列表展示基金名称、代码、迷你走势线和涨跌幅(A 股习惯:涨红跌绿)。
配置:设置页「基金动态 设置」中,基金列表每行一只,格式 代码 [etf|fund];刷新间隔为场内 ETF 轮询分钟数(默认 1 分钟)。
数据源:场内 ETF 走 push2.eastmoney.com,场外基金净值走 fundmobapi.eastmoney.com,均通过 Obsidian 内置 requestUrl 请求,无需自建代理。