✨ feat(skills): add tsl api reference skill
Bundle the TSL API index and markdown references under the skill, route TSL docs to use it, and update the codegen index generator to maintain the bundled data.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
# 外汇 / 汇率
|
||||
|
||||
### `forExrateMidPrice(endt)`
|
||||
|
||||
指定日汇率中间价,与系统参数(外汇代码)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------------ |
|
||||
| `endt` | datetime | 日期类型,截止日期 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(PN_Stock(),'FXUSDCNY');
|
||||
return ForExrateMidPrice(20200420T);
|
||||
```
|
||||
|
||||
### `forExrateMidPriceBegTEndT(begt, endt)`
|
||||
|
||||
区间汇率数据,与系统参数(外汇代码)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------------ |
|
||||
| `begt` | datetime | 日期类型,开始日期 |
|
||||
| `endt` | datetime | 日期类型,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(PN_Stock(),'FXUSDCNY');
|
||||
begt:=20200420T;
|
||||
endt:=20200430T;
|
||||
return ForExrateMidPriceBegTEndT(begt,endt);
|
||||
```
|
||||
|
||||
### `forExRateZf(begt, endt)`
|
||||
|
||||
获取汇率区间收益率,与系统参数(外汇代码)相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | -------- | ------------------ |
|
||||
| `begt` | datetime | 日期类型,开始日期 |
|
||||
| `endt` | datetime | 日期类型,截止日期 |
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(PN_Stock(),'FXUSDCNY');
|
||||
begt:=20200420T;
|
||||
endt:=20200430T;
|
||||
return ForExRateZf(BegT,EndT);
|
||||
```
|
||||
|
||||
### `getCurrencyCodeBySecurityCode(stockid)`
|
||||
|
||||
根据证券代码得到其币种代码。目前对照包括上交所、深交所、联交所股票。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ------ | ---------------- |
|
||||
| `stockid` | string | 字符串,证券代码 |
|
||||
|
||||
返回:float
|
||||
Reference in New Issue
Block a user