cryptum 0.0.457 → 0.0.458
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/execute.rb +4 -3
- 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: 3c04633f954adc6a1d46177ffad69796738a01be430071efc785226f8f1fd116
|
4
|
+
data.tar.gz: 804989be187108d606c9784aae5149dea03a302b0bd937e5115810a0714d74a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a86babcb3ee6fdfedf5f218ead23f74bc449c8bb8f8bb9eb7afb6b7b716458aab16cda47dc524d1af447116b04346722e9e2d7f7b453140bf1afb2b91379bb6
|
7
|
+
data.tar.gz: ce866cc620947b3a575a9b4124bf076002818ba6457cfc46f479baad6b7014ecf4a489ca73dec0f5fcbb986d3db813cdde5d33bcbc03ee1214cfe77157784b56
|
@@ -255,6 +255,8 @@ module Cryptum
|
|
255
255
|
oh.key?(:done_at) &&
|
256
256
|
Time.now.strftime('%Y') == Time.parse(oh[:done_at]).strftime('%Y')
|
257
257
|
end
|
258
|
+
# TODO: ensure oh_buy_ytd_arr && oh_sold_ytd_arr are same length
|
259
|
+
# otherwise it throws off the profit calculations
|
258
260
|
order_hist_sold_ytd = oh_sold_ytd_arr.length
|
259
261
|
order_hist_sold_usd_tot = oh_sold_ytd_arr.map do |oh|
|
260
262
|
oh[:executed_value].to_f
|
@@ -641,10 +643,9 @@ module Cryptum
|
|
641
643
|
string: ''.ljust(col_just1, ' ')
|
642
644
|
)
|
643
645
|
|
644
|
-
tot_header_str = "TOTAL OPEN: #{total_to_sell}
|
646
|
+
tot_header_str = "TOTAL OPEN: #{total_to_sell} | "
|
645
647
|
tot_header_str += "SOLD 24h: #{order_hist_sold_twenty_four} YTD: #{order_hist_sold_ytd} | "
|
646
|
-
tot_header_str += "PROF 24h: $#{order_hist_profit_usd_24h_out} YTD: $#{order_hist_profit_usd_ytd_out}
|
647
|
-
tot_header_str += 'AvgRndT DAYS: TBD'
|
648
|
+
tot_header_str += "PROF 24h: $#{order_hist_profit_usd_24h_out} YTD: $#{order_hist_profit_usd_ytd_out}"
|
648
649
|
order_execute_win.setpos(
|
649
650
|
out_line_no,
|
650
651
|
Cryptum::UI.col_center(str: tot_header_str)
|
data/lib/cryptum/version.rb
CHANGED