Add reconcilliation for cancelled position if needed

This commit is contained in:
2025-12-11 18:35:25 +07:00
parent 1426f0b560
commit 65d00c0b9a
3 changed files with 138 additions and 7 deletions

View File

@@ -1175,7 +1175,7 @@ public abstract class TradingBotBase : ITradingBot
{
Candle currentCandle = await GetCurrentCandleForPositionClose(Account, Config.Ticker.ToString());
// Try broker history reconciliation first (futures-specific)
// Try broker history reconciliation first
var brokerHistoryReconciled = await ReconcileWithBrokerHistory(position, currentCandle);
if (brokerHistoryReconciled && !forceMarketClose)
{