Beispiel #1
0
 /// <summary>
 /// 计算当日收益率(当日实际收益额 / 当日实际融资融券额)
 /// </summary>
 /// <param name="source"></param>
 /// <returns></returns>
 public static decimal CalculateCurrentIncomeRate(this UserInvestIncomeEntity source)
 {
     return(CommonHelper.CalculateRate(source.CurrentActualProfit, source.ActualMarginAmount));
 }
Beispiel #2
0
 /// <summary>
 /// 计算累计收益率(累计实际收益额 / 平均融资融券额)
 /// </summary>
 /// <param name="source"></param>
 /// <returns></returns>
 public static decimal CalculateAccumulatedIncomeRate(this UserInvestIncomeEntity source)
 {
     return(CommonHelper.CalculateRate(source.AccumulatedActualProfit, source.AverageMarginAmount));
 }
Beispiel #3
0
 /// <summary>
 /// 计算持仓仓位(当日持仓市值 / 当日实际融资融券额)
 /// </summary>
 /// <param name="source"></param>
 /// <returns></returns>
 public static decimal CalculatePositionRate(this UserInvestIncomeEntity source)
 {
     return(CommonHelper.CalculateRate(source.PositionValue, source.ActualMarginAmount));
 }