Stock RPS Data Analysis: Integrating Jiukuan Quant REST API via Agent Skill

Preface

When performing A-share related Q&A in environments like Cursor or Claude Code, a common practice is to temporarily write scripts to call market or financial interfaces, and then paste the JSON back into the conversation for the model to interpret. This involves scattered interfaces, numerous fields, and the need to manually append risk warnings, resulting in high costs and a high risk of missing context. Below is an introduction to the community Skill “Stock RPS Data Analysis” (Stock RPS Data Analysis) on SkillHub (coordinates @user_577f8e79/jiukuan-stock-rps-api, current version v1.0.6). It encapsulates various /api/v1/ REST capabilities from the Jiukuan Quant (9quant) side into a workflow callable by Agents. It emphasizes outputting objective, structured reports with risk warnings and disclaimers, and does not provide investment advice.

What is this

“Stock RPS Data Analysis” is categorized as data-analysis, sourced from the community, and maintained by the publisher user_577f8e79 (labeled as Jiukuan Youdao on the SkillHub page). Its positioning can be summarized as: Querying 50+ REST interfaces (path prefix /api/v1/) related to limit up/down, sectors, stock selection, financials, long/short radar, and RPS via the Jiukuan Quant stock API, where the Agent interprets the data and generates structured reports. The data service connects to https://9quant.online; before use, you need to configure the api_key in config.json under the skill directory (contact Jiukuan backend to obtain). SkillHub tag requires_api_key=true.

Core Functions

According to the official introduction, the capability domains covered by the Skill include:

  1. Limit Up/Down: Query and interpret data related to limit up and limit down.
  2. Sectors: Data queries regarding sector structure and sector dimensions.
  3. Stock Selection: Data-side support for stock selection ideas including RPS and net profit gaps (specific interfaces are subject to Jiukuan documentation and instructions within the Skill).
  4. Financials: Queries related to financial indicators and reports.
  5. Long/Short Radar: Market signal data of the long/short radar type.
  6. RPS: Common dimensions for technical analysis such as Relative Price Strength (RPS).

The output side emphasizes two points: first, objective data interpretation and structured reports; second, the reports include risk warnings and disclaimers, clearly stating that no investment advice is provided. This differs from simply asking the model to “guess the trend” and is more suitable for review and research workflows that require verifiable data sources.

Installation and Activation

Install SkillHub CLI (if not installed)

First, check if skillhub is already installed:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install this Skill

During installation, you must use --dir to point to the current Agent’s skills directory; otherwise, if installed to the default ./skills/, it might not be recognized. Taking Cursor as an example, the common path is ~/.cursor/skills/:

skillhub install @user_577f8e79/jiukuan-stock-rps-api --dir ~/.cursor/skills/

You can also send the following prompt to the AI to let it install via the official process:

Please install `@user_577f8e79/jiukuan-stock-rps-api` according to https://skillhub.cn/install/skillhub.md.

For skills directories in other clients (replace --dir during installation), please refer to SkillHub documentation. For example, Claude Code is ~/.claude/skills/, and Codex is ~/.codex/skills/ or .agents/skills/ under the project. After installation, refresh or restart according to the requirements of the client being used to ensure the Skill is loaded.

Configure API Key

Create or edit config.json in the skill root directory (referred to as {baseDir} in the documentation) and write in the api_key provided by Jiukuan:

{
  "api_key": "Your Jiukuan API Key"
}

The api_key must be obtained by contacting Jiukuan through their backend. If not configured or if the Key is invalid, requests connecting to https://9quant.online will fail. Most interfaces may require corresponding permissions (such as VIP) on the Jiukuan side; this is subject to the actual activation status on the Jiukuan platform.

Typical Usage

The official page does not provide fixed CLI subcommand examples; the design of this Skill is: raise requirements related to Jiukuan API data in the conversation, and the Agent will select interfaces, pull data, and organize reports according to the SKILL.md specifications. You can ask questions following these ideas (wording can be replaced, the core is to clarify the target, time range, or strategy name):

  1. Limit Up/Down and Environment: e.g., “Compare the number of limit-up and limit-down stocks today with yesterday, organize into a table using Jiukuan data, and add a sentence explaining the market structure.”
  2. Sectors: e.g., “List the current strong sectors and the leading stocks within them, with data from the Jiukuan API.”
  3. RPS / Stock Selection: e.g., “Filter targets with top relative strength in the recent period based on RPS, and explain the filtering conditions and data field sources.”
  4. Financials and Long/Short Radar: e.g., “Query the latest financial summary and long/short radar indicators for a specific stock; only provide objective listing and interpretation, no buy/sell advice.”

Through the above steps, the Agent should return structured content with section divisions and retain risk warnings and disclaimers at the end of the text. If a request fails due to permissions or parameters, adjust the query conditions based on the returned error message or contact Jiukuan to confirm the Key and interface permissions.

Applicable Scenarios and Notes

Who is it for

  • Developers or researchers already using or planning to use Jiukuan Quant API for A-share data research, who wish to hand over “calling interfaces + reading fields + writing reports” to an Agent.
  • Scenarios requiring a quick view of dimensions such as limit up/down, sectors, stock selection, financials, long/short radar, and RPS in conversations, with an output that is traceable to the API rather than pure model speculation.

Limitations and Notes

  • Must configure api_key in {baseDir}/config.json; SkillHub marks this Skill as dependent on an API Key.
  • Data and interface rules are subject to the Jiukuan platform (https://9quant.online); the community Skill version is v1.0.6. For upgrades, pay attention to @user_577f8e79/jiukuan-stock-rps-api on SkillHub.
  • SkillHub statistics (based on scraped data): Category data-analysis, Score 100000, Downloads 6661; metadata such as install count is subject to real-time display on the SkillHub page.
  • This Skill explicitly does not provide investment advice; reports are for information organization and objective interpretation only. Real trading decisions require assuming your own risks and complying with regulatory requirements.

Conclusion

“Stock RPS Data Analysis” binds Jiukuan Quant’s 50+ /api/v1/ REST capabilities with Agent report generation, making it suitable for automating data fetching and structured explanation in daily market reviews. For installation, configuration, and details, see SkillHub:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye