Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes A-share northbound capital flows, sector allocation and stock position changes via Stock Connect.
Use this skill ↓59% 64%+5 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
重要提示:自 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: 整体资金流向
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.