Return NetPNl

This commit is contained in:
2025-10-03 02:46:48 +07:00
parent ceb52a52d7
commit 5bd4fd7b52

View File

@@ -570,7 +570,7 @@ public static class PostgreSqlMappers
}; };
// Set ProfitAndLoss with proper type // 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 // Set fee properties
position.UiFees = entity.UiFees; position.UiFees = entity.UiFees;