Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-margin-trading
A股融资融券/两融分析。当用户说"融资融券"、"两融"、"融资余额"、"融券"、"margin trading"、"杠杆资金"、"融资盘"、"XX的融资余额"、"两融风向"、"杠杆水平"时触发。基于 akshare 融资融券数据和 cn-stock-data 行情数据,分析全市场两融趋势、个股融资融券变化、杠杆资金方向判断。支持研报风格(formal)和快速解读风格(brief)。不适用于北向资金(用 a-share-northbound)或基金持仓(用 a-share-fund-holding)。
Passed 17 of 21 test cases with the skill, and 13 of 21 without it.
and 6 more in the full report
7 fixed13 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
What is the command line syntax to run this margin trading skill runner using a JSON configuration file named config.json?
| Checked | Without skill | With skill |
|---|---|---|
| Specify python scripts/run_skill.py --input config.json for command line execution. | Missed | Passed |
The instructions your model reads when the skill loads.
# 融资融券数据(通过 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 搜索获取融资融券数据。
获取融资余额/融券余额时间序列 + 个股行情数据。
test cases passed, vs 13 / 21 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.