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,12 +2,16 @@
## `futuresAllPzCode()`
声明:function
所有期货代码对照表,若有新品种上市数据也会更新,此说明不再更新。
返回:array
## `futuresCodeToPz(stockid)`
声明:function
期货代码->期货品种,支持通过期货合约代码、主力代码、指数代码、连续代码得到期货品种代码 若无参数stockid,则取当前证券为指定代码。
| 参数 | 类型 | 说明 |
@@ -18,6 +22,8 @@
## `futurescodetopzendt(stockid)`
声明:function
期货代码->期货品种(时间相关),支持通过期货合约代码、主力代码、指数代码、连续代码得到期货品种代码 若无参数stockid,则取当前证券为指定代码。1)期货合约代码->期货品种:基本面-交易代码 2)其它代码->期货品种:708表 3)若无参数stockid,则取当前证券为指定代码。 有些期货品种换过品种代码,所以品种代码与系统时间相关;
| 参数 | 类型 | 说明 |
@@ -28,6 +34,8 @@
## `futuresContinueCode()`
声明:function
指定期货合约的连续代码,与系统参数(期货代码)相关
返回:string
@@ -41,6 +49,8 @@ return FuturesContinueCode(); //返回'LXCU00'
## `futuresContinueCode1()`
声明:function
指定期货合约的连一代码,与系统参数(期货代码)相关
返回:string
@@ -54,6 +64,8 @@ return FuturesContinueCode1(); //返回'LXCU01'
## `futuresContinueCode2()`
声明:function
指定期货合约的连二代码,与系统参数(期货代码)相关
返回:string
@@ -67,6 +79,8 @@ return FuturesContinueCode2(); //返回'LXCU02'
## `futuresContinueCode4()`
声明:function
指定期货合约的连四代码,与系统参数(期货代码)相关。
返回:string
@@ -80,6 +94,8 @@ return FuturesContinueCode4();
## `futuresGetJysCode(futures_id)`
声明:function
天软期货代码转换为交易所代码
| 参数 | 类型 | 说明 |
@@ -90,6 +106,8 @@ return FuturesContinueCode4();
## `futuresGetTsCode(futures_id)`
声明:function
交易所代码转换为天软期货代码
| 参数 | 类型 | 说明 |
@@ -100,6 +118,8 @@ return FuturesContinueCode4();
## `futuresIdToCzl()`
声明:function
根据期货合约得到次主力线,与系统参数(期货代码)相关。
返回:string
@@ -113,6 +133,8 @@ return FuturesIDToCZL();
## `futuresIndexCode()`
声明:function
指定期货合约的指数线代码,与系统参数(期货代码)相关
返回:string
@@ -126,6 +148,8 @@ return FuturesIndexCode(); //返回'IFInd'
## `futuresSettlement()`
声明:function
实时结算价(期货),与系统参数(证券代码,时间)相关,证券代码需使用期货实际合约,时间需要具体时间点。
返回:float
@@ -140,6 +164,8 @@ return FuturesSettlement(); //结果:468.8
## `getFuturesBkbydate(bk_name, endt)`
声明:function
指定日指定板块在市交易的期货合约,期货板块具体请查看Q:天软公用市场板块说明文档或平台中的板块工具。
| 参数 | 类型 | 说明 |
@@ -162,6 +188,8 @@ return getFuturesBkbydate('大连商品交易所',20200201T);
## `futuresContinueCode3()`
声明:function
指定期货合约的连四代码,与系统参数(期货代码)相关
返回:STRING
@@ -176,6 +204,8 @@ return futuresContinueCode4(); //返回'LXCU04'
## `getFuturesDerivedIdByEndt(end_t, future_type, id_type)`
声明:function
指定日已上市的期货衍生代码
| 参数 | 类型 | 说明 |