加载中...
SELECT date, instrument, product_code, fut_if_basis_rate, fut_if_basis_annual, fut_if_basis_annual_ma20, fut_if_days_to_expiryFROM cn_future_factors_index_basisWHERE date >= '2026-11-04'ORDER BY dateLIMIT 1008 个字段 · 主键 date + instrument
股指期货 F1(成交量最大合约)相对现货指数的基差率、年化基差率,以及期现成交比。用于股指择时与套保成本估计。
- 因子数量:5 个
- 主键:
date+instrument(品种主力代码,如rb8888.SHF)- 更新频率:日频增量
| 上游表 | 用途 |
|---|---|
cn_future_bar1d | IF / IH / IC / IM 具体合约 |
cn_future_basic_info | 到期日 |
cn_stock_index_bar1d | 现货指数:IF→000300.SH、IH→000016.SH、IC→000905.SH、IM→000852.SH |
| # | 字段名 | 分组 | 定义 |
|---|---|---|---|
| 1 | fut_if_basis_rate | 期现基差 | 期现基差率:(F1 − S) / S,负值为贴水 |
| 2 | fut_if_basis_annual | 期现基差 | 年化基差率:(F1 − S) / S × 365 / 剩余天数;临近交割时分母很小,波动会放大 |
| 3 | fut_if_basis_annual_ma20 | 期现基差 | 年化基差率的 20 日均值 |
| 4 | fut_if_days_to_expiry | 期现基差 | F1 合约剩余自然日 |
| 5 | fut_if_volume_ratio | 期现成交 | 期现成交比:品种全部合约成交额 / 现货指数成交额 |
date + instrument,instrument 为品种主力代码(cn_future_bar1d 的 8888 行,如 rb8888.SHF,不复权),product_code 为品种代码,大小写与交易所一致,跨表关联用它。cn_future_bar1d 的 8888 行逐行对齐(剔除 pp_f、l_f、v_f 等月均价品种)。JR、PM、RI、WH、ZC 等长期零成交品种在零成交日的主力收盘价为空,因子也为空。m_* 算子一致),窗口未填满时为空;比值的分母为 0 时记为空,不出现 inf。c_preprocess(x, 5)。截面只有约 70 个活跃品种,建议先按成交额过滤再看 IC,并补看时序胜率。fut_if_basis_annual_ma20 或配合 fut_if_days_to_expiry 过滤。{{sample_data}}
SELECT date, instrument, product_code, fut_if_basis_rate, fut_if_basis_annual, fut_if_basis_annual_ma20, fut_if_days_to_expiryFROM cn_future_factors_index_basisWHERE date >= '2026-11-04'ORDER BY dateLIMIT 100