Add MasterBotUserId and MasterAgentName for copy trading support

- Introduced MasterBotUserId and MasterAgentName properties to facilitate copy trading functionality.
- Updated relevant models, controllers, and database entities to accommodate these new properties.
- Enhanced validation logic in StartCopyTradingCommandHandler to ensure proper ownership checks for master strategies.
This commit is contained in:
2025-11-20 00:33:31 +07:00
parent 97103fbfe8
commit ff2df2d9ac
13 changed files with 1852 additions and 20 deletions

View File

@@ -753,7 +753,8 @@ public static class PostgreSqlMappers
Volume = entity.Volume,
Fees = entity.Fees,
LongPositionCount = entity.LongPositionCount,
ShortPositionCount = entity.ShortPositionCount
ShortPositionCount = entity.ShortPositionCount,
MasterBotUserId = entity.MasterBotUserId
};
return bot;
@@ -784,6 +785,7 @@ public static class PostgreSqlMappers
Fees = bot.Fees,
LongPositionCount = bot.LongPositionCount,
ShortPositionCount = bot.ShortPositionCount,
MasterBotUserId = bot.MasterBotUserId,
UpdatedAt = DateTime.UtcNow
};
}