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