namespace YLErp.Configuration
{
///
/// 收盘结算配置
///
public class SettlementConfig
{
private string _volTypes = string.Empty;
///
/// 收盘版本
///
public string Version { get; set; }
///
/// 是否计算盈亏分解指标
///
public bool CalcPnlExplain { get; set; }
///
/// 是否检查场内交易平仓
///
public bool CheckExchangeClose { get; set; }
///
/// 默认价格类型(1:收盘价 2:结算价 3:收盘价+结算价)
///
public int PriceType { get; set; }
///
/// 默认波动率
///
public string VolTypes
{
get => _volTypes;
set => _volTypes = value ?? string.Empty;
}
///
/// 支持部分结算
///
public bool SupportPart { get; set; }
///
/// 支持分客户收盘
///
public bool SubCustomerPart { get; set; }
///
/// 跳过上一交易日结算检查(仅用于调试,生产环境必须为false)
///
public bool SkipLastPvCheck { get; set; }
///
/// 输出调试日志
///
public bool OutputDebugLog { get; set; }
///
/// 计算远期预付金
///
public bool CalcForwradMargin { get; set; } = true;
///
/// 是否计算预付金(仅用于调试)
///
public bool CalcMargin { get; set; } = true;
///
/// 客户资金结算调用版本(V1|V2|V3)
///
public string ClientBalanceVersion { get; set; }
///
///客户资金结算是否区分买卖权 (中粮专属)
///
public bool CalcBuySell { get; set; }
}
}