FuturesMaintenanceMarginRate
简述
期货结算保证金率(%),取自期货结算参数(表704)中小于或等于EndT的最后一条数据,与系统证券pn_stock()有关。
FuturesMaintenanceMarginRate(EndT:DateTime;MarginRateType:Integer):Real
| 名称 | 类型 | 说明 |
|---|
| EndT | DateTime | 日期,截止日 |
| MarginRateType | Integer | 整数,保证金率类型
|
显示名 |
取值 | |
投机买保证金率(%) |
0 | |
投机卖保证金率(%) |
1 | |
套保买保证金率(%) |
2 | |
套保卖保证金率(%) |
3 |
|
| 返回 | Real | 实数,结算保证金率(%) |
//计算cu1404 在2014年3月31日的结算保证金率-投机买保证金率(%)。
setsysparam(pn_stock(),"cu1404");
return FuturesMaintenanceMarginRate(inttodate(20140331),0);
//结果:15