feat(xueqiu): add kline and groups adapters#809
Merged
jackwener merged 3 commits intojackwener:mainfrom Apr 5, 2026
Merged
Conversation
Add kline.yaml: fetch candlestick/OHLCV data from Xueqiu v5 chart API. Supports custom days lookback and outputs date, open, high, low, close, volume, percent. Add groups.yaml: list Xueqiu portfolio/group entries. Co-Authored-By: Claude <noreply@anthropic.com>
The previous implementation used /portfolio/stock/list.json which only returns stocks in a single group and does not return the group list. Switch to /portfolio/list.json which returns all portfolio groups including 实盘, 沪深, 港股, 美股, 模拟(pid=-4), 持仓 etc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove the unused 'category' parameter (the API ignores it; all groups live under category=1 regardless) - Replace with 'pid' parameter to allow fetching any group: -4=simulated, -5=SH/SZ, -6=US stocks, -7=HK stocks, etc. - API path still uses category=1 but pid is now user-controllable Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add two new YAML adapters for Xueqiu (雪球) to fetch stock chart data and portfolio groups.
New Commands
Implementation Details
credentials: 'include')navigate→evaluate→map, consistent with existing Xueqiu adaptersSH/SZ(A-shares), US stocks (e.g.AAPL)