✨ feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references. Keep the existing generated index without rebuilding after signature normalization.
This commit is contained in:
+96
@@ -0,0 +1,96 @@
|
||||
# 金融报表分析 / 01.个股 / 1.07交易 / 中间函数
|
||||
|
||||
## `dataUnitConversion(data, unit_num, fields)`
|
||||
|
||||
声明:function
|
||||
|
||||
数据单位换算函数,适用于:1.实数;2.数组
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | ------- | ----------------------------------------------------------------------------------- |
|
||||
| `data` | array | 数据表类型,数据 |
|
||||
| `unit_num` | integer | 整数,单位 |
|
||||
| `fields` | array | 一维字符串数组,字段,如果不填字段,表示所有数字型的数据都做单位换算,否则只有指定列 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
data := array(("date": 20251029, "amount": 110000, "quantity": 100));
|
||||
echo trim(toStn(dataUnitConversion(data, 100, array("amount"))));
|
||||
```
|
||||
|
||||
## `stock_marginTradingDetial_sub(stock_id, beg_t, end_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
净融券与市场
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------- |
|
||||
| `stock_id` | string | 证券,证券代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用 Stock_MarginTradingDetial_sub
|
||||
|
||||
```tsl
|
||||
浦发银行在20201101至20201201的净融券与市场的数据
|
||||
|
||||
return Stock_MarginTradingDetial_sub("SH600000", 20201101T, 20201201T);
|
||||
```
|
||||
|
||||
## `stock_marginTradingQJ_sub(stock_id, beg_t, end_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
净融券与市场
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------- |
|
||||
| `stock_id` | string | 证券,证券代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用 Stock_MarginTradingQJ_sub
|
||||
|
||||
```tsl
|
||||
浦发银行在20201101至20201201的净融券与市场的数据
|
||||
|
||||
return Stock_MarginTradingQJ_sub("SH600000", 20201101T, 20201201T);
|
||||
```
|
||||
|
||||
## `stock_tbSumQJ(stock_id, beg_t, end_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
交易公开信息区间汇总数据
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------- |
|
||||
| `stock_id` | string | 证券,证券代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:array
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:领益智造在区间20250101~20251030之间的交易公开汇总数据
|
||||
|
||||
```tsl
|
||||
// 领益智造在区间20250101~20251030之间的交易公开汇总数据
|
||||
|
||||
return Stock_TBSumQJ("SZ002600", 20250101T, 20251030T);
|
||||
```
|
||||
Reference in New Issue
Block a user