Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes A-share margin trading balances, single-stock financing changes and leveraged fund direction.
Use this skill ↓63% 83%+21 ptsof test cases passed
Passed 20 of 24 test cases with the skill, and 15 of 24 without it.
What is the command line syntax to run this margin trading skill runner using a JSON configuration file named config.json?
Specify python scripts/run_skill.py --input config.json for command line execution.
3 of 3 safety checks passed
# 融资融券数据(通过 akshare)
# 全市场融资融券汇总
python -c "import akshare as ak; df=ak.stock_margin_sse(start_date='20260101'); print(df.to_json(orient='records', force_ascii=False))"
# 个股融资融券明细
python -c "import akshare as ak; df=ak.stock_margin_detail_sse(date='20260315'); print(df.to_json(orient='records', force_ascii=False))"
# 行情数据
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期]
akshare 接口名可能随版本变化,如接口不可用,通过 web 搜索获取融资融券数据。
获取融资余额/融券余额时间序列 + 个股行情数据。
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.