diff --git a/bot.py b/bot.py index 7bd11a7..92e6502 100644 --- a/bot.py +++ b/bot.py @@ -87,10 +87,10 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager): state.set_last_price(symbol, price) # 거래도 - p_valbz = state.get_fair_value("VALBZ") - p_vale = state.get_fair_value("VALE") + p_valbz = state.get_last_price("VALBZ") + p_vale = state.get_last_price("VALE") - if state.get_last_price("VALBZ") is None or state.get_last_price("VALE") is None: + if p_vale is None or p_valbz is None: return FEE = 10