nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Kevoyuan/dsh-trading212
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A read-only Trading 212 portfolio workspace for dsh. Configure your API credentials once, then inspect holdings, performance, allocation, transaction history, and stock-level trade markers in a responsive dashboard—or ask questions about your portfolio in any dsh conversation.
For personal research and information only. This plugin does not provide investment advice and cannot place, modify, or cancel orders.

Product interface shown with synthetic demo data. Includes a one-click privacy toggle (eye icon) that completely masks balances, stock values, share quantities, and returns.
trading212_portfolio and trading212_history tools for normal dsh conversationsdsh plugin --profile web add --save-exact dsh-trading212@latest
Fully quit and reopen dsh. A native T212 tab appears next to Chat / Trajectory in the session header — click it to open the dashboard inside the chat panel.
Alternatively, download the .tgz package from GitHub Releases and install it locally:
dsh plugin --profile web add --save-exact ./dsh-trading212-<version>.tgz
T212 dashboard and select the Demo or Live environment.Grant read-only access to:
Do not grant permission to place, modify, or cancel orders. Trading 212 displays an API secret only once; create a new key if the secret is lost.
Official English documentation: Trading 212 API documentation · How can I generate an API key? · dsh plugin development guide
Example prompts:
Summarize my three largest positions and concentration risk.
Which positions are dragging down my unrealized return?
What currency exposure do I have, and are any orders still pending?
dsh calls the read-only tools when needed and receives normalized portfolio data. The plugin does not register any trading action.
| Source | Purpose | Data sent |
|---|---|---|
| Official Trading 212 API | Account, positions, orders, fills, cash transactions, and dividends | API key and secret are used only to authenticate with Trading 212 |
| Unofficial Yahoo Finance endpoint | Intraday and historical prices for individual stocks | Public instrument identifiers only; no credentials, quantities, or account values |
Historical market prices may be delayed, incomplete, or temporarily unavailable. Trading 212 holdings and execution history remain available when Yahoo Finance fails.
pnpm install
pnpm typecheck
pnpm test
pnpm pack --pack-destination dist
This repository follows the Harness plugin contract: src/index.ts exports name, inject, a same-name Config schema, and apply(ctx, config); tools are registered with ctx.tools.register(defineTool(...)); cordis.patch.yml is the bundle patch used for publishing.
For a local Harness Web run directly from source:
pnpm harness:dev
The command generates the ignored cordis.local.patch.yml, disables any installed trading212 entry for that run, inserts the repository's absolute src/index.ts path as trading212-local, and starts pnpm dsh web --patch ./cordis.local.patch.yml. Git installs run prepare to build lib/; the published bundle patch and package metadata are declared through dsh.bundle in package.json.
Main directories:
src/index.ts: dsh host, HTTP API, and read-only toolssrc/portfolio-service.ts: credential persistence, caching, and request coordinationsrc/trading212.ts: Trading 212 client and response validationsrc/market-data.ts: Yahoo Finance historical market datasrc/client/index.tsx: native T212 conversation-view tab hosting the dashboardsrc/app/: setup, portfolio, history, and instrument UIIssues and pull requests are welcome. Never include an API key, API secret, real account value, or real portfolio position in issues, screenshots, fixtures, or commits.
Licensed under the MIT License. Charting uses TradingView Lightweight Charts (Apache-2.0); the in-chart TradingView mark is kept visible.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: history。