lib/cryptum/ui/order_execute_details.rb in cryptum-0.0.304 vs lib/cryptum/ui/order_execute_details.rb in cryptum-0.0.305

- old
+ new

@@ -10,20 +10,20 @@ # Supported Method Parameters:: # Cryptum::UI::OrderExecuteDetails.refresh( # ) public_class_method def self.refresh(opts = {}) - option_choice = opts[:option_choice] + # option_choice = opts[:option_choice] event_history = opts[:event_history] order_execute_details_win = opts[:order_execute_details_win] - indicator_status = opts[:indicator_status] - key_press_event = opts[:key_press_event] + # indicator_status = opts[:indicator_status] + # key_press_event = opts[:key_press_event] order_meta_data = event_history.order_execute_selected_data - tpm = order_meta_data[:tpm] - autotrade_percent = order_meta_data[:autotrade_percent] - order_plan_no = order_meta_data[:plan_no] + # tpm = order_meta_data[:tpm] + # autotrade_percent = order_meta_data[:autotrade_percent] + # order_plan_no = order_meta_data[:plan_no] order_color = order_meta_data[:color].to_sym case order_color when :cyan, :red order_id = order_meta_data[:buy_order_id] @@ -92,13 +92,13 @@ order_hist_created_finished_ln = "- Creation Date: #{created_at} | Finished Date: #{done_at}" else order_hist_created_finished_ln = '- Creation Date: N/A | Finished Date: N/A' end - risk_alloc_out = Cryptum.beautify_large_number( - value: order_meta_data[:risk_alloc] - ) + # risk_alloc_out = Cryptum.beautify_large_number( + # value: order_meta_data[:risk_alloc] + # ) invest_out = Cryptum.beautify_large_number( value: order_meta_data[:invest] ) price_out = Cryptum.beautify_large_number( value: order_meta_data[:price] @@ -107,14 +107,14 @@ value: order_meta_data[:size] ) target_price_out = Cryptum.beautify_large_number( value: order_meta_data[:target_price] ) - profit_out = Cryptum.beautify_large_number( - value: order_meta_data[:profit] - ) - plan_no = "#{order_meta_data[:plan_no]}|" + # profit_out = Cryptum.beautify_large_number( + # value: order_meta_data[:profit] + # ) + # plan_no = "#{order_meta_data[:plan_no]}|" invest = "$#{invest_out} @ " tick = "$#{price_out} = " size = "*#{size_out} + " tpm_out = "#{order_meta_data[:tpm]}% = " @@ -125,11 +125,11 @@ details_ln2 = "- Fees: $#{fill_fees} | Fill Size: *#{fill_size}" details_ln3 = "- Executed Value: $#{executed_value} | Market Type: #{market_type} | Settled: #{settled}" # UI col_just1 = (Curses.cols - Cryptum::UI.col_first) - 1 - col_just3 = (Curses.cols - Cryptum::UI.col_third) - 1 - col_just4 = Curses.cols - Cryptum::UI.col_fourth + # col_just3 = (Curses.cols - Cryptum::UI.col_third) - 1 + # col_just4 = Curses.cols - Cryptum::UI.col_fourth # ROW 1 out_line_no = 0 line_color = order_color header_color = order_color