cryptum 0.0.331 → 0.0.332

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bc7b6990410f2f5c42f379118c90b162834aed78d4a67c14eb26fa043caa71e
4
- data.tar.gz: 2295d95f989f1e843424637e61cdf859c2f95caa71a3bd14d1bcf5956d76a74e
3
+ metadata.gz: 198cefce702d824cf08884303792c044e47e371254b4f0a8ee57080a481d4b2c
4
+ data.tar.gz: 22952150819ac8b4f5e51eee655daead31f743baeba36c5c6220348ec4b0657d
5
5
  SHA512:
6
- metadata.gz: a916eae1f779fb87d360c28385041f9ab3f5078eacecdb48640a8544047591804a66ebab65c62e98c12ba2f845fc67212dd464e0efe4dde17df5b72d5b4cdff7
7
- data.tar.gz: b3109886785fd6847ec477c5bcadaf1c8d63d8bd238178476f06ef20d6aec79ae2f5668886b4f251d4b1bf4560d403fd8d81ed75cc6f706b12e5ade538e5cbef
6
+ metadata.gz: 8dd41bd3b906e1a7615b5935943ad7aa8b56393e5deb5f2c0523497433f91fb81cef2e77e92e3e246635b9545cb692ee0a20653530b4ba5dfd378841db77009b
7
+ data.tar.gz: 1f6f23ec65c6e94a14fc8f14726d25e2d0df2dbcfae8a77b5e0c840bf40969062de43782e6483a643cbf8f1077d3eb6592d054e404e64b7beaca49a9d913f154
@@ -83,6 +83,7 @@ module Cryptum
83
83
 
84
84
  event_history.order_book = order_book
85
85
  if option_choice.reset_session_countdown
86
+ event_history.order_book[:order_plan] = []
86
87
  event_history.order_book[:market_trend][:buy] = 0
87
88
  event_history.order_book[:market_trend][:sell] = 0
88
89
  event_history.order_book[:last_trend_reset] = Time.now.strftime(
@@ -413,7 +413,7 @@ module Cryptum
413
413
  event_history.order_execute_max_records_available_to_display = last_row if last_row < max_rows_to_display
414
414
  first_row = last_row - event_history.order_execute_max_records_available_to_display
415
415
  event_history.order_execute_index_offset = first_row
416
- remaining_blank_rows = (max_rows_to_display - last_row) + 1
416
+ remaining_blank_rows = max_rows_to_display - last_row
417
417
  end
418
418
 
419
419
  if order_history_meta.any?
@@ -158,13 +158,14 @@ module Cryptum
158
158
  order_slice[:tpm] = tpm
159
159
  order_slice[:autotrade_percent] = autotrade_percent
160
160
  order_slice[:color] = plan_color
161
- order_slice[:last_slice] = last_slice_detected
161
+ order_slice[:last_slice] = false
162
162
 
163
163
  order_plan.push(order_slice) unless event_history.recalculate_order_plan
164
164
  fiat_budget -= fiat_investing
165
165
  previous_slice_fiat_investing = fiat_investing
166
166
  plan_no_slice += 1
167
167
  end
168
+ order_plan.last[:last_slice] = true
168
169
  event_history.order_book[:order_plan] = order_plan
169
170
  end
170
171
 
@@ -420,15 +421,6 @@ module Cryptum
420
421
  end
421
422
  event_history.order_plan_selected_data = selected_order
422
423
 
423
- # if order_plan.length < 9
424
- # lines_to_clear = 9 - order_plan.length
425
- # (1..lines_to_clear).each do |_line|
426
- # out_line_no += 1
427
- # order_plan_win.setpos(out_line_no, Cryptum::UI.col_first)
428
- # order_plan_win.clrtoeol
429
- # end
430
- # end
431
-
432
424
  # Clear to SUMMARY
433
425
  # (Only Applicable if order_book[:order_plan] < max_rows_to_display)
434
426
  # out_line_no += 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.331'
4
+ VERSION = '0.0.332'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.331
4
+ version: 0.0.332
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.