lib/cryptum/event/history.rb in cryptum-0.0.271 vs lib/cryptum/event/history.rb in cryptum-0.0.272
- old
+ new
@@ -33,11 +33,12 @@
:order_execute_win_active,
:order_execute_details_win_active,
:order_execute_index_offset,
:order_execute_max_rows_to_display,
:order_execute_row_to_select,
- :order_execute_selected_data
+ :order_execute_selected_data,
+ :recalculate_order_plan
def initialize(opts = {})
# option_choice = opts[:option_choice]
start_time = opts[:start_time]
order_book = opts[:order_book]
@@ -46,11 +47,11 @@
self.first_event = true
self.order_canceled = false
self.order_submitted = false
self.order_ready = false
self.order_book = order_book
- self.plan_no = 0
+ self.plan_no = 1
self.start_time = start_time
self.reconnected = false
self.red_pill = false
self.order_plan_win_active = true
self.order_plan_details_win_active = false
@@ -62,9 +63,10 @@
self.order_execute_details_win_active = false
self.order_execute_index_offset = 0
self.order_execute_max_rows_to_display = 6
self.order_execute_row_to_select = order_execute_index_offset
self.order_execute_selected_data = { color: :white }
+ self.recalculate_order_plan = false
# TODO: Implement market_trend_reset / 144
# Default = 10 minutes
self.time_between_orders = 600
self.time_between_orders_reset = time_between_orders