some change in p_
This commit is contained in:
6
bot.py
6
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
|
||||
|
||||
Reference in New Issue
Block a user