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;