cryptum 0.0.260 → 0.0.261
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/ui/order_execution.rb +4 -4
- data/lib/cryptum/ui/order_plan.rb +1 -1
- data/lib/cryptum/ui/ticker.rb +1 -1
- 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: 4d760ea86d8e98005d157ecee37d0b52fbd89bc44bc5c093bac8201020dfee8c
|
4
|
+
data.tar.gz: e6e52346266ac38bf4f3e71535a17a6891388f27e06884985f35c7f09a957d6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffdfad77d1716fd242f4441a271066851c397fe44f3e3ec828b22bf8688236c98bd5b22d27e18da526c4c6bd445731351913eea9cb38b982216b459571a9fc5
|
7
|
+
data.tar.gz: dd2c16cbdb3ebdf0349cde5e5e9f4a08ad2f436bceed8994b44695ebbadec9552848e0a0ddb85da5dd408f9050b5ea5dbc598edeb7177cb705e034b952107e73
|
@@ -455,11 +455,11 @@ module Cryptum
|
|
455
455
|
oh[:id] == meta[:buy_order_id]
|
456
456
|
end
|
457
457
|
|
458
|
-
buy_created_at = '__-__ __:__:__'
|
458
|
+
buy_created_at = '____-__-__ __:__:__'
|
459
459
|
unless buy_created_at_hash_arr.empty?
|
460
460
|
buy_created_at = Time.parse(
|
461
461
|
buy_created_at_hash_arr.first[:created_at]
|
462
|
-
).strftime('%m-%d %H:%M:%S')
|
462
|
+
).strftime('%Y-%m-%d %H:%M:%S')
|
463
463
|
end
|
464
464
|
|
465
465
|
invest = "$#{invest_out} @ "
|
@@ -469,7 +469,7 @@ module Cryptum
|
|
469
469
|
targ_tick = "$#{target_price_out}"
|
470
470
|
profit = "|Profit: $#{meta[:profit]}"
|
471
471
|
|
472
|
-
order_exec_ln = "#{
|
472
|
+
order_exec_ln = "#{buy_created_at}|#{invest}#{tick}#{size}#{tpm_out}#{targ_tick}#{profit}"
|
473
473
|
|
474
474
|
order_execute_win.setpos(out_line_no, Cryptum::UI.col_first)
|
475
475
|
order_execute_win.clrtoeol
|
@@ -492,7 +492,7 @@ module Cryptum
|
|
492
492
|
string: ''.ljust(col_just1, ' ')
|
493
493
|
)
|
494
494
|
|
495
|
-
header_str = "SUMMARY: #{total_to_sell} | #{
|
495
|
+
header_str = "24 HR SUMMARY | Open Sell Orders: #{total_to_sell} | Sold: #{order_hist_meta_sold} | Gains: $#{gains_24h_out} | Expired: #{order_hist_meta_expired}"
|
496
496
|
order_execute_win.setpos(
|
497
497
|
out_line_no,
|
498
498
|
Cryptum::UI.col_center(str: header_str)
|
@@ -389,7 +389,7 @@ module Cryptum
|
|
389
389
|
string: ''.ljust(col_just1, ' ')
|
390
390
|
)
|
391
391
|
|
392
|
-
header_str = "SUMMARY: $#{order_plan_volume_out}
|
392
|
+
header_str = "CYCLE SUMMARY | Risk Allocated: $#{order_plan_volume_out} | Slices: #{max_order_plan_slices} | Profit: $#{order_plan_profit_sum_out} | #{order_plan_exec_percent}% Done"
|
393
393
|
order_plan_win.setpos(
|
394
394
|
out_line_no,
|
395
395
|
Cryptum::UI.col_center(str: header_str)
|
data/lib/cryptum/ui/ticker.rb
CHANGED
@@ -36,7 +36,7 @@ module Cryptum
|
|
36
36
|
open_24h = event[:open_24h].to_f
|
37
37
|
order_book[:open_24h] = open_24h
|
38
38
|
|
39
|
-
open_24h_out = "#{Cryptum.open_symbol} #{fiat_symbol}#{format("%0.#{fiat_smallest_decimal}f", open_24h)}"
|
39
|
+
open_24h_out = "#{Cryptum.open_symbol} #{fiat_symbol}#{Cryptum.beautify_large_number(value: format("%0.#{fiat_smallest_decimal}f", open_24h))}"
|
40
40
|
|
41
41
|
beautify_ticker = Cryptum.beautify_large_number(
|
42
42
|
value: format("%0.#{fiat_smallest_decimal}f", event[:price].to_f)
|
data/lib/cryptum/version.rb
CHANGED