Add user to position + fix few things
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user