feat(tsl-api-reference): expand API and module coverage

This commit is contained in:
csh
2026-08-14 17:12:55 +08:00
parent 8f1056130d
commit 3d3036ebe1
571 changed files with 47842 additions and 14458 deletions
@@ -30,3 +30,30 @@ setsysparam(pn_date(), 20181011T);
return StockPEG_III(20180822T, 2, 0);
// 输出:9.52957
```
## `stockPeG_v(end_t, n, data_type)`
声明:function
计算指定日最近 12 个月口径的 PEG
<!-- tags: 金融 股票 综合指标 PEG 最近12个月 市盈率 增长率 -->
| 参数 | 类型 | 说明 |
| ----------- | -------- | ----------------------------------------------- |
| `end_t` | datetime | 计算 PEG 的截止日 |
| `n` | integer | 增长率比较年份,1 表示去年,依次至 8 表示八年前 |
| `data_type` | integer | 数据口径代码 |
返回:real
### 示例
范例01:计算利亚德在指定日的最近 12 个月 PEG
```tsl
setSysParam(pn_stock(), "SZ300296");
setSysParam(pn_date(), 20181011T);
return stockPeG_v(20180822T, 2, 0);
// 输出:0.199741
```