From 8db85d0c0ef49d59917ef9cb5e7e70ce31e4cd91 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 9 May 2026 14:06:47 +0900 Subject: [PATCH] some change in p_ --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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