/// <summary> /// 记录必须执行的商品期货开仓清算-持仓操作 /// </summary> /// <param name="holdingAccountId">持仓id</param> /// <param name="dealSum">成交汇总</param> /// <param name="holdingTradingRule">持仓交割制度</param> public void Record_SPQHOpen_InstantReckon_HoldingProcess(int holdingAccountId, SPQHDealSum dealSum, int holdingTradingRule) { RescueType type = RescueType.SPQHOpenHoldingProcess; BD_RescueTableInfo ro = new BD_RescueTableInfo(); ro.Type = (int)type; ro.Value1 = holdingAccountId.ToString(); ro.Value2 = dealSum.AmountSum.ToString(); ro.Value3 = dealSum.CapitalSum.ToString(); ro.Value4 = dealSum.CapitalSumNoScale.ToString(); ro.Value5 = dealSum.CostSum.ToString(); ro.Value6 = holdingTradingRule.ToString(); WriteResuceObject(ro); }
/// <summary> /// 记录必须执行的删除期货当日委托 /// </summary> /// <param name="entrustNumber">委托单号</param> public void Record_QH_DeleteTodayEntrust(string entrustNumber) { if (string.IsNullOrEmpty(entrustNumber)) { return; } RescueType type = RescueType.DeleteQHEntrust; BD_RescueTableInfo ro = new BD_RescueTableInfo(); ro.Type = (int)type; ro.Value1 = entrustNumber; WriteResuceObject(ro); }
/// <summary> /// 记录必须执行的商品期货LastCheckFreezeMoney动作 /// </summary> /// <param name="entrustNumber">委托单号</param> /// <param name="capitalAccountId">资金id</param> public void Record_SPQH_LastCheckFreezeMoney(string entrustNumber, int capitalAccountId) { if (string.IsNullOrEmpty(entrustNumber)) { return; } if (capitalAccountId == -1) { return; } RescueType type = RescueType.SPQHLastCheckFreezeMoney; BD_RescueTableInfo ro = new BD_RescueTableInfo(); ro.Type = (int)type; ro.Value1 = entrustNumber; ro.Value2 = capitalAccountId.ToString(); WriteResuceObject(ro); }