Remove debug for position updated
This commit is contained in:
@@ -1026,7 +1026,7 @@ public class TradingBotBase : ITradingBot
|
||||
{
|
||||
await VerifyAndUpdateBalance();
|
||||
}
|
||||
|
||||
|
||||
var command = new OpenPositionRequest(
|
||||
Config.AccountName,
|
||||
Config.MoneyManagement,
|
||||
@@ -1061,12 +1061,12 @@ public class TradingBotBase : ITradingBot
|
||||
|
||||
if (!Config.IsForBacktest)
|
||||
{
|
||||
await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory,
|
||||
async messengerService => { await messengerService.SendPosition(position); });
|
||||
}
|
||||
await ServiceScopeHelpers.WithScopedService<IMessengerService>(_scopeFactory,
|
||||
async messengerService => { await messengerService.SendPosition(position); });
|
||||
}
|
||||
|
||||
await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`");
|
||||
return position;
|
||||
await LogDebug($"✅ Position requested successfully for signal: `{signal.Identifier}`");
|
||||
return position;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2653,9 +2653,6 @@ public class TradingBotBase : ITradingBot
|
||||
};
|
||||
|
||||
await agentGrain.OnPositionUpdatedAsync(positionUpdatedEvent);
|
||||
// No need to notify platform grain, it will be notified when position is closed or opened only
|
||||
|
||||
await LogDebug($"Sent position updated event to both grains for position {position.Identifier}");
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user