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 +4 -4
- data/lib/cryptum/order_book/generate.rb +1 -0
- data/lib/cryptum/ui/order_execution.rb +1 -1
- data/lib/cryptum/ui/order_plan.rb +2 -10
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2adb75d68ee11c3e0a5ea432d5ef0518446fd37083e3e32eacbc04ace27ed2a
|
4
|
+
data.tar.gz: 62cf49edadc308f82b464f3de1a4a80cfc1a45eec22b5f24d3e2fe215cf455a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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] =
|
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
|
data/lib/cryptum/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|