📝 docs(tsl): complete and lint codegen reference

This commit is contained in:
csh
2026-07-07 16:46:51 +08:00
parent 16e0992dd2
commit bbf6977f57
232 changed files with 39191 additions and 29763 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
# 外汇 / 汇率
### `forExrateMidPrice(endt)`
## `forExrateMidPrice(endt)`
指定日汇率中间价,与系统参数(外汇代码)相关。
@@ -10,14 +10,14 @@
返回:float
#### 示例
### 示例
```tsl
SetSysParam(PN_Stock(),'FXUSDCNY');
return ForExrateMidPrice(20200420T);
```
### `forExrateMidPriceBegTEndT(begt, endt)`
## `forExrateMidPriceBegTEndT(begt, endt)`
区间汇率数据,与系统参数(外汇代码)相关。
@@ -28,7 +28,7 @@ return ForExrateMidPrice(20200420T);
返回:array
#### 示例
### 示例
```tsl
SetSysParam(PN_Stock(),'FXUSDCNY');
@@ -37,7 +37,7 @@ endt:=20200430T;
return ForExrateMidPriceBegTEndT(begt,endt);
```
### `forExRateZf(begt, endt)`
## `forExRateZf(begt, endt)`
获取汇率区间收益率,与系统参数(外汇代码)相关。
@@ -48,7 +48,7 @@ return ForExrateMidPriceBegTEndT(begt,endt);
返回:float
#### 示例
### 示例
```tsl
SetSysParam(PN_Stock(),'FXUSDCNY');
@@ -57,7 +57,7 @@ endt:=20200430T;
return ForExRateZf(BegT,EndT);
```
### `getCurrencyCodeBySecurityCode(stockid)`
## `getCurrencyCodeBySecurityCode(stockid)`
根据证券代码得到其币种代码。目前对照包括上交所、深交所、联交所股票。