From 13159014feb299139c2a767818ab9a19853c69cc Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 9 May 2026 15:56:05 +0900 Subject: [PATCH] hot fix --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index c614308..814e234 100644 --- a/bot.py +++ b/bot.py @@ -87,7 +87,7 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager): state.set_last_price(symbol, price) - if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 or orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0: + if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 and orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0: execute_arb(orderman, state)