mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
9c99cbf8ab
* feat(xueqiu): add danjuan fund account commands * refactor(xueqiu): convert danjuan fund YAML adapters to TS - Replace 3 YAML files with 4 TS files (shared utils + 3 commands) - Extract shared helpers: fetchDanjuanApi, fetchAssetGain, collectHoldings - Fix double-navigation by using navigateBefore instead of pipeline navigate - Unify error messages to English with Hint pattern - Mask real account ID in docs example - Add explicit default for --account arg * refactor(xueqiu): optimize danjuan fund adapters - Single page.evaluate with Promise.all for parallel account fetching (1 browser round-trip instead of N+1) - Merge fund-accounts into fund-holdings (account info visible per row) - 3 files: danjuan-utils.ts (shared), fund-holdings.ts, fund-snapshot.ts - Strong TypeScript interfaces for all data shapes - Update docs to reflect 2-command design * fix(xueqiu): preserve danjuan pre-navigation metadata * fix(xueqiu): fail on incomplete danjuan snapshots --------- Co-authored-by: jackwener <jakevingoo@gmail.com>
1.9 KiB
1.9 KiB
Xueqiu (雪球)
Mode: 🔐 Browser · Domain: xueqiu.com / danjuanfunds.com
Commands
| Command | Description |
|---|---|
opencli xueqiu feed |
获取雪球首页时间线 |
opencli xueqiu earnings-date |
获取股票预计财报发布日期 |
opencli xueqiu hot-stock |
获取雪球热门股票榜 |
opencli xueqiu hot |
获取雪球热门动态 |
opencli xueqiu search |
搜索雪球股票(代码或名称) |
opencli xueqiu stock |
获取雪球股票实时行情 |
opencli xueqiu watchlist |
获取雪球自选股列表 |
opencli xueqiu fund-holdings |
获取蛋卷基金持仓明细(可用 --account 按子账户过滤) |
opencli xueqiu fund-snapshot |
获取蛋卷基金快照(总资产、子账户、持仓,推荐 -f json) |
Usage Examples
# Quick start
opencli xueqiu feed --limit 5
# Search stocks
opencli xueqiu search 茅台
# View one stock
opencli xueqiu stock SH600519
# Upcoming earnings dates
opencli xueqiu earnings-date SH600519 --next
# Danjuan all holdings
opencli xueqiu fund-holdings
# Filter one Danjuan sub-account
opencli xueqiu fund-holdings --account 默认账户
# Full Danjuan snapshot as JSON
opencli xueqiu fund-snapshot -f json
# JSON output
opencli xueqiu feed -f json
# Verbose mode
opencli xueqiu feed -v
Prerequisites
- Chrome running and logged into
xueqiu.com - For fund commands, Chrome must also be logged into
danjuanfunds.comand able to openhttps://danjuanfunds.com/my-money - Browser Bridge extension installed
Notes
fund-holdingsexposes both market value and share fields (volume,usableRemainShare)fund-snapshot -f jsonis the easiest way to persist a full account snapshot for later analysis or diffing- If the commands return empty data, first confirm the logged-in browser can directly see the Danjuan asset page