feat(tsl-api-reference): expand and reorganize api catalog

Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
This commit is contained in:
csh
2026-08-10 18:26:24 +08:00
parent 2938300acb
commit 9010829c6d
1186 changed files with 243901 additions and 219769 deletions
@@ -0,0 +1,59 @@
# 数据仓库 / 选股与取数
## `defaultRepId()`
声明:function
返回默认报告期ID。 函数首先获得系统参数getsysparam('DefaultRepID'),如果能获取值,则返回该数据;否则,获取今天的日期,返回最近的中报或年报。判断如下: 1)1-3月:返回去年中报; 2)4-9月:返回去年年报: 3)10-12月:返回今年中报;
返回:int
### 示例
范例01:调用函数
```tsl
oV := BackUpSystemParameters2();
setsysparam(pn_stock(), 'SZ000002');
RDate := DefaultRepID();
V := ReportNew(46002, RDate);
return v;
```
## `evalstring(s)`
声明:function
内核使用,返回表达式s的值
| 参数 | 类型 | 说明 |
| ---- | ------ | -------------- |
| `s` | string | 字符串,表达式 |
返回:int
### 示例
范例01:返回:4
```tsl
return evalstring('1+3');
// 输出:4
```
## `qwpMaxCount()`
声明:function
定义最大数据个数。对于账号'sri-sjtu','yyw','debugaccount',返回1000000,即最大数据个数是1000000,其余账号返回50000
返回:int
### 示例
范例01:返回:50000
```tsl
return QWPMaxCount();
// 输出:50000
```