Add user to position + fix few things

This commit is contained in:
2025-04-24 19:46:21 +07:00
parent 76b8b7ebb6
commit c22c925087
17 changed files with 357 additions and 238 deletions

View File

@@ -136,9 +136,9 @@ public class TradingController : BaseController
nameof(moneyManagementName));
}
var user = await GetUser();
if (moneyManagement != null)
{
var user = await GetUser();
moneyManagement = await _moneyManagementService.GetMoneyMangement(user, moneyManagementName);
}
@@ -149,6 +149,7 @@ public class TradingController : BaseController
ticker,
PositionInitiator.User,
DateTime.UtcNow,
user,
isForPaperTrading: isForPaperTrading,
price: openPrice);
var result = await _openTradeCommandHandler.Handle(command);