♻️ refactor(tsl-api): tighten docs and retire stale tests

This commit is contained in:
csh
2026-08-21 10:11:48 +08:00
parent 2e8c46e152
commit 5484fc7519
24 changed files with 505 additions and 2700 deletions
@@ -195,17 +195,17 @@ return op_hv("SZ000002", 20210101T, -6);
<!-- tags: 金融 期权 基本函数 隐含波动率 Greeks Delta Gamma Theta Vega Rho -->
| 参数 | 类型 | 说明 |
| --------------- | ------- | ---------------------------------------------------- |
| `option_type` | integer | 期权类型,0 为看涨期权,1 为看跌期权 |
| `s` | real | 现货价格 |
| `x` | real | 行权价 |
| `close` | real | 期权交易价格 |
| `r` | real | 无风险收益率百分比 |
| `t` | real | 剩余期限月数 |
| `option_style` | string | 可选。默认行权方式,支持 `欧式``美式` |
| `method` | integer | 可选。默认定价方式,0 为默认,1 为 B_S,2 为二叉树 |
| `contract_type` | integer | 可选。默认 0;0 股票、1 指数、2 外汇、3 期货期权 |
| 参数 | 类型 | 说明 |
| --------------- | ------- | --------------------------------------------------- |
| `option_type` | integer | 期权类型,0 为看涨期权,1 为看跌期权 |
| `s` | real | 现货价格 |
| `x` | real | 行权价 |
| `close` | real | 期权交易价格 |
| `r` | real | 无风险收益率百分比 |
| `t` | real | 剩余期限月数 |
| `option_style` | string | 可选。默认行权方式,支持 `欧式``美式` |
| `method` | integer | 可选。默认定价方式,0 为默认,1 为 B_S,2 为二叉树 |
| `contract_type` | integer | 可选。默认 0;0 股票、1 指数、2 外汇、3 期货期权 |
| `rf` | real | 可选。默认 0;标的资产年股息率或外币无风险年利率(%) |
返回:array