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,84 @@
# 股票 / 区间
### `bkHsgValueN(field, beg_t, end_t, _type)`
通道区间的相关数据的抽象函数,与系统参数(通道代码)相关。南向港股通交易单位为港币,北向沪深股通交易单位为元。如果返回0,说明区间通道无交易或无相关数据的交易。
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------- |
| `field` | string | 字符串。列名 |
| `beg_t` | datetime | 日期。开始日期 |
| `end_t` | datetime | 日期。截止日期 |
| `_type` | any | 整数。计算类型,取值如下: |
返回:float
### `getRepurchaseVol(stock_id, beg_t, end_t, rtype, stype, ctype, ex_rate)`
获得区间内累计回购数量、金额、占比
| 参数 | 类型 | 说明 |
| ---------- | -------- | ------------------- |
| `stock_id` | string | 证券,证券代码 |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | int | 用户自定义,回购类型 |
| `stype` | int | 用户自定义,股票种类 |
| `ctype` | int | 用户自定义,计算类型 |
| `ex_rate` | int | 用户自定义,汇率类型 |
返回:float
### `stocktbdeleterepeatdata(t)`
删除日重复数据
| 参数 | 类型 | 说明 |
| ---- | ----- | ------------------ |
| `t` | table | table,公开信息数据 |
返回:array
### `stocktbgetinfo(stockarr, begt, endt, ydtype, direction)`
区间内指定异动类型与交易方向的交易公开信息报表,与系统参数(证券)相关.
| 参数 | 类型 | 说明 |
| ----------- | --------- | ------------------------------------ |
| `stockarr` | array | array of string,证券列表 |
| `begt` | datetime | ,开始日 |
| `endt` | datetime | ,截止日 |
| `ydtype` | usrdefine | ,异动类型 |
| `direction` | usrdefine | usrdefine,交易动作卖出=0买入=1全部=2 |
返回:array
### `stocktbgetinfoyddata(ydtype)`
获取公开交易数据异动类型信息
| 参数 | 类型 | 说明 |
| -------- | --------- | -------- |
| `ydtype` | usrdefine | 异动类型 |
返回:array
### `stocktbsectionamount(t)`
公开交易信息区间成交金额
| 参数 | 类型 | 说明 |
| ---- | ---- | -------------------- |
| `t` | int | integer,公开信息数据 |
返回:float
### `stocktbsectiondate(t)`
区间内交易公开信息涉及到的异常日期(证券)相关.
| 参数 | 类型 | 说明 |
| ---- | ----- | -------------- |
| `t` | table | table,公开数据 |
返回:array