bug修复

This commit is contained in:
吴方海
2025-04-18 17:00:25 +08:00
parent a33d5a6ff2
commit 4b9bcfb2dc
10 changed files with 42 additions and 34 deletions
@@ -1208,7 +1208,7 @@ namespace YLErp.Modules.SwapModule
var unwindPercent =1- (flowQty / swapFlow.TradingQty);
var fee = (1 - unwindPercent) * swapFlow.TradingFeePending;
swapFlow.TradingQty = flowQty;
swapFlow.TradingAmount = swapFlow.TradingQty;
swapFlow.TradingAmount = swapFlow.TradingQty* swapFlow.TradingAmountAvg;
swapFlow.TradingFeePending = fee;
return NewSwapTrade(swapFlow, client, asset, underlying, floatRate, clientMarginTemplate,clearingAgency);
}