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 +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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 198cefce702d824cf08884303792c044e47e371254b4f0a8ee57080a481d4b2c
|
4
|
+
data.tar.gz: 22952150819ac8b4f5e51eee655daead31f743baeba36c5c6220348ec4b0657d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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