From 7e7f0f4f22dbd4ac4555f543b173da3a02e53789 Mon Sep 17 00:00:00 2001 From: 21in7 Date: Mon, 2 Mar 2026 16:24:27 +0900 Subject: [PATCH] fix: restore entry_price and entry_quantity on position recovery Made-with: Cursor --- src/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bot.py b/src/bot.py index 95786ca..373a4f1 100644 --- a/src/bot.py +++ b/src/bot.py @@ -41,6 +41,8 @@ class TradingBot: if position is not None: amt = float(position["positionAmt"]) self.current_trade_side = "LONG" if amt > 0 else "SHORT" + self._entry_price = float(position["entryPrice"]) + self._entry_quantity = abs(amt) entry = float(position["entryPrice"]) logger.info( f"기존 포지션 복구: {self.current_trade_side} | "