Introduction¶
When developing agents for the Chinese stock market, integrating third-party data sources directly often requires handling complex authentication and API adaptation. The xby-akshare-one plugin encapsulates an MCP server based on akshare-one, providing DeepSeek Harness (DSH) with a standardized financial data access layer to address the cumbersome issues of data retrieval and parsing.
Plugin Positioning¶
This is a China stock market data interface service plugin based on akshare-one. It provides comprehensive interfaces covering historical market data, real-time market data, news, and financial data such as balance sheets, income statements, and cash flow statements.
Core Features¶
The plugin provides the following tools:
set_xby_apikey: Set the API key in the chat. Supports automatic persistence and remains valid after restart.get_hist_data: Retrieve historical market data.get_realtime_data: Retrieve real-time market data.get_news_data: Retrieve stock-related news.get_balance_sheet: Retrieve the balance sheet.get_income_statement: Retrieve the income statement.get_cash_flow: Retrieve the cash flow statement.get_inner_trade_data: Retrieve insider trading data.get_financial_metrics: Retrieve key financial metrics.get_time_info: Retrieve current time information.
Installation and Enablement¶
Method 1: Install Directly from GitHub (Recommended)¶
dsh plugin --profile web add github:xby_skill/xby-akshare-one
Method 2: Install from a Local Directory (Development Mode)¶
For local development and debugging only.
dsh plugin --profile web add /absolute/path/to/xby-akshare-one
Method 3: Development Debugging via cordis.patch.yml¶
dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml
Configuration and Usage¶
Obtain the API Key¶
Before use, go to the Xiaobenyang official website to register and obtain an API key.
Typical Invocation Examples¶
- Call the
set_xby_apikeytool in the DSH chat to provide the API key. - Call
get_hist_datato retrieve historical market data. - Call
get_realtime_datato retrieve real-time market data. - Call
get_news_datato retrieve related news. - Call
get_balance_sheetto retrieve financial statement data.
Applicable Scenarios and Notes¶
This plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and license. Local development and debugging (Method 2 and Method 3) are intended for development environments only and should not be used directly in production environments.
Reference Resources¶
- Plugin directory: xby-akshare-one
- Repository address: xby-akshare-one