交易费用计算dic用总值
This commit is contained in:
@@ -143,8 +143,7 @@ namespace YLErp.Plugins.ShanXi.DocumentGenerator
|
||||
dic["开始日期"] = trade.StartDate?.ToString("yyyy年M月d日");
|
||||
dic["到期日期"] = trade.ExerciseDate?.ToString("yyyy年M月d日");
|
||||
bool posiLong = swapPosition?.PositionType == (int)PositionTypeFlag.Short ? false : true;
|
||||
var interestRate = interestMargin?.InterestRateDefault * 100 ?? 0;
|
||||
dic["交易费用"] = (double)((swapPosition?.PosiTradingFeePending * 2) ?? 0);
|
||||
var interestRate = interestMargin?.InterestRateDefault * 100 ?? 0;
|
||||
dic["多头约定利率"] = "不适用";
|
||||
dic["空头约定利率"] = "不适用";
|
||||
if (posiLong)
|
||||
@@ -257,6 +256,7 @@ namespace YLErp.Plugins.ShanXi.DocumentGenerator
|
||||
var basicFee = (StockEqvNotionalRealSum == 0 ? 0 : (PosiTradingFeePending / StockEqvNotionalRealSum * 100));
|
||||
dic["基本费率"] = (basicFee * 2).ToString("f4");
|
||||
dic["交易费率"] = dic["基本费率"];
|
||||
dic["交易费用"] = PosiTradingFeePending * 2;
|
||||
dic["名义本金".Insert("名义本金".Length, "2?")] = StockEqvNotionalRealSum.ToString("0.##");
|
||||
dic["期初预付金".Insert("期初预付金".Length, "2?")] = (StockEqvNotionalRealSum * clientMarginRate?.InitMarginRate)?.ToString("0.##");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user