# 金融 / 期货 / 期货保证金 ## `futuresMaintenanceMarginRate(end_t, margin_rate_type)` 声明:function 返回期货结算保证金率(%),取自期货结算参数(表704)中小于或等于EndT的最后一条数据,与系统证券pn_stock()有关 | 参数 | 类型 | 说明 | | ------------------ | -------- | ------------------ | | `end_t` | datetime | 日期,截止日 | | `margin_rate_type` | int | 整数,保证金率类型 | 返回:float ### 示例 范例01:调用函数 ```tsl setsysparam(pn_stock(), "cu1404"); return FuturesMaintenanceMarginRate(inttodate(20140331), 0); ``` ## `futuresTradingMarginRate(end_t, margin_rate_type)` 声明:function 返回期货交易保证金率(%),取自期货结算参数(表704)中小于或等于EndT-1的最后一条数据,与系统证券pn_stock()有关 | 参数 | 类型 | 说明 | | ------------------ | -------- | ------------------ | | `end_t` | datetime | 日期,截止日 | | `margin_rate_type` | int | 整数,保证金率类型 | 返回:float ### 示例 范例01:调用函数 ```tsl setsysparam(pn_stock(), "cu1404"); return FuturesTradingMarginRate(inttodate(20140331), 0); ```