Skip to content

Commit c98db67

Browse files
committed
fix typo
1 parent c90bc3d commit c98db67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exbot-py/strategies/strategy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def handle_side(
345345
):
346346
return False
347347
else:
348-
logger.warning(f"close short failed.")
348+
logger.warning(f"close {reverse_side} failed.")
349349
return False
350350
else:
351351
if position_amount < amount_max_limit:
@@ -364,7 +364,7 @@ def handle_side(
364364
return False
365365
else:
366366
# 超出最大仓位
367-
logger.info(f"long position is max: {position_amount}")
367+
logger.info(f"{hold_side} position is max: {position_amount}")
368368
return True
369369
except Exception as e:
370370
logger.exception(f"An unknown error occurred in handle_side: {e}")

0 commit comments

Comments
 (0)