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.
62 lines
1.6 KiB
Markdown
62 lines
1.6 KiB
Markdown
# 期货 / 期货手续费
|
|
|
|
### `futuresfeeamount(endt, feeamounttype)`
|
|
|
|
获得指定日期货合约手续费(元/手),与系统参数(期货合约代码)相关
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
| --------------- | --------- | ---------- |
|
|
| `endt` | datetime | 指定日, |
|
|
| `feeamounttype` | usrdefine | 手续费类型 |
|
|
|
|
返回:float
|
|
|
|
#### 示例
|
|
|
|
```tsl
|
|
setsysparam(pn_stock(),"cu1404");
|
|
return FuturesFeeAmount(inttodate(20140328),0);
|
|
```
|
|
|
|
### `futuresfeerate(endt, feeratetype)`
|
|
|
|
获得指定日期货合约手续费(交易额万分之),与系统参数(期货合约代码)相关
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
| ------------- | --------- | ---------- |
|
|
| `endt` | datetime | 指定日, |
|
|
| `feeratetype` | usrdefine | 手续费类型 |
|
|
|
|
返回:float
|
|
|
|
#### 示例
|
|
|
|
```tsl
|
|
setsysparam(pn_stock(),"cu1404");
|
|
return FuturesFeeRate(inttodate(20140328),0);
|
|
```
|
|
|
|
### `futuresspfeeunit(endt, feetype)`
|
|
|
|
期货手续费单位,与系统参数(期货合约代码)相关
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
| --------- | --------- | -------------------- |
|
|
| `endt` | datetime | date,指定日 |
|
|
| `feetype` | usrdefine | usrdefine,手续费类型 |
|
|
|
|
返回:string
|
|
|
|
### `futuresspfeecost(endt, feetype, amount, vol)`
|
|
|
|
期货手续费单位,与系统参数(期货合约代码)相关
|
|
|
|
| 参数 | 类型 | 说明 |
|
|
| --- | --- | --- |
|
|
| `endt` | date | date,指定日 |
|
|
| `feetype` | usrdefine | usrdefine,手续费类型 |
|
|
| `amount` | number | number,资金总额(元) |
|
|
| `vol` | integer | integer,资金总量(手) |
|
|
|
|
返回:real
|