♻️ 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:
@@ -0,0 +1,122 @@
|
||||
# 期货 / 基本信息
|
||||
|
||||
### `futuresdeliverydateendt()`
|
||||
|
||||
指定日的期货最后交割日,与系统参数(期货代码、日期)相关
|
||||
|
||||
返回:int
|
||||
|
||||
### `futuresMinimumTradingMarginRateEndT()`
|
||||
|
||||
指定日期货的最低交易保证金(%),与证券代码、时间相关。
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"bc2401");
|
||||
SetSysParam(PN_Date(),20231215T);
|
||||
return FuturesMinimumTradingMarginRateEndT();
|
||||
```
|
||||
|
||||
### `futuresTickSizeEndT()`
|
||||
|
||||
指定日期货的最小变动价位,与证券代码、时间相关。
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"OI1807");
|
||||
SetSysParam(PN_Date(),20180520T);
|
||||
return FuturesTickSizeEndT();
|
||||
```
|
||||
|
||||
### `futuresMultiplierEndT()`
|
||||
|
||||
指定日期货的合约乘数,与证券代码、时间相关
|
||||
|
||||
返回:real
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
//计算期货合约FB2009在20190920的合约乘数。
|
||||
setSysParam(pn_stock(),' FB2009');
|
||||
endt:=20200920T;
|
||||
setSysParam(pn_date(),endt);
|
||||
return futuresMultiplierEndT (); //结果:500
|
||||
```
|
||||
|
||||
### `futuresDeliveryDateEndT2()`
|
||||
|
||||
指定日期货主力或者连续合约的交割日与系统参数(期货代码、日期)相关:
|
||||
|
||||
返回:INTEGER
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
IF01在20201207的真实合约的交割日
|
||||
setSysParam(pn_stock(),'IF01');
|
||||
setSysParam(pn_date(),20201207T);
|
||||
return futuresDeliveryDateEndT2(); //返回:20201218
|
||||
```
|
||||
|
||||
### `futuresLastDateEndT()`
|
||||
|
||||
指定期货最后交易日,与系统参数(期货代码、日期)相关
|
||||
|
||||
返回:INTEGER
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
//得到CU2101的最后交易日
|
||||
setSysParam(pn_stock(),'CU2101');
|
||||
return futuresLastDateEndT(); //返回20210115
|
||||
```
|
||||
|
||||
### `futuresPriceUpperLimitEndT()`
|
||||
|
||||
指定日期货价格的最大波动上限(%),与证券代码、时间相关。
|
||||
|
||||
返回:Real
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
// "OI1807"在2018-06-29的每日价格最大波动上限(%)
|
||||
setSysParam(pn_stock(),"OI1807");
|
||||
setSysParam(PN_Date(),20180629T);
|
||||
return futuresPriceUpperLimitEndT();
|
||||
//结果:4.0
|
||||
```
|
||||
|
||||
### `futuresPriceLowerLimitEndT()`
|
||||
|
||||
指定日期货价格的最大波动下限(%),与证券代码、时间相关。
|
||||
|
||||
返回:Real
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
// "OI1807"在2018-06-29的每日价格最大波动下限(%)
|
||||
setSysParam(pn_stock(),"OI1807");
|
||||
setSysParam(PN_Date(),20180629T);
|
||||
return futuresPriceLowerLimitEndT();
|
||||
//结果:-4.0
|
||||
```
|
||||
|
||||
### `futuresbivalue(endt)`
|
||||
|
||||
期货基本信息数据
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `endt` | Date | 日期,指定日 |
|
||||
|
||||
返回:ARRAY
|
||||
Reference in New Issue
Block a user