We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90bc3d commit c98db67Copy full SHA for c98db67
exbot-py/strategies/strategy.py
@@ -345,7 +345,7 @@ def handle_side(
345
):
346
return False
347
else:
348
- logger.warning(f"close short failed.")
+ logger.warning(f"close {reverse_side} failed.")
349
350
351
if position_amount < amount_max_limit:
@@ -364,7 +364,7 @@ def handle_side(
364
365
366
# 超出最大仓位
367
- logger.info(f"long position is max: {position_amount}")
+ logger.info(f"{hold_side} position is max: {position_amount}")
368
return True
369
except Exception as e:
370
logger.exception(f"An unknown error occurred in handle_side: {e}")
0 commit comments