Skip to content

Commit

Permalink
feat: add futures_fees_info
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Mar 25, 2024
1 parent f8f442b commit cbc555b
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 1 deletion.
75 changes: 74 additions & 1 deletion docs/data/futures/futures.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,84 @@

### 期货基础数据

#### 期货交易费用参照表

接口: futures_fees_info

目标地址: http://openctp.cn/fees.html

描述: openctp 期货交易费用参照表

限量: 单次返回所有数据

输入参数

| 名称 | 类型 | 描述 |
|----|----|----|
| - | - | - |

输出参数

| 名称 | 类型 | 描述 |
|----------|---------|----|
| 交易所 | object | - |
| 合约 | object | - |
| 合约名称 | object | - |
| 品种 | object | - |
| 合约乘数 | int64 | - |
| 开仓费率 | float64 | - |
| 开仓费/手 | float64 | - |
| 平仓费率 | float64 | - |
| 平仓费/手 | float64 | - |
| 平今仓费率 | float64 | - |
| 平今仓费/手 | float64 | - |
| 上日结算价 | float64 | - |
| 成交量 | int64 | - |
| 空盘量 | float64 | - |
| 1手开仓手续费 | float64 | - |
| 1手平仓手续费 | float64 | - |
| 1手平今仓手续费 | float64 | - |
| 做多保证金率 | float64 | - |
| 做多保证金/手 | float64 | - |
| 做空保证金率 | float64 | - |
| 做空保证金/手 | float64 | - |
| 做多1手保证金 | float64 | - |
| 做空1手保证金 | float64 | - |
| 最小变动价位 | float64 | - |
| 1Tick盈亏 | float64 | - |

接口示例

```python
import akshare as ak

futures_fees_info_df = ak.futures_fees_info()
print(futures_fees_info_df)
```

数据示例

```
交易所 合约 合约名称 品种 ... 做多1手保证金 做空1手保证金 最小变动价位 1Tick盈亏
0 CFFEX IC2309 中证500期货2309 IC ... 173844.00 173844.00 0.2 40.0
1 CFFEX IC2310 中证500期货2310 IC ... 173916.00 173916.00 0.2 40.0
2 CFFEX IC2312 中证500期货2312 IC ... 173664.00 173664.00 0.2 40.0
3 CFFEX IC2403 中证500期货2403 IC ... 172986.00 172986.00 0.2 40.0
4 CFFEX IF2309 股指2309 IF ... 171828.00 171828.00 0.2 60.0
.. ... ... ... .. ... ... ... ... ...
726 SHFE zn2404 zn2404 zn ... 13438.75 13438.75 5.0 25.0
727 SHFE zn2405 zn2405 zn ... 13393.25 13393.25 5.0 25.0
728 SHFE zn2406 zn2406 zn ... 13386.75 13386.75 5.0 25.0
729 SHFE zn2407 zn2407 zn ... 13360.75 13360.75 5.0 25.0
730 SHFE zn2408 zn2408 zn ... 13344.50 13344.50 5.0 25.0
[731 rows x 25 columns]
```

#### 期货手续费与保证金

接口: futures_comm_info

目标地址: http://www.9qihuo.com/qihuoshouxufei
目标地址: https://www.9qihuo.com/qihuoshouxufei

描述: 九期网-期货手续费数据

Expand Down
1 change: 1 addition & 0 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@
"stock_hold_management_detail_cninfo" # 高管持股变动明细
# 期货手续费
"futures_comm_info" # 期货手续费
"futures_fees_info" # 期货交易费用参照表
# B 股实时行情数据和历史行情数据
"stock_zh_b_spot" # B 股实时行情数据
"stock_zh_b_daily" # B 股历史行情数据(日频)
Expand Down

0 comments on commit cbc555b

Please sign in to comment.