From c9f4ad93ee36c738b1bb275dae3c6b1a7e60d8a7 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 9 May 2026 16:49:59 +0900 Subject: [PATCH] down arb --- bot_x.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bot_x.py b/bot_x.py index a725bdf..125ee67 100644 --- a/bot_x.py +++ b/bot_x.py @@ -337,6 +337,10 @@ def main(): if not market_open or xlf_state != "IDLE": return + if any(mean_rev.position.get(s) is not None for s in symbols_for_mr): + return + if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema): + return bond_ask = state.ask_prices["BOND"] gs_ask = state.ask_prices["GS"] @@ -407,6 +411,10 @@ def main(): if not market_open or vale_state != "IDLE": return + if any(mean_rev.position.get(s) is not None for s in symbols_for_mr): + return + if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema): + return vale_bid = state.bid_prices["VALE"] vale_ask = state.ask_prices["VALE"]