Fix healthcheck and tradingbot positions
This commit is contained in:
@@ -411,6 +411,8 @@ public class TradingBot : Bot, ITradingBot
|
||||
{
|
||||
Logger.LogInformation(
|
||||
$"Position {signal.Identifier} don't need to be update. Position still opened");
|
||||
|
||||
await SetPositionStatus(signal.Identifier, PositionStatus.Filled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -445,6 +447,10 @@ public class TradingBot : Bot, ITradingBot
|
||||
{
|
||||
Logger.LogInformation(
|
||||
$"Position {signal.Identifier} don't need to be update. Position still opened");
|
||||
|
||||
position.Status = PositionStatus.Filled;
|
||||
|
||||
await SetPositionStatus(signal.Identifier, PositionStatus.Filled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user