Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aifinlab/a-share-futures-analysis
股指期货/期现价差分析。当用户说"股指期货"、"IF"、"IC"、"IM"、"IH"、"期指"、"基差"、"期现价差"、"升水"、"贴水"、"futures"、"期货贴水多少"、"对冲"、"期现套利"时触发。分析股指期货(IF沪深300/IC中证500/IH上证50/IM中证1000)的基差变化、期限结构、持仓变动,辅助判断市场情绪和套利机会。支持研报风格(formal)和快速查看风格(brief)。
Passed 7 of 13 test cases with the skill, and 8 of 13 without it.
3 fixed9 passed either way5 still failing6 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
计算股指期货基差时,如果现货沪深300指数是3900点,IF当月合约报价是3880点,基差计算的正确表达和正负号是什么?
| Checked | Without skill | With skill |
|---|---|---|
| Calculates the basis value as -20 points by subtracting spot from futures price. | Missed | Passed |
The instructions your model reads when the skill loads.
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
# 现货指数实时行情(IF/IH/IC/IM 对应现货)
python "$SCRIPTS/cn_stock_data.py" quote --code SH000300,SH000016,SH000905,SH000852
# SH000300=沪深300(IF), SH000016=上证50(IH), SH000905=中证500(IC), SH000852=中证1000(IM)
# 现货指数K线(近30个交易日,用于计算均线和走势对比)
python "$SCRIPTS/cn_stock_data.py" kline --code SH000300 --freq daily --start [30日前日期]
# 股指期货行情(akshare)
import akshare as ak
# 当月合约日线行情(symbol 格式:品种代码+0 表示当月连续)
df_if = ak.futures_zh_daily_sina(symbol='IF0') # IF当月连续
df_ih = ak.futures_zh_daily_sina(symbol='IH0') # IH当月连续
df_ic = ak.futures_zh_daily_sina(symbol='IC0') # IC当月连续
df_im = ak.futures_zh_daily_sina(symbol='IM0') # IM当月连续
# 下月合约:IF1, IH1, IC1, IM1
# 当季合约:IF2, IH2, IC2, IM2
# 下季合约:IF3, IH3, IC3, IM3
# 具体合约(如 IF2603 = 2026年3月合约)
df_contract = ak.futures_zh_daily_sina(symbol='IF2603')
web 搜索补充(数据源无法覆盖的关键信息):
Step 1: 期指+现货数据获取
test cases passed, vs 8 / 13 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.