♻️ refactor(tsl): rebuild codegen taxonomy

Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
This commit is contained in:
csh
2026-07-07 16:36:08 +08:00
parent 54c1c11e77
commit b6160676b4
763 changed files with 179921 additions and 154583 deletions
@@ -0,0 +1,432 @@
# 期货 / 结算会员成交持仓排名
### `futuresmtpavgvol(begt, endt)`
区间机构平均成交量,单位:手,与系统参数(证券)相关。 双边成交量数据。
| 参数 | 类型 | 说明 |
| ------ | -------- | -------- |
| `begt` | datetime | 开始日期 |
| `endt` | daate | 截止日期 |
返回:float
### `futuresMtpInstitutNetOi(end_t, name)`
指定日指定机构净持仓量,与系统参数(证券)相关。单位:手。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| ------- | -------- | ---------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutNetOI(20240201T,'东证期货');
```
### `futuresMtpInstitutOi(end_t, name, _type)`
指定日指定机构持仓量,与系统参数(证券)相关。单位:手
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutOI(20240201T,'东证期货',1);
```
### `futuresmtpinstitutoigrow(endt, name, _type)`
指定日指定机构持仓量变动,单位:手,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------ | --------- | ---------------------------------------------- |
| `endt` | datetime | 截止日期, |
| `name` | string | 机构简称, |
| `_type` | usrdefine | 持仓类型持买单量排名=1持卖单量排名=2,usrdefine |
返回:float
### `futuresMtpInstitutOiPercent(end_t, name, _type)`
指定日指定机构持仓量占总持仓比(%),与系统参数(证券)相关
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutOIPercent(20240201T,'东证期货',1);
```
### `futuresMtpInstitutOiRank(end_t, name, _type)`
指定日指定机构持仓量排名,与系统参数(证券)相关。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:int
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutOIRank(20240201T,'东证期货',1);
```
### `futuresMtpInstitutRank(end_t, name)`
指定日指定机构成交量排名,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------- | -------- | ---------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
返回:int
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutRank(20240201T,'东证期货');
```
### `futuresMtpInstitutVol(end_t, name)`
指定日指定机构成交量,与系统参数(证券)相关。双边成交量数据,单位:手。如果返回0,说明无相关数据
| 参数 | 类型 | 说明 |
| ------- | -------- | ---------------- |
| `end_t` | datetime | 日期。截止日期 |
| `name` | string | 字符串。机构简称 |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPInstitutVol(20240201T,'东证期货');
```
### `futuresMtpNoNName(end_t, top_n)`
指定日第N名成交量排名的机构名称,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------- | -------- | -------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。第N名 |
返回:string
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPNoNName(20240201T,1);
```
### `futuresMtpNoNoi(end_t, top_n, _type)`
指定日第N名机构持买单/卖单量,与系统参数(证券)相关。单位:手
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。第N名 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPNoNOI(20240201T,1,1);
```
### `futuresMtpNoNoiPercent(end_t, top_n, _type)`
指定日第N名机构持仓量占总持仓比(%),与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。第N名 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPNoNOIPercent(20240201T,3,1);
```
### `futuresMtpNoNPercent(end_t, top_n)`
指定日第N名机构成交量占总成交量比(%),与系统参数(证券)相关。其中行情中的成交量为单边数据,结算会员成交持仓排名的成交量为双边数据。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| ------- | -------- | -------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。第N名 |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPNoNPercent(20240201T,3);
```
### `futuresMtpNoNVol(end_t, top_n)`
指定日第N名机构成交量,与系统参数(证券)相关。双边成交量数据,单位:手。如果返回0,说明无相关数据
| 参数 | 类型 | 说明 |
| ------- | -------- | -------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。第N名 |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPNoNVol(20240201T,1);
```
### `futuresmtpnonvolgrow(endt, topn)`
指定日第N名机构成交量变动,单位:手,与系统参数(证券)相关。 双边成交量数据。
| 参数 | 类型 | 说明 |
| ------ | -------- | -------- |
| `endt` | datetime | 截止日期 |
| `topn` | int | 第N名 |
返回:float
### `futuresMtpSumNoi(end_t, top_n, _type)`
指定日前N名机构持买单/卖单量,与系统参数(证券)相关。单位:手
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。前N名 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPSumNOI(20240201T,1,1);
```
### `futuresmtpsumnoigrow(endt, topn, _type)`
指定日前N名机构持仓量变动,单位:手,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------ | --------- | -------------------------------------- |
| `endt` | datetime | 截止日期, |
| `topn` | int | 前N名, |
| `_type` | usrdefine | 持仓类型持买单量=1持卖单量=2,usrdefine |
返回:float
### `futuresMtpSumNoiPercent(end_t, top_n, _type)`
指定日前N名机构持仓量占总持仓比(%),与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------------------- |
| `end_t` | datetime | 日期。截止日期 |
| `top_n` | int | 整数。前N名 |
| `_type` | int | 用户自定义。持仓类型,取值如下: |
返回:float
#### 示例
```tsl
SetSysParam(PN_Stock(),'TF2403');
return FuturesMTPSumNOIPercent(20240201T,1,1);
```
### `futuresmtpsumnvolgrow(endt, topn)`
指定日前N名机构成交量变动,单位:手,与系统参数(证券)相关。 双边成交量数据。
| 参数 | 类型 | 说明 |
| ------ | -------- | -------- |
| `endt` | datetime | 截止日期 |
| `topn` | int | 前N名 |
返回:float
### `futuresmtpnonoigrow(endt, topn, _type)`
指定日第N名机构持仓量变动,单位:手,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `endt` | date | 截止日期, |
| `topn` | integer | 第N名, |
| `_type` | usrdeine | 持仓类型持买单量=1持卖单量=2,usrdefine |
返回:real
### `futuresmtpinstitutvolgrow(endt, name)`
指定日指定机构成交量变动,单位:手,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `endt` | date | 截止日期 |
| `name` | string | 机构简称 |
返回:real
### `futuresMtpSumNPercent(end_t, top_n)`
指定日前N名机构成交量占总成交量比(%),与系统参数(证券)相关。其中行情中的成交量为单边数据,结算会员成交持仓排名的成交量为双边数据。如果返回0,说明无相关数据
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `end_t` | TDateTime | 日期。截止日期 |
| `top_n` | Integer | 整数。前N名 |
返回:Real
#### 示例
```tsl
setSysParam(PN_Stock(),'TF2403');
return futuresMtpSumNPercent(20240201T,3);
//结果:57.27
```
### `futuresMtpSumNVol(end_t, top_n)`
指定日前N名机构成交量,与系统参数(证券)相关。双边成交量数据,单位:手。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `end_t` | TDateTime | 日期。截止日期 |
| `top_n` | Integer | 整数。前N名 |
返回:Real
#### 示例
```tsl
setSysParam(PN_Stock(),'TF2403');
return futuresMtpSumNVol(20240201T,3);
//结果:45405
```
### `futuresMtpInstitutPercent(end_t, name)`
指定日指定机构成交量占总成交量比(%),与系统参数(证券)相关。其中行情中的成交量为单边数据,结算会员成交持仓排名的成交量为双边数据。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `end_t` | TDateTime | 日期。截止日期 |
| `name` | String | 字符串。机构简称 |
返回:Real
#### 示例
```tsl
setSysParam(PN_Stock(),'TF2403');
return futuresMtpInstitutPercent(20240201T,'东证期货');
//结果:29.36
```
### `futuresMtpNoNoiName(end_t, top_n, _type)`
指定日第N名持仓量排名的机构名称,与系统参数(证券)相关。其中行情中的成交量为单边数据,结算会员成交持仓排名的成交量为双边数据。如果返回空字符串,说明无相关数据。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `end_t` | TDateTime | 日期。截止日期 |
| `top_n` | Integer | 整数。第N名 |
| `_type` | Integer | 用户自定义。持仓类型,取值如下: |
返回:String
#### 示例
```tsl
setSysParam(PN_Stock(),'TF2403');
return futuresMtpNoNoiName(20240201T,2,2);
//结果:银河期货
```
### `futuresMtpInstitutValue(future_id, end_t, name, field, rank_type)`
指定日指定机构成交量相关数据。如果返回0,说明无相关数据。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `future_id` | String | 字符串。期货代码 |
| `end_t` | TDateTime | 日期。截止日期 |
| `name` | String | 字符串。机构简称 |
| `field` | String | 字符串。列名 |
| `rank_type` | Integer | 用户自定义。排名类型,取值如下: |
返回:Real
#### 示例
```tsl
return futuresMtpInstitutValue('TF2403',20240201T,'东证期货','数量',0);
//结果:23278
```
### `futuresmtpavgoi(begt, endt, ranktype)`
区间机构平均持仓量,单位:手,与系统参数(证券)相关。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `begt` | date | 开始日期, |
| `endt` | date | 截止日期, |
| `ranktype` | usrdefine | 持仓类型,持买单量=1,持卖单量=2,usrdefine |
返回:real