Preface¶
When conducting investment research assistance or portfolio tracking, common practices include writing custom crawlers, maintaining Cookies, or asking models to “guess” the Xueqiu page structure in conversations. Portfolio codes, user IDs, and rebalancing details are scattered across different APIs, making manual URL construction costly and prone to failure due to page layout changes.
Below introduces the community Skill “Xueqiu Information Retrieval” on SkillHub (coordinates @user_6eb4c6c0/xueqiu-skill, current version 1.0.3). It consolidates Xueqiu-related queries into a set of POST JSON API specifications, allowing Agents to call according to documentation when needing data on portfolios, users, market quotes, rebalancing history, etc., rather than improvising request formats.
What Is This¶
“Xueqiu Information Retrieval” is a SKILL.md skill package for Agents: it describes how to fetch investment-related data through a third-party Xueqiu data API (online Base URL is https://wxpub.aibana.art). Published by SkillHub user user_6eb4c6c0, sourced from community, categorized as professional; SkillHub marks requires_api_key=true, meaning app_id and secure_key must be configured before use.
The skill itself does not contain executable scripts; its core is API contracts, parameter tables, and curl examples. After reading SKILL.md, Agents select corresponding method names (e.g., searchCube, getCubeRebalancing) when users ask questions to assemble requests.
Core Features¶
The following capabilities are derived from SKILL.md / README.md in the skill package, categorized by API type.
Search
searchUser: Search Xueqiu users by keywordsearchCube: Search investment portfolios by keywordsearchStatus: Search posts by keyword (summary is HTML, post links need to be concatenated withhttps://xueqiu.com{target})searchCubeRanked: Search portfolios and sort by total return, supports filters likeminTotalGain,minAnnualRate,topN
Market Quotes
getCubeQuote: Portfolio real-time NAV and returns (symbollikeZH349701)getCubeNavHistory: Portfolio daily NAV history (cubeId+count, maximum ~365 days)
Portfolios & Users
getCubeInfo: Portfolio details, holdings, and rebalancing-related metadata (for someSP-prefixed old portfolios, certain return fields may benull)getUserCubes: All portfolios created by a usergetUserTimeline: List of user’s original posts
Rebalancing
getCubeRebalancing: Portfolio historical rebalancing records (including stock details changed in each rebalancing)
All common request bodies require app_id, secure_key; online paths look like POST https://wxpub.aibana.art/xueqiu/{method}, local debugging Base URL is http://localhost:8080/wxpublic_fetch.
Installation & Activation¶
1. Install SkillHub CLI (if not already installed)¶
First check if CLI exists:
command -v skillhub && skillhub --version
If not installed, follow SkillHub’s official installation documentation (complete installation example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
See: https://skillhub.cn/install/skillhub.md for instructions.
2. Install this skill to current Agent’s skills directory¶
When installing, must use --dir to point to the skills directory recognized by the current client, otherwise defaulting to ./skills/ may not be loaded. The installation method given by SkillHub search page is:
skillhub install xueqiu-skill --namespace user_6eb4c6c0 --dir <your skills directory>
Common paths (excerpt from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under project
Alternatively, on the SkillHub skill page, send the prompt to AI and let it install @user_6eb4c6c0/xueqiu-skill according to https://skillhub.cn/install/skillhub.md.
After installation, restart or refresh skill index according to your client’s requirements.
3. Configure API credentials¶
Register an account at https://wxpub.aibana.art, create app_id and secure_key on the “Skill Skills” page. README suggests informing Agent of credentials, e.g., stating your app_id and secure_key to initiate calls during conversations.
Billing and rate limits (original text from skill documentation):
- Each successful call costs 0.2 yuan; failed calls automatically refund; insufficient balance returns 402
- Maximum 10 upstream requests within 60 seconds (shared across all users); client recommended approximately every 6 seconds; queuing more than 20 may result in 429, waiting more than 120 seconds may result in 503
Typical Usage¶
Natural Language (let Agent select API)¶
Example questions from skill README include:
- “Help me search portfolios with keyword ‘实盘’ (real trading), sorted by total return, top 5”
- “Search posts related to ‘散户老牛’ (Retail Bull)”
- “What is the current NAV of ZH349701?”
- “Pull the last 10 rebalancings for portfolio 12363”
- “What posts has 天地侠影 recently published?”
After enabling the skill and configuring credentials, Agent should map to specific method and JSON body according to SKILL.md.
curl Reproduction (Search Posts)¶
The following command comes from SKILL.md, replace ak_xxx / yyy with real credentials:
curl -X POST https://wxpub.aibana.art/xueqiu/searchStatus \
-H "Content-Type: application/json" \
-d '{"app_id":"ak_xxx","secure_key":"yyy","keyword":"散户老牛","count":10,"page":1}'
curl Reproduction (Portfolio Ranking Top 5)¶
curl -X POST https://wxpub.aibana.art/xueqiu/searchCubeRanked \
-H "Content-Type: application/json" \
-d '{"app_id":"ak_xxx","secure_key":"yyy","keyword":"实盘","count":30,"topN":5}'
On error, response looks like {"error":"..."}; 401 check credentials, 402 recharge, 502 mostly due to upstream Xueqiu failure and documentation states automatic refund.
Applicable Scenarios & Notes¶
Suitable For
- Already using Skills in environments like Cursor, Claude Code, Codex, wanting to query Xueqiu portfolios, users, posts, NAV and rebalancing in conversations, without writing crawlers each time
- Can accept pay-per-use and global rate-limited third-party APIs, willing to maintain balance and keys in wxpub backend
Limitations & Notes
- Data is relayed through
wxpub.aibana.art; compliance and stability depend on this service and Xueqiu upstream; 502/503 need retry according to documentation getCubeInfomay shownullfields for someSP-prefixed portfolios or sync delay scenarios; callers need null value handlingsearchStatusreturns HTML summaries; need to clean before display- SkillHub page statistics (as of data capture): rating 100000, downloads 3955; not directly related to skill business capabilities, selection should still be based on API documentation
- README mentions
接口调用说明.md(API Call Instructions.md); the package distributed by current SkillHub uses SKILL.md as the complete specification
Conclusion¶
“Xueqiu Information Retrieval” organizes Xueqiu portfolio, user, market quote and rebalancing queries into Agent-readable API skills: installation coordinates @user_6eb4c6c0/xueqiu-skill, configure app_id / secure_key and then can call by method names in conversations or curl.
Official entry points:
- API page: https://api.skillhub.cn/user_6eb4c6c0/xueqiu-skill
- SkillHub page: https://www.skillhub.cn/skills/user_6eb4c6c0/xueqiu-skill