dsh-ths-holdings: DSH Position P&L Floating Card
dsh-ths-holdings is a DSH plugin designed to address the issue where users must frequently switch pages to check P&L after recording their real holdings in the Tonghuashun investment ledger. This plugin automatically retrieves real holdings data and displays a floating card in the bottom right corner of the DSH web GUI. It shows today's P&L, the Shanghai Composite Index, and the daily trend chart, eliminating the need to manually add stocks to a watchlist. Key features include: polling real-time holdings P&L every 20 seconds by default; supporting display in either Yuan amount or percentage; providing a mini trend chart with red for gains and green for losses; supporting automatic discovery and dropdown selection of multiple accounts; and automatically obtaining and verifying Tonghuashun cookies (stored only for the 10jqka domain and not in plaintext). The card can be dragged along the right edge and its position saved. Installation requires Node.js version ^22.19.0 or higher; execute `dsh p...`
Read More