Introduction¶
In the DeepSeek Harness (DSH) ecosystem, accessing Chinese stock market data usually requires handling complex network requests or packaging APIs manually. xby-akshare is a Model Context Protocol (MCP) server that provides Chinese stock market data through the AKShare library. It runs as a DSH plugin, transforming AKShare’s data interfaces into tools that agents can directly call, and supports features such as real-time quotes, historical data, and fundamental analysis.
Core Features¶
This plugin provides a set of tool interfaces for retrieving Chinese stock market data through the AKShare library. The main features cover market overview, individual stock information, sector data, real-time quotes, historical data, financial analysis, disclosure announcements, and fund flows.
Installation and Enablement¶
Before installation, make sure DeepSeek Harness is already installed. Add the plugin from the command line:
dsh plugin --profile web add github:xby_skill/xby-akshare
Typical Usage¶
After installation, agents can call the following tools. Before use, an API key usually needs to be configured first.
-
Set the API key
Callset_xby_apikeyin the chat to set the key. This key is automatically persisted and remains valid after a restart. -
Get the market overview
Callget_stock_sse_summaryto obtain an overview of stock data from the Shanghai Stock Exchange, or callget_stock_szse_summaryto obtain a market overview of the Shenzhen Stock Exchange. -
Get individual stock information
Callget_stock_individual_info_emto obtain individual stock information from East Money, or callget_stock_individual_basic_info_xqto obtain company profile information from Xueqiu Finance. -
Get historical data
Callget_stock_a_histto obtain historical K-line data for A-shares, or callget_stock_zh_a_hist_txto obtain Tencent Securities daily historical data, as well asget_stock_zh_a_hist_min_emto obtain daily intraday quotes. -
Get financial data and disclosures
Callget_stock_financial_analysis_indicatorto obtain financial indicator data, or callget_stock_zh_a_disclosure_report_cninfoto obtain information disclosure announcements from CNINFO. -
Get fund flows and rankings
Callget_stock_lhb_detail_emto obtain Dragon-Tiger List details, or callget_stock_individual_fund_flowto obtain individual stock fund flow data.
Notes¶
-
API key
This plugin requires an API key, which must be obtained by registering on the Xiao Benyang official website. -
Local development
The plugin supports local development and debugging mode. It can be installed from a local directory or debugged usingcordis.patch.yml.
Summary¶
xby-akshare provides DSH with rich access capabilities to Chinese stock market data. Through the AKShare library, developers can conveniently obtain various types of information, from real-time quotes to historical financial data. For more details, see the GitHub repository.