Preface¶
In DSH, when building agents or performing daily operations, the sidebar is typically used for lightweight tools related to the current environment. Tracking fund holdings is another common requirement: holdings are scattered across Alipay, various fund company apps, etc. Calculating today’s profit and loss requires cross-referencing list pages or detail pages, while determining DCA (Dollar Cost Averaging) deduction dates often involves manual deduction from screenshots. Manually copying numbers, reconciling, and opening multiple apps daily every morning does not align well with “glancing at the side of my local workstation.”
dsh-my-funds is a community-maintained DSH client plugin: it provides a “My Funds” panel in the sidebar, uses Windows built-in OCR to locally recognize holdings/DCA screenshots (no internet recognition, no image upload), connects to public net value and index quotes to calculate daily P&L, and supports DCA plan simulation and morning/night email summaries. The following explains positioning, capabilities, installation, and usage based on the project README and package.json.
What is it¶
- Repository: wdbaolongzs/dsh-my-funds (Maintainer wdbaolongzs)
- Category: Client (injects into DSH Web sidebar)
- License: MIT (consistent with README and
package.json) - One sentence: Fund holdings panel for the DSH sidebar — screenshot import (Windows OCR), daily P&L, DCA plans, twice-daily email report.
After importing fund holding or DCA screenshots of common formats like Alipay, Guotai, Nanfang, Morgan, E Fund, Tiantian Fund, etc., the panel displays total market value, today’s P&L, holding profit, and associated sector fluctuations in the same panel. Data defaults to <DSH_PROFILE_DIR>/my-funds/state.json locally; uninstalling the plugin does not delete this file.
Core Features¶
Screenshot Import & Multi-channel Merging¶
- Click the orange polyline icon in the sidebar (README says 4th from left) to open “My Funds”.
- Click “Import Screenshot”: drag & drop, Ctrl+V paste, or select image; can also paste text lines or use “+” to search for fund names to add.
- Separate import of Holdings and DCA: The popup allows
Auto Recognize/Import Holdings Only/Import DCA Onlyto avoid mixing costs and shares. - Source Identification: Distinguish between fund company direct sales (total channel) and distributors (Alipay, Ant Fortune, Tiantian Fund, etc.) based on screenshot text; when merging the same fund by code, fund company data takes priority, and distributor shares are recorded as “Distributor included ¥xxx” to avoid double counting.
- Layout: README states it includes multiple built-in parsers (header list, tag on top value below, single detail page, full page DCA details, etc.), selected by the highest score; single Asset Details / Holdings Details pages can be marked Actual Today after import to align with the app’s daily gain.
OCR calls system capabilities via the plugin’s built-in lib/ocr.ps1 on the Windows desktop; README notes non-Windows users can still manually enter and follow quotes, but screenshot import relies on Windows.
Today’s P&L & Associated Sectors¶
Daily P&L is calculated as “Shares × (Current Price − Yesterday’s Close)”. Small tags on each fund row indicate the methodology, with priority roughly:
| Tag | Meaning |
|---|---|
| Actual Today | From today’s imported asset detail page |
| Today’s Net Value | Official net value announced |
| Intraday Valuation | Eastmoney real-time valuation (trading hours) |
| Sector Estimate | Inferred from tracking index movements |
| Yesterday’s Net Value | Previous trading day’s official gain/loss (with date) |
In addition to Market Value, Today’s P&L, and Holding Profit, each row has an Associated Sector column (e.g., Nasdaq 100, CSI 300, Baijiu, Medical, Gold, etc., mapped), similar to Yangjibao, useful for checking estimates when net value isn’t out yet.
Market data and net value data listed in README as public interfaces (e.g., fundmobapi.eastmoney.com, api.fund.eastmoney.com from Eastmoney, Danjuan, etc.), no need for broker account or API Key, and does not read broker-side accounts.
DCA (Dollar Cost Averaging)¶
- Recognize DCA plans (cycle, amount per period, next deduction date) from screenshots, or manually create plans via “+” in the panel.
- Upon maturity, shares are converted based on historical net value and merged into holding cost; weekends are deferred, holidays with no net value are skipped; README explains it fills backward from the “next deduction” on the screenshot, not tracing historical data imported before.
- Supports “Calculate up to today” to fill historical periods in one go.
Auto Update & Notifications¶
- Background pulls market data every ~5 minutes; panel refreshes every ~1 minute when open (pauses when hidden).
- Email: README states default 08:00 pre-market estimate and 21:30 close settlement two emails; SMTP (465/587, STARTTLS), plus optional OneBot sending.
- Mobile Read-only Page: A read-only page can be viewed on the same LAN (released with
lib/mobile.html).
Installation & Enablement¶
Environment: package.json requires Node.js >= 20, peer dependency @deepseek-ai/cordis ^4.0.5.
Official install command (do not use other forms not in docs):
dsh plugin add https://github.com/wdbaolongzs/dsh-my-funds
After installing, click the orange polyline icon in the sidebar to enter the panel. Settings include auto-update, OCR language, clear holdings/clear all data.
The DSH ecosystem is “everything is a plugin”; SkillHub directory page and GitHub are community entry points, with no official app store affiliation with DeepSeek / Fangfang. Suggest browsing source code and MIT license before installing—the plugin runs with current dsh process permissions, reads/writes local profile directory and may send emails, listen for LAN read-only pages.
Typical Usage (Reproducible Steps)¶
- Holdings Summary Only: Screenshot “My Holdings” or single detail page in various apps → Sidebar “Import Screenshot” → Select source auto or specific distributor/fund company → Confirm merged rows and “Distributor included” notes.
- Separate DCA Import: Select “Import DCA Only” separately for DCA plans, or screenshot full “DCA Details” page from E Fund/Nanfang → Verify next deduction date and amount per period.
- No Screenshot: Paste text, e.g., README example
招商中证白酒 161725 3210.45 +45.20and DCA line110022 Every Monday 300. - Daily Check: Configure SMTP to receive morning/evening emails; open mobile read-only page on same WiFi when out.
Scenarios & Notes¶
Better For: Users already using DSH desktop environment on Windows, holding funds across multiple channels, wanting local summary of today’s P&L and DCA progress, and willing to use public net value/valuation interfaces to track the market.
Notes:
- Screenshot OCR only Windows; Linux/macOS users need manual entry or text import.
- Net values for QDII and other varieties are announced later than A-shares; during the day, rely more on sector estimates or yesterday’s net value tags, with methodology explained on the row.
- List page gains are often a day later than detail pages; README suggests prioritizing importing detail pages to get “Actual Today”.
- Email and LAN pages involve local network configuration; SMTP account passwords are saved locally, please handle according to personal security protocols.
Conclusion¶
dsh-my-funds puts “Multi-app screenshot → Local recognition → Unified holdings & DCA → Auto follow net value/index → Morning/night email” into one chain in the DSH sidebar, suitable for developers or users who don’t want to rotate opening wealth management apps daily for reconciliation and want data staying on the local machine.
- Directory page: https://www.skillhub.cn/plugins/wdbaolongzs/dsh-my-funds
- GitHub: https://github.com/wdbaolongzs/dsh-my-funds
- Install:
dsh plugin add https://github.com/wdbaolongzs/dsh-my-funds