feat(tsl-api-reference): index class and unit APIs

Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
This commit is contained in:
csh
2026-07-29 15:47:46 +08:00
parent 9edc8fc868
commit 13be5ea0aa
239 changed files with 39157 additions and 12846 deletions
@@ -2,6 +2,8 @@
## `qkfilterCC_createDateTreeIndex(data_cc, datefield, if_sort)`
声明:function
持仓类数据 根据日期构建索引;持仓类数据,要求已按日期 排序,从小到大,相同日期放一起
| 参数 | 类型 | 说明 |
@@ -14,6 +16,8 @@
## `qkfilterMJZ_createDateCodeTreeIndex(data_mjz, datefiled, codefiled)`
声明:function
多净值类数据,根据日期、代码构建索引 截止日、代码 是唯一的
| 参数 | 类型 | 说明 |
@@ -26,6 +30,8 @@
## `GetSWHYBKbydate_IPO(indexid, endt)`
声明:function
GetSWHYBKbydate_IPO 相关函数。
| 参数 | 类型 | 说明 |
@@ -37,6 +43,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `down(rsp_cycle, n)`
声明:function
高频下行波动率(%)
| 参数 | 类型 | 说明 |
@@ -48,6 +56,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `invoicePrice(bond_id)`
声明:function
返回指定期货相对于指定债券标的发票价格,与系统证券代码时间周期相关。
| 参数 | 类型 | 说明 |
@@ -58,6 +68,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `_v12(index_id, endt, qk_type, eg, detail_t)`
声明:function
通过预测指数成分股的分红时间和分红金额,从而预测分红点数。
| 参数 | 类型 | 说明 |
@@ -72,12 +84,16 @@ GetSWHYBKbydate_IPO 相关函数。
## `tsExpertClientConfig()`
声明:function
客户端行为控制函数相关函数。
返回:any
## `table(t)`
声明:function
依据数组类型返回不同的值。
| 参数 | 类型 | 说明 |
@@ -88,6 +104,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `mdo(function_name, in1, in_n)`
声明:function
单返回值的MATLAB函数调用。
| 参数 | 类型 | 说明 |
@@ -100,6 +118,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `mdo2(function_name, n, out1, out_n, in1, in_n)`
声明:function
多个返回值的MATLAB函数调用。
| 参数 | 类型 | 说明 |
@@ -115,6 +135,8 @@ GetSWHYBKbydate_IPO 相关函数。
## `menablefmarray(level)`
声明:function
设置Matlab数据转换成天软fmarray的模式
| 参数 | 类型 | 说明 |
@@ -143,6 +165,8 @@ return rdo2 mGetVar("C");
## `blpCall(options, svc_url, request, call_back)`
声明:function
需要安装了彭博API
| 参数 | 类型 | 说明 |
@@ -156,6 +180,8 @@ return rdo2 mGetVar("C");
## `tenantCall(session_key, call_name, param, timeout)`
声明:function
平台中通过租户方式调用指定功能
| 参数 | 类型 | 说明 |
@@ -184,18 +210,24 @@ return tenantCall(session_key, call_name, param);
## `fu()`
声明:function
字符串,用户名
返回:any
## `fs()`
声明:function
字符串,租户Session Key;使用特殊租户(调用功能列表为\*)替代用户时指定。
返回:any
## `waitMessage(timeout)`
声明:function
注册OPS服务,通过分段模式接收天软远端转发的请求数据
| 参数 | 类型 | 说明 |
@@ -206,6 +238,8 @@ return tenantCall(session_key, call_name, param);
## `doOnMessage(id, event, data)`
声明:function
虚方法,根据event类型,对事件进行处理;若未指定FonMessage,需重写该方法
| 参数 | 类型 | 说明 |
@@ -218,6 +252,8 @@ return tenantCall(session_key, call_name, param);
## `doMessage(value)`
声明:function
解析接收到的天软远端转发的请求数据
| 参数 | 类型 | 说明 |
@@ -228,36 +264,48 @@ return tenantCall(session_key, call_name, param);
## `fopsList()`
声明:function
字符串,要注册的OPS服务列表,多个服务之间用逗号分隔
返回:any
## `fopsName()`
声明:function
字符串,注册的TS-OPS服务名称,用于标识,可为空字符串
返回:any
## `fSubCallBack()`
声明:function
字符串或函数指针,subscription事件回调函数;未指定时,必须重写WaitSubscription方法
返回:any
## `fReturnRuntimeError()`
声明:function
布尔值,默认值为False;调用回调函数出错时,是否返回详细的报错信息
返回:any
## `fDebug()`
声明:function
布尔值,默认值为True;是否打印调试信息
返回:any
## `waitSubscription(name, param, realdata)`
声明:function
虚方法,TS-OPS服务端subscription事件处理函数;若未指定FSubCallBack,则必须重写该方法
| 参数 | 类型 | 说明 |
@@ -270,6 +318,8 @@ return tenantCall(session_key, call_name, param);
## `asyncCall(durl, id, opsid, realdata, u, p, s, runerror, debug, sub, cb, caller)`
声明:function
call、subscription事件类型处理方法。根据参数sub判断是call还是subscription事件类型,并调用ops服务端的事件处理方法,调用完成后将结果上传至服务器,最终返回给请求方
| 参数 | 类型 | 说明 |
@@ -291,18 +341,24 @@ call、subscription事件类型处理方法。根据参数sub判断是call还是
## `tsCanGrid()`
声明:function
获得当前用户是否具备网格计算的权限。
返回:bool
## `isBackGround()`
声明:function
获得当前运行的模型是否以委托执行的后台模式运行。
返回:bool
## `testTable(name, table_type)`
声明:function
检查数据是否存在,测试是否存在指定name的数据,如果TableType为真则为测试系统数据表,即测试系统账号system是否存在name指定的数据;TableType缺省或为0
| 参数 | 类型 | 说明 |
@@ -320,6 +376,8 @@ return testTable('testA'); // 测试用户数据"testA"是否存在。返回值
## `Gu_SimpleDataTransform(mtype, nodatecol)`
声明:function
时序数据简单处理变形,譬如:累加、累乘、单期转多期。基于列名(含截止日、日期、date),跳过日期列 注意:该函数主要用于客户端结果处理,不提供给用户程序编辑。
| 参数 | 类型 | 说明 |
@@ -331,12 +389,16 @@ return testTable('testA'); // 测试用户数据"testA"是否存在。返回值
## `Gu_ExtractResultData()`
声明:function
穿透展示数组,用于展示<量化分析>结果专用嵌套数组结构的分析结果,结构为「键名:数组值」的键值对格式,支持一维/二维数组嵌套 注意:该函数主要用于客户端结果处理,不提供给用户程序编辑。
返回:array
## `tsplot_PerformanceSummary(rt_data, tmplate, fname_endt, fname_pfname, fname_bmname, otherconfig)`
声明:function
根据单期净值收益率数据表绘制策略报告
| 参数 | 类型 | 说明 |
@@ -352,6 +414,8 @@ return testTable('testA'); // 测试用户数据"testA"是否存在。返回值
## `tssubplot_lines(data, fname_subplots, fname_date, fname_infos, dict_indicator)`
声明:function
时序数据多子图折线图批量绘制函数,按分组配置自动生成多组折线子图,自动处理时间格式化、数据列重命名、信息列合并,适用于多指标可视化对比 注意:如果数值窗口 遮挡,可以 设为浮点,任意放大,再固定,即可(2026-04-09 xqx 应为bug.) 增加右侧展示字段后,首图会缺失一个图例 (2026-04-13 xqx 应为bug.
| 参数 | 类型 | 说明 |