From 5bd4fd7b52485a1fea89453cbd28ed2ff3af75d4 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Fri, 3 Oct 2025 02:46:48 +0700 Subject: [PATCH] Return NetPNl --- .../PostgreSql/PostgreSqlMappers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Managing.Infrastructure.Database/PostgreSql/PostgreSqlMappers.cs b/src/Managing.Infrastructure.Database/PostgreSql/PostgreSqlMappers.cs index 76662c20..b803c30a 100644 --- a/src/Managing.Infrastructure.Database/PostgreSql/PostgreSqlMappers.cs +++ b/src/Managing.Infrastructure.Database/PostgreSql/PostgreSqlMappers.cs @@ -570,7 +570,7 @@ public static class PostgreSqlMappers }; // Set ProfitAndLoss with proper type - position.ProfitAndLoss = new ProfitAndLoss { Realized = entity.ProfitAndLoss }; + position.ProfitAndLoss = new ProfitAndLoss { Realized = entity.ProfitAndLoss, Net = entity.ProfitAndLoss - entity.UiFees - entity.GasFees }; // Set fee properties position.UiFees = entity.UiFees;