实时持仓服务,资金计算
This commit is contained in:
@@ -175,8 +175,8 @@ namespace YLErp.Modules.CalculationModule
|
||||
if (data.IsBond())
|
||||
{
|
||||
var bondPrice = EodPriceQueryService.GetBondPrice(valuedateBLL.ValueDate, data.UnderlyingCode);
|
||||
vobp = bondPrice.Vobp ?? 0;
|
||||
var price = Convert.ToDecimal(bondPrice.ClosePrice);
|
||||
vobp = bondPrice?.Vobp ?? 0;
|
||||
var price = Convert.ToDecimal(bondPrice?.ClosePrice??0);
|
||||
eodSwap.FloatingPnL = (price - item.PosiGrossPrice) * item.PosiQuantity * item.ContractSize * shortRatio * directionRatio;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user