✨ 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:
@@ -2,6 +2,8 @@
|
||||
|
||||
## `getBkWeightByDate(index_id, end_t, t, cal_type)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取指数历史指定日的成份股权重。 注意,数据有来自于指数提供商或者天软预估。比如沪深300,每个月月末,指数提供商将月末的成分股信息及全部发送给天软,在本月末至下月末的日期之间的权重,来自于天软预估,即根据最近一次指数提供商提供的权重数据及成分股的涨幅,计算其权重。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -15,6 +17,8 @@
|
||||
|
||||
## `indexBkWeightbyDate1(indexid, endt)`
|
||||
|
||||
声明:function
|
||||
|
||||
指数指定日成份权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -26,6 +30,8 @@
|
||||
|
||||
## `indexIndusNoNCode(endt, topn, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名行业的名称
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -45,6 +51,8 @@ return IndexIndusNoNCode(20200924T,2,1); //结果:金融业
|
||||
|
||||
## `indexIndusNoNWeight(endt, topn, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定日第N名行业的权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -64,6 +72,8 @@ return IndexIndusNoNWeight(20200924T,2,1); //结果:28.686091977063
|
||||
|
||||
## `indexIndusSumNWeight(endt, topn, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取指定指数前N行业的权重(行业集中度(%))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -83,6 +93,8 @@ return IndexIndusSumNWeight(20200924T,2,1); //结果:28.4782510781865
|
||||
|
||||
## `indexIndusWeightByDate(industryname, endt, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取指定日指定行业在指定指数中的权重(%) 。 可以获取证监会一级/二级,中证一级/二级,申万一级/二级 的行业权重。其中, 1)证监会和中证只按照当前最新的行业分类统计, 2)申万可根据历史的行业分类统计 。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -102,6 +114,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
|
||||
|
||||
## `indexIndusWeightEndT(indexid, endt, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定日指数的行业权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -114,6 +128,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
|
||||
|
||||
## `indexIndusWeightQj(industryname, indexid, begt, endt, industype)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取区间指定行业在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -128,6 +144,8 @@ return IndexIndusWeightByDate("制造业",20200924T,1);
|
||||
|
||||
## `indexStockNoNCode(endt, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
第N名股票的代码
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -146,6 +164,8 @@ return IndexStockNoNCode(20200924T,2); //结果:SH600519
|
||||
|
||||
## `indexStockNoNWeight(endt, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定日第N名股票权重
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -164,6 +184,8 @@ return IndexStockNoNWeight(20200924T,2); //结果:5.0403035260277
|
||||
|
||||
## `indexStockSumNWeight(endt, topn)`
|
||||
|
||||
声明:function
|
||||
|
||||
指定指数前N证券的权重(股票集中度(%))
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -182,6 +204,8 @@ return IndexStockSumNWeight(20200924T,2); //结果:10.2321520830025
|
||||
|
||||
## `indexStockWeightByDate(stockid, endt)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取指定日指定股票在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -200,6 +224,8 @@ return IndexStockWeightByDate("SZ000002",20200924T); //结果:1.17721168024293
|
||||
|
||||
## `indexStockWeightQj(stockid, indexid, begt, endt)`
|
||||
|
||||
声明:function
|
||||
|
||||
获取区间指定股票在指定指数中的权重(%)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -213,6 +239,8 @@ return IndexStockWeightByDate("SZ000002",20200924T); //结果:1.17721168024293
|
||||
|
||||
## `indexWeightFirstday()`
|
||||
|
||||
声明:function
|
||||
|
||||
返回指定指数权重开始日,与系统参数(证券代码)相关。
|
||||
|
||||
返回:datetime
|
||||
|
||||
Reference in New Issue
Block a user