From e40f457ecfd906bda99f317e5362529e9a636282 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 9 May 2026 15:54:33 +0900 Subject: [PATCH] botx --- bot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 253b44b..c614308 100644 --- a/bot.py +++ b/bot.py @@ -87,10 +87,8 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager): state.set_last_price(symbol, price) - print("포지션 괴리율", orderman.positions["VALE"] - orderman.future_positions["VALE"], orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"]) - - - execute_arb(orderman, state) + if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 or orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0: + execute_arb(orderman, state) def execute_arb(orderman: OrderManager, state: StateManager):