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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7dda352965440c606383099a1ad8affc595e83b3126b1d9a17a5a9e80ea93f8
4
- data.tar.gz: 9680be3d642bdbf69833c3e61d1d25aa908a2259f421138106c42a554de7069e
3
+ metadata.gz: 3c04633f954adc6a1d46177ffad69796738a01be430071efc785226f8f1fd116
4
+ data.tar.gz: 804989be187108d606c9784aae5149dea03a302b0bd937e5115810a0714d74a7
5
5
  SHA512:
6
- metadata.gz: fb4e777ff41816b922ce7a98323c4ea33142abb623cd3e9bab90433e7436fdcf06d538c8794c7c3360234494ae6a062ddaa67a701ae718f8628767232c129b5f
7
- data.tar.gz: 4cbf5bb9dd5c144b92b8165e65fd830d6c84e9cd479e3e65ebae6c1dc4d10c4b675609fb8d292dd706e79398d9f59aa15e906ad78de416eb6d2d8a1bddc4dcf9
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} TPMD: $TBD | "
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.457'
4
+ VERSION = '0.0.458'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.457
4
+ version: 0.0.458
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.