✨ feat(tsl-api-reference): expand API and module coverage
This commit is contained in:
+45
@@ -1,5 +1,50 @@
|
||||
# 金融 / 股票 / 融资融券 / 指定日
|
||||
|
||||
## `ifStockmargin()`
|
||||
|
||||
声明:function
|
||||
|
||||
判断系统参数指定的证券在系统日期是否为融资融券标的
|
||||
|
||||
<!-- tags: 金融 股票 融资融券 标的 判断 系统参数 指定日 -->
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:按系统参数判断是否为融资融券标的
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_stock(), "SZ000001");
|
||||
setSysParam(pn_date(), 20250814T);
|
||||
return ifStockmargin();
|
||||
// 输出:0
|
||||
```
|
||||
|
||||
## `ifStockmargin(end_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
判断系统参数指定的证券在指定日是否为融资融券标的
|
||||
|
||||
<!-- tags: 金融 股票 融资融券 标的 判断 日期 指定日 -->
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | -------- | -------- |
|
||||
| `end_t` | datetime | 指定日期 |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:判断平安银行在指定日是否为融资融券标的
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_stock(), "SZ000001");
|
||||
return ifStockmargin(20250814T);
|
||||
// 输出:1
|
||||
```
|
||||
|
||||
## `stockMarginAmount()`
|
||||
|
||||
声明:function
|
||||
|
||||
Reference in New Issue
Block a user