cryptum 0.0.331 → 0.0.333

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bc7b6990410f2f5c42f379118c90b162834aed78d4a67c14eb26fa043caa71e
4
- data.tar.gz: 2295d95f989f1e843424637e61cdf859c2f95caa71a3bd14d1bcf5956d76a74e
3
+ metadata.gz: c2adb75d68ee11c3e0a5ea432d5ef0518446fd37083e3e32eacbc04ace27ed2a
4
+ data.tar.gz: 62cf49edadc308f82b464f3de1a4a80cfc1a45eec22b5f24d3e2fe215cf455a5
5
5
  SHA512:
6
- metadata.gz: a916eae1f779fb87d360c28385041f9ab3f5078eacecdb48640a8544047591804a66ebab65c62e98c12ba2f845fc67212dd464e0efe4dde17df5b72d5b4cdff7
7
- data.tar.gz: b3109886785fd6847ec477c5bcadaf1c8d63d8bd238178476f06ef20d6aec79ae2f5668886b4f251d4b1bf4560d403fd8d81ed75cc6f706b12e5ade538e5cbef
6
+ metadata.gz: 027211af32c6656c290a49916084d18edc818e897a4e4bdf6024fbbfe8da6089bbb239cd86f9098e8b4a4b045a11227f8efa06e2fcef6e9b1a3ef3749551c515
7
+ data.tar.gz: 2c1e57c57e339c51996f29b977134669581f76bd4c51985285c989751334684507db164d5ac3eb8a1e9956fbc218c246a11846bc1c5ff8f01ef34291a34527f7
@@ -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 if order_plan.any?
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.333'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.333
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable