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: