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,148 @@
# 基金 / 基金管理人交易明细
### `fundGetManagerTradeSharesData(fund_id, r_date2, r_date, t_type)`
获取指定基金指定区间基金管理人交易明细数据 当RDate2=RDate时可取指定日数据
| 参数 | 类型 | 说明 |
| --------- | ------ | ------------------- |
| `fund_id` | string | 证券,基金代码 |
| `r_date2` | int | 报告期,开始报告期 |
| `r_date` | int | 报告期,指定报告期 |
| `t_type` | int | 用户自定义,交易方式 |
返回:array
### `fundManagerTradeAmountLYear(r_date, t_type)`
获得指定报告期最近1年指定基金管理人交易金额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeAmountQj(r_date2, r_date, t_type)`
获得指定报告期区间指定基金管理人交易金额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `r_date2` | any | 报告期,开始报告期 |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeAmountReport(r_date, t_type)`
获得指定报告期指定基金管理人交易金额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeAveragePriceReport(r_date, t_type)`
获得指定报告期指定基金管理人交易均价,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesLYear(r_date, t_type)`
获得指定报告期最近1年指定基金管理人交易份额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesOfRateLYear(r_date, t_type)`
获得指定报告期最近1年指定基金管理人交易份额占基金总份额(%),系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesOfRateQj(r_date2, r_date, t_type)`
获得指定报告期区间指定基金管理人交易份额占基金总份额(%),系统参数:证券代码
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `r_date2` | any | 报告期,开始报告期 |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesOfRateReport(r_date, t_type)`
获得指定报告期指定基金管理人交易份额占基金总份额(%),系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesReport(r_date, t_type)`
获得指定报告期指定基金管理人交易份额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesYear(r_date, t_type)`
获得指定报告期本年以来指定基金管理人交易份额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| -------- | -------- | ------------------- |
| `r_date` | datetime | 报告期,指定报告期 |
| `t_type` | any | 用户自定义,交易方式 |
返回:float
### `fundManagerTradeSharesDataQj(fund_id, r_date2, r_date, t_type, c_type)`
获得指定报告期区间指定基金管理人交易份额、金额、均价、占比等指标
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `fund_id` | String | 证券,基金代码 |
| `r_date2` | Integer | 报告期,开始报告期 |
| `r_date` | Integer | 报告期,指定报告期 |
| `t_type` | Integer | 用户自定义,交易方式 |
| `c_type` | Integer | 用户自定义,计算方式 |
返回:real
#### 示例
```tsl
//"OF011837"在2024年报至2025三季报全部基金管理人交易份额
return fundManagerTradeSharesDataQj("OF011837",20241231,20250930,0);
//结果:25796008.03
```