Introduction

DeepSeek Harness (dsh) follows the “everything is a plugin” design. When building agents that use A-share market data, directly integrating market and research data sources often requires handling complex API authentication and data cleaning. The niceck/dsh-hhxg-market plugin aims to solve this problem by wrapping the data APIs of 恢恢量化 (hhxg.top) as native dsh tools, enabling models to call real data directly to answer questions.

Installation

The plugin is hosted on GitHub. Install it by specifying a profile.

dsh plugin --profile web add github:Niceck/dsh-hhxg-market

Feature List

The plugin provides 7 free tools and 5 VIP tools. Free tools can be used directly without any configuration.

Free Tools

Tool Name Description
hhxg_snapshot A-share daily snapshot: sentiment index / limit-up & broken limit-up / consecutive limit-up ladder / hot themes / sector capital / hot-money Dragon-Tiger list / focus news
hhxg_news Latest financial flash news (updated hourly, with bullish/bearish sentiment labels), supports limit parameter 1-50
hhxg_margin Margin trading balance trend for the last 7 trading days + top stocks by changes in margin financing
hhxg_calendar A-share calendar: trading days / delivery dates / earnings disclosures / share unlocking
hhxg_sentiment Market sentiment for the last 7 trading days: number of limit-up stocks / highest consecutive limit-ups / consecutive limit-up distribution / hot sectors and concepts
hhxg_themes Today’s top 30 theme/concept heat ranking (hot-money participation / number of limit-ups / limit-up share)
hhxg_datasets Catalog of all 46 open datasets (id / category / format / update frequency), used as the entry point for discovering hhxg_query_dataset

VIP Tools

VIP tools provide in-depth individual stock analysis and quant signals, and require an MCP Token to unlock.

Tool Name Description
hhxg_diagnose_stock Comprehensive individual stock diagnosis: daily/weekly/monthly technical indicators, unusual movement rating, margin trading trend, Dragon-Tiger list, limit-ups, block trades, announcements, concepts
hhxg_strategy_signals Quant stock-selection/risk-alert signals across the entire market (covering about 5,500 stocks × 107 indicators, 12 strategy categories)
hhxg_predict_lianban Next-day promotion rate prediction for consecutive limit-up stocks (based on three factors: theme heat / sector heat / limit-up strength)
hhxg_stock_alerts Individual stock unusual movement history for the last 30 days (daily records of normal / approaching serious / serious unusual movements)
hhxg_query_dataset Filter / sort / truncate queries on JSON-type datasets (must first use hhxg_datasets to find valid ids)

VIP Tool Configuration

Unlocking VIP features requires two steps: activate the VIP service and generate an MCP Token, then add it to the dsh configuration file.

  1. Activate the service: Visit hhxg.top/vip.html to activate (monthly ¥20 / annual ¥200).
  2. Get the Token: Visit hhxg.top/account/mcp.html to generate an MCP Token (valid for 30 days).
  3. Write the configuration: Add the configuration to cordis.patch.yml for the corresponding profile.
# cordis.patch.yml
- update:
    - id: hhxg-market
      config:
        mcpToken: "<你的 MCP Token>"

If you don’t need VIP features right now, you can set enableVipTools to false to disable registration of VIP tools.

Design and Security

  • Read-only mode: The plugin only provides market and research data and does not include trading execution interfaces such as order placement or fund transfers.
  • Token security: The Token is used only in the Authorization header of HTTP requests, is not written to logs, and error messages are sanitized.
  • Data cleaning: Upstream text (such as news titles and theme names) is cleaned before entering the model context (removing invisible characters, flattening control characters, and breaking link/image syntax) to reduce the risk of prompt injection.
  • Disclaimer: All data is for research reference only and does not constitute investment advice.

No-Code Alternative

If you don’t want to install this plugin, or if you need to use the standard MCP protocol, you can directly mount hhxg’s server in dsh’s MCP configuration.

URL:    https://hhxg.top/mcp/rpc
Header: Authorization: Bearer <你的 MCP Token>

License

MIT