📝 docs(tsl): sync api skill with corrected codegen
Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index. Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# 股票 / 行业
|
||||
|
||||
### `getDiyuList()`
|
||||
## `getDiyuList()`
|
||||
|
||||
得到地域列表。由于数据提供的问题,用此方法比用GETBKList('地域')更准确。
|
||||
|
||||
返回:array
|
||||
|
||||
### `getDiyuStocks(name)`
|
||||
## `getDiyuStocks(name)`
|
||||
|
||||
得到地域股票。
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `getFenleiList()`
|
||||
## `getFenleiList()`
|
||||
|
||||
得到分类列表。
|
||||
|
||||
返回:array
|
||||
|
||||
### `getFenleiStocks(name)`
|
||||
## `getFenleiStocks(name)`
|
||||
|
||||
得到分类股票。
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `getHangyeList()`
|
||||
## `getHangyeList()`
|
||||
|
||||
得到行业列表。由于数据提供的问题,用此方法比用GETBKList('行业')更准确。
|
||||
|
||||
返回:array
|
||||
|
||||
### `getHangyeStocks(name)`
|
||||
## `getHangyeStocks(name)`
|
||||
|
||||
得到行业股票。
|
||||
|
||||
@@ -48,38 +48,38 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `getHyDyFlDetails(_type)`
|
||||
## `getHyDyFlDetails(_type)`
|
||||
|
||||
得到分行业/地域/分类的股票的详细情况。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ------ | --------------------- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | --------------------- |
|
||||
| `_type` | string | 用户自定义。取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getHyDyFlList(_type)`
|
||||
## `getHyDyFlList(_type)`
|
||||
|
||||
得到行业/地域/分类的列表,用于替代GetBKList。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ------ | --------------------------- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | --------------------------- |
|
||||
| `_type` | string | 用户自定义。类别,取值如下: |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getHyDyFlStocks(_type, name)`
|
||||
## `getHyDyFlStocks(_type, name)`
|
||||
|
||||
得到行业的股票。取代GetBK,比其更精确。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ------ | --------------------------- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | --------------------------- |
|
||||
| `_type` | string | 用户自定义。类型,取值如下: |
|
||||
| `name` | string | 字符串。名称 |
|
||||
| `name` | string | 字符串。名称 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `getStocksByName(name)`
|
||||
## `getStocksByName(name)`
|
||||
|
||||
根据名称得到股票列表。
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockCsrcIndustryArr(level_n, end_t)`
|
||||
## `stockCsrcIndustryArr(level_n, end_t)`
|
||||
|
||||
返回指定日指定级别证监会行业列表。目前天软只有证监会最新版的2012版的上市公司行业分类指引数据,所以endt参数暂时没有作用。
|
||||
|
||||
@@ -100,13 +100,13 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockCsrcIndustryId1()`
|
||||
## `stockCsrcIndustryId1()`
|
||||
|
||||
指定证券指定日期证监会一级行业代码,与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
@@ -114,13 +114,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockCSRCIndustryID1();
|
||||
```
|
||||
|
||||
### `stockCsrcIndustryId2()`
|
||||
## `stockCsrcIndustryId2()`
|
||||
|
||||
指定证券指定日期证监会二级行业代码,与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
@@ -128,13 +128,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockCSRCIndustryID2();
|
||||
```
|
||||
|
||||
### `stockCsrcIndustryName1()`
|
||||
## `stockCsrcIndustryName1()`
|
||||
|
||||
指定证券指定日期证监会一级行业名称,与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
@@ -142,13 +142,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockCSRCIndustryName1();
|
||||
```
|
||||
|
||||
### `stockCsrcIndustryName2()`
|
||||
## `stockCsrcIndustryName2()`
|
||||
|
||||
指定证券指定日期证监会二级行业名称,与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
@@ -156,7 +156,7 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockCSRCIndustryName2();
|
||||
```
|
||||
|
||||
### `stockGetIndustrydata(stockid, end_t, level, industry_type)`
|
||||
## `stockGetIndustrydata(stockid, end_t, level, industry_type)`
|
||||
|
||||
返回证券指定日期有效的行业数据。
|
||||
|
||||
@@ -169,7 +169,7 @@ return StockCSRCIndustryName2();
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockIndustryArr(industry_type, level_n, end_t)`
|
||||
## `stockIndustryArr(industry_type, level_n, end_t)`
|
||||
|
||||
返回指定日指定级别行业列表,与系统参数(股票)相关。默认返回申万行业的一级行业列表。
|
||||
|
||||
@@ -181,7 +181,7 @@ return StockCSRCIndustryName2();
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockindustryindexid(industryid, endt)`
|
||||
## `stockindustryindexid(industryid, endt)`
|
||||
|
||||
行业代码对应的指数代码,返回行业代码指定日期对应的指数代码
|
||||
|
||||
@@ -192,7 +192,7 @@ return StockCSRCIndustryName2();
|
||||
|
||||
返回:string
|
||||
|
||||
### `stockIndustryInfoLvN(stock_id, end_t, level, industry_type, v_type)`
|
||||
## `stockIndustryInfoLvN(stock_id, end_t, level, industry_type, v_type)`
|
||||
|
||||
指定证券指定日期指定级别行业名称,默认取申万的一级行业代码。
|
||||
|
||||
@@ -206,7 +206,7 @@ return StockCSRCIndustryName2();
|
||||
|
||||
返回:string
|
||||
|
||||
### `stockswindustryarr(leveln, endt)`
|
||||
## `stockswindustryarr(leveln, endt)`
|
||||
|
||||
返回指定日指定级别申万行业列表
|
||||
|
||||
@@ -217,13 +217,13 @@ return StockCSRCIndustryName2();
|
||||
|
||||
返回:array
|
||||
|
||||
### `stockswindustryid1()`
|
||||
## `stockswindustryid1()`
|
||||
|
||||
申万一级行业编码,返回指定证券指定日期申申万一级行业代码
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的申万一级行业代码
|
||||
@@ -232,13 +232,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryID1(); //返回:SWHY430000
|
||||
```
|
||||
|
||||
### `stockswindustryid2()`
|
||||
## `stockswindustryid2()`
|
||||
|
||||
申万二级行业编码,返回指定证券指定日期申申万二级行业代码
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的申万二级行业代码
|
||||
@@ -247,13 +247,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryID2(); //返回:SWHY430100
|
||||
```
|
||||
|
||||
### `stockswindustryid3()`
|
||||
## `stockswindustryid3()`
|
||||
|
||||
申万三级行业编码,返回指定证券指定日期申申万三级行业代码
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的申万三级行业代码
|
||||
@@ -262,31 +262,31 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryID3(); //返回:SWHY430101
|
||||
```
|
||||
|
||||
### `stockSwIndustryIdLv1Ii()`
|
||||
## `StockSWIndustryIDLv1_II()`
|
||||
|
||||
指定证券指定日期的申万一级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string|datetime
|
||||
|
||||
### `stockSwIndustryIdLv2Ii()`
|
||||
## `StockSWIndustryIDLv2_II()`
|
||||
|
||||
指定证券指定日期的申万二级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string|datetime
|
||||
|
||||
### `stockSwIndustryIdLv3Ii()`
|
||||
## `StockSWIndustryIDLv3_II()`
|
||||
|
||||
指定证券指定日期的申万三级行业指数代码(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string|datetime
|
||||
|
||||
### `stockswindustryname1()`
|
||||
## `stockswindustryname1()`
|
||||
|
||||
返回指定证券指定日期申万一级行业名称
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的一级申万行业名称
|
||||
@@ -295,13 +295,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryName1(); //返回:申万房地产
|
||||
```
|
||||
|
||||
### `stockswindustryname2()`
|
||||
## `stockswindustryname2()`
|
||||
|
||||
返回指定证券指定日期申万二级行业名称
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的二级申万行业名称
|
||||
@@ -310,13 +310,13 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryName2(); //返回:申万房地产开发
|
||||
```
|
||||
|
||||
### `stockswindustryname3()`
|
||||
## `stockswindustryname3()`
|
||||
|
||||
返回指定证券指定日期申万三级行业名称
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
万科A在20210302的三级申万行业名称
|
||||
@@ -325,25 +325,25 @@ SetSysParam(pn_date(),20210302T);
|
||||
return StockSWIndustryName3(); //返回:申万房地产开发
|
||||
```
|
||||
|
||||
### `stockSwIndustryNameLv1Ii()`
|
||||
## `StockSWIndustryNameLv1_II()`
|
||||
|
||||
指定证券指定日期的申万一级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
### `stockSwIndustryNameLv2Ii()`
|
||||
## `StockSWIndustryNameLv2_II()`
|
||||
|
||||
指定证券指定日期的申万二级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
### `stockSwIndustryNameLv3Ii()`
|
||||
## `StockSWIndustryNameLv3_II()`
|
||||
|
||||
指定证券指定日期的申万三级行业指数名称(考虑非指数成分),与系统参数(股票、时间)相关。
|
||||
|
||||
返回:string
|
||||
|
||||
### `trimHangyeName(name)`
|
||||
## `trimHangyeName(name)`
|
||||
|
||||
行业名称去间隔。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user