dsh-pnl-attribution

A-share holdings contribution card for DeepSeek Harness: today's P&L and portfolio return next to the Shanghai Composite, the top five contributors by P&L with each stock's strength versus the index in pp, and a 15:00 close-summary PNG export with the contributor list, intraday chart and a numbers-only summary. Holdings come from a local holdings.csv/holdings.json and quotes from the public Tencent market-data API; the plugin never reads cookies or broker credentials. Requires DSH 0.2.x; the card and the export are covered by a test suite that runs in CI.

Overview

A-share holdings contribution card for DeepSeek Harness: today's P&L and portfolio return next to the Shanghai Composite, the top five contributors by P&L with each stock's strength versus the index in pp, and a 15:00 close-summary PNG export with the contributor list, intraday chart and a numbers-only summary. Holdings come from a local holdings.csv/holdings.json and quotes from the public Tencent market-data API; the plugin never reads cookies or broker credentials. Requires DSH 0.2.x; the card and the export are covered by a test suite that runs in CI.

Installation

Install from GitHub

dsh plugin --profile web add github:dingchenhui0618-arch/dsh-pnl-attribution

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.