feat(skills): add tsl api reference skill

Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
This commit is contained in:
csh
2026-07-07 16:36:15 +08:00
parent 4cd6b9410f
commit e1f7ce052c
267 changed files with 185908 additions and 11996 deletions
@@ -0,0 +1,61 @@
# 期货 / 期货手续费
### `futuresfeeamount(endt, feeamounttype)`
获得指定日期货合约手续费(元/手),与系统参数(期货合约代码)相关
| 参数 | 类型 | 说明 |
| --------------- | --------- | ---------- |
| `endt` | datetime | 指定日, |
| `feeamounttype` | usrdefine | 手续费类型 |
返回:float
#### 示例
```tsl
setsysparam(pn_stock(),"cu1404");
return FuturesFeeAmount(inttodate(20140328),0);
```
### `futuresfeerate(endt, feeratetype)`
获得指定日期货合约手续费(交易额万分之),与系统参数(期货合约代码)相关
| 参数 | 类型 | 说明 |
| ------------- | --------- | ---------- |
| `endt` | datetime | 指定日, |
| `feeratetype` | usrdefine | 手续费类型 |
返回:float
#### 示例
```tsl
setsysparam(pn_stock(),"cu1404");
return FuturesFeeRate(inttodate(20140328),0);
```
### `futuresspfeeunit(endt, feetype)`
期货手续费单位,与系统参数(期货合约代码)相关
| 参数 | 类型 | 说明 |
| --------- | --------- | -------------------- |
| `endt` | datetime | date,指定日 |
| `feetype` | usrdefine | usrdefine,手续费类型 |
返回:string
### `futuresspfeecost(endt, feetype, amount, vol)`
期货手续费单位,与系统参数(期货合约代码)相关
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `endt` | date | date,指定日 |
| `feetype` | usrdefine | usrdefine,手续费类型 |
| `amount` | number | number,资金总额(元) |
| `vol` | integer | integer,资金总量(手) |
返回:real