From bc33e4f8b21265bb3d1c87da753af54494bde1ba Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 9 May 2026 15:01:25 +0900 Subject: [PATCH] bidir 2 --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d254bb5..d10c989 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) - # 거래도 + # 거래도 진행 // VALBZ와 VALE의 가격이 모두 존재할 때만 거래 시도 if symbol == "VALBZ" or symbol == "VALE": print( f"Current prices - VALBZ: {state.get_last_price('VALBZ')}, VALE: {state.get_last_price('VALE')}" @@ -99,6 +99,7 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager): print("NONE") return + FEE = 10 SZ = 10 if p_vale + 1 < p_valbz - 1: