Add platform grain

This commit is contained in:
2025-08-14 19:44:33 +07:00
parent 345d76e06f
commit 4a45d6c970
13 changed files with 2324 additions and 59 deletions

View File

@@ -27,4 +27,6 @@ public class BotEntity
public decimal Roi { get; set; }
public decimal Volume { get; set; }
public decimal Fees { get; set; }
public int LongPositionCount { get; set; }
public int ShortPositionCount { get; set; }
}

View File

@@ -688,7 +688,9 @@ public static class PostgreSqlMappers
Pnl = entity.Pnl,
Roi = entity.Roi,
Volume = entity.Volume,
Fees = entity.Fees
Fees = entity.Fees,
LongPositionCount = entity.LongPositionCount,
ShortPositionCount = entity.ShortPositionCount
};
return bot;
@@ -713,6 +715,8 @@ public static class PostgreSqlMappers
Roi = bot.Roi,
Volume = bot.Volume,
Fees = bot.Fees,
LongPositionCount = bot.LongPositionCount,
ShortPositionCount = bot.ShortPositionCount,
UpdatedAt = DateTime.UtcNow
};
}