Use A-share data inside DeepSeek Harness
Install one plugin and your DeepSeek Harness can look up quotes, K-lines, financials, money flow and top-trader boards — ask a question, get real data, not a guess.
The plugin does one thing: connect DeepSeek Harness to our data service (one URL). Transport, tool registration and reconnects are handled by the MCP client that ships with DSH.The plugin holds no data logic of its own
Install
Open the “Plugins” page in the sidebar and enter the package name:
ashareapi-dsh-pluginRestart and it works — no command line, no config files to edit.
npx @deepseek-ai/dsh plugin --profile web add ashareapi-dsh-pluginIf you already have dsh installed globally, replace npx @deepseek-ai/dsh with dsh. Both the CLI and the Web UI call your local pnpm (DSH does not bundle it; the desktop app ships its own) — install it first with npm i -g pnpm if needed.
⚠️ The desktop profile is managed by the desktop app and cannot be installed from the command line — use the “Plugins” page there.
Need the paid tools? Add a key
These 6 free tools work with no key at all: quote snapshot / K-line / hot list / market overview / breadth / doc search. For financials, money flow, top-trader boards, factor screening or quant backtests, add a key (from ¥9.9 — all 39 tools unlocked).
Where the key goes (either one)
Add one line to ~/.dsh/.env (or wherever $DSH_HOME points):
ASHAREAPI_KEY=ct-your-keyEdit that profile’s cordis.patch.yml — ~/.dsh/profiles/web/cordis.patch.yml for the Web UI / CLI, or ~/.dsh/profiles/desktop/cordis.patch.yml for the desktop app (its directory only appears after you open the desktop app once). Add an id-targeted override:
- id: mcp-ashareapi
name: ashareapi-dsh-plugin
config:
apiKey: ct-your-keyThis patch replaces the entry’s whole config, so only list the fields you want to change — endpoint and namespace fall back to the plugin’s built-in defaults.
⚠️ The field name must be apiKey (writing api_key / api-key does not error, but it does nothing); restart DSH to apply.
Once installed, just ask
- How much is 600667 right now?
- Pull the last 60 daily candles for 600667
- What is the market doing today?
- How is the money flow on 太极实业 (600667) today?
- Find me stocks with PE under 20 and ROE above 15
- What did institutions buy on the top-trader boards today?
- Backtest a moving-average strategy on 600667
- Which quant strategies and factors are built in?
What data it can reach
The AI calls these itself when needed. You never have to remember the tool names — just ask. ✅ = no key required.
- ✅ real-time quote snapshot
- ✅ daily / weekly / monthly K-lines (adjusted)
- ✅ hot attention list
- ✅ market overview
- ✅ advance-decline breadth
- five-level order book
- full profile (valuation / cap / shares / limit price)
- intraday (today / last 5 days)
- full-history K-lines (10y + optional adjustment)
- three financial statements
- technical indicators MA / MACD / KDJ / RSI / BOLL
- shareholder research
- dividends
- event tags (42 types)
- money flow + top-trader boards + block trades + margin
- top-trader board split
- sector performance
- sector valuation (with history percentile)
- macro indicators
- factor screening (22 presets)
- convertible bonds
- backtest (single stock / portfolio)
- batch backtest (many stocks × many strategies)
- strategy list
- factor library
- playbook library
- ETF data
- IPO calendar
- research digests
- stock search
- usage
The classic route makes you build the integration: install an SDK, handle auth, write retries. With this plugin that work goes to the AI — you just describe what you want.For research-with-AI workflows, that is far less work than writing code.
Free tools (quote / K-line / hot / market overview / breadth) need no key; the rest need one (from ¥9.9).