Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-northbound
A股北向资金(沪深港通)分析。当用户说"北向资金"、"外资"、"沪港通"、"深港通"、"陆股通"、"northbound"、"外资在买什么"、"北向今天怎么样"、"外资流向"时触发。分析北向资金整体流向趋势、行业配置偏好、个股增减仓变动,帮助理解外资对A股市场的态度和布局方向。通过 cn-stock-data 获取北向资金流向数据和个股行情,结合 web 搜索获取北向持股明细和行业分布。支持机构资金分析风格(formal)和个人跟踪笔记风格(brief)。
Passed 10 of 16 test cases with the skill, and 9 of 16 without it.
and 2 more in the full report
4 fixed10 passed either way5 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
重要提示:自 2024 年 8 月起,沪深港通北向资金每日净流入明细不再实时公开披露(南向数据正常)。cn-stock-data 的 north_flow 命令返回的数据可能全为 0。应以 web 搜索为主要数据来源。
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
# 大盘指数行情(对比市场走势)
python "$SCRIPTS/cn_stock_data.py" quote --code SH000001,SZ399001,SZ399006
# 个股行情(北向重仓股)
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE1],[CODE2],...
# 个股资金流向
python "$SCRIPTS/cn_stock_data.py" fund_flow --code [CODE] --days 30
# K线(叠加资金流分析)
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [起始日期]
# 南向资金(仍可用)
python -c "import akshare as ak; df=ak.stock_hsgt_fund_flow_summary_em(); print(df[df['资金方向']=='南向'].to_json(orient='records', force_ascii=False))"
核心数据通过 web 搜索获取:
Step 1: 整体资金流向
test cases passed, vs 9 / 16 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.