lib/cryptum/event/parse.rb in cryptum-0.0.431 vs lib/cryptum/event/parse.rb in cryptum-0.0.432
- old
+ new
@@ -106,10 +106,10 @@
bot_conf: bot_conf,
fiat_portfolio_file: fiat_portfolio_file
)
recalc_op = event_history.recalculate_order_plan
order_plan = event_history.order_book[:order_plan]
- terminal_win.key_press_event.key_w = true if (recalc_op || order_plan.empty?) &&
+ terminal_win.key_press_event.key_w = true if (event_history.order_ready || recalc_op || order_plan.empty?) &&
!event_history.red_pill
event_history.recalculate_order_plan = false
end
if event_history.order_plan_details_win_active