Files
jackwener__opencli/docs/adapters/browser/xueqiu.md
iridite 9c99cbf8ab feat(xueqiu): add Danjuan fund account commands (#391)
* 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>
2026-03-25 13:32:41 +08:00

1.9 KiB
Raw Permalink Blame History

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.com and able to open https://danjuanfunds.com/my-money
  • Browser Bridge extension installed

Notes

  • fund-holdings exposes both market value and share fields (volume, usableRemainShare)
  • fund-snapshot -f json is 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