天软金融分析.NET函数大全 > 金融函数 > 期货 > 期货保证金

FuturesMaintenanceMarginRate    

简述
期货结算保证金率(%),取自期货结算参数(表704)中小于或等于EndT的最后一条数据,与系统证券pn_stock()有关。
定义
FuturesMaintenanceMarginRate(EndT:DateTime;MarginRateType:Integer):Real
参数
名称类型说明
EndTDateTime日期,截止日
MarginRateTypeInteger整数,保证金率类型
显示名 取值
投机买保证金率(%) 0
投机卖保证金率(%) 1
套保买保证金率(%) 2
套保卖保证金率(%) 3
返回Real实数,结算保证金率(%)
  • 范例

    //计算cu1404 在2014年3月31日的结算保证金率-投机买保证金率(%)。
    setsysparam(pn_stock(),"cu1404");
    return FuturesMaintenanceMarginRate(inttodate(20140331),0);

    //结果:15
相关