909 B
909 B
金融 / 期权 / 结算参数
optionGetDepositByDate(option_id, endt, open_interest, is_open)
声明:function
获取指定日期权保证金,考虑开仓、维持两种情况
| 参数 | 类型 | 说明 |
|---|---|---|
option_id |
string | 证券,期权代码 |
endt |
t_date_time | 日期,截止日期 |
open_interest |
integer | 整数,持仓量 |
is_open |
integer | 用户自定义,是否开仓 |
返回:real
示例
范例01:调用函数
// 开仓10张空头期权"OP10008621"在20250116需要缴纳的保证金
option_id := "OP10008621";
endt := 20250116T;
open_interest := 10;
return optionGetDepositByDate(option_id, endt, open_interest, 0);
// 输出:9450.1972