cryptum 0.0.452 → 0.0.453

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: 6d6c8c355fd03538785ac48aec8903bcab7cbf8e5836c58b04a54d7097226f1f
4
- data.tar.gz: 7ac941cbc7664c6f7a93ab0b9435baa2b18092a06e0aafb1a04cac5734ee2933
3
+ metadata.gz: c65f2531ba188e7c6d94740f545c4e5b923718a0068ecbd06dc34e3f56cc0a58
4
+ data.tar.gz: 7361620b8b2cca02ac949994b55a84f4542b7e712c46ea680a984b658a38fcf4
5
5
  SHA512:
6
- metadata.gz: 856f94579e0da11c2413c956a86bbc7e8f5edc68d362fab33fcbfefb07b031cd26904dbca57ea915714f42fcad65e54ac6fdc452749ec7ce35037817454752b6
7
- data.tar.gz: '009270dbf188f8fa91b689154d9e09d6036aee635cf3ed67295c041c290c4571d475c54b73958746b19cf3df6d7ae48aca4d44e47d088a304d9a27dc3337d953'
6
+ metadata.gz: 8a977dd6d89c4183d5fc76f395b019775a5c43f232b2226ed999f645d359c030f48f6d3d2e0e9a481ae4b149091faf7dbc8fbf908ea9ae62e0ef0b85471c93d4
7
+ data.tar.gz: 007abe184aab7b1c9ea20139e156d086daf22488d00ce41bb2dc00dd45d82254c8f7f89849dd57584e199db653ad232d22ea0dc142f395b38805d6e6342b8158
data/.rubocop.yml CHANGED
@@ -6,7 +6,7 @@ Layout/LineLength:
6
6
  Lint/UselessRescue:
7
7
  Enabled: false
8
8
  Metrics/AbcSize:
9
- Max: 458.7
9
+ Max: 459.9
10
10
  Metrics/BlockLength:
11
11
  Max: 138
12
12
  Metrics/BlockNesting:
@@ -317,7 +317,7 @@ module Cryptum
317
317
 
318
318
  # Calculate Average Round Trip for Sold Orders
319
319
  # (i.e. Time between buy && sell dates)
320
- avg_round_trip_days_out = 0.0
320
+ avg_round_trip_days = 0
321
321
  unless oh_meta_sold_arr.empty?
322
322
  round_trip_aggregate = 0
323
323
  oh_meta_sold_arr.each do |ohm|
@@ -326,8 +326,8 @@ module Cryptum
326
326
  round_trip_aggregate += sell_date - buy_date
327
327
  end
328
328
  avg_round_trip_days = (round_trip_aggregate / oh_meta_sold_arr.length) / 86_400.0
329
- avg_round_trip_days_out = format('%.2f', avg_round_trip_days)
330
329
  end
330
+ avg_round_trip_days_out = format('%.2f', avg_round_trip_days)
331
331
  # Snag all expired orders
332
332
  # oh_meta_expired_arr = order_history_meta.select do |ohm|
333
333
  # ohm[:color].to_sym == :white && ohm.key?(:done_at)
@@ -375,6 +375,7 @@ module Cryptum
375
375
  oh_meta_total_selling_profit_arr = order_history_meta.select do |ohm|
376
376
  ohm[:color].to_sym == :yellow
377
377
  end
378
+ total_selling_this_session = oh_meta_total_selling_profit_arr.length
378
379
 
379
380
  total_selling_profit = oh_meta_total_selling_profit_arr.map do |ohms|
380
381
  ohms[:profit].to_f
@@ -561,7 +562,7 @@ module Cryptum
561
562
  string: ''.ljust(col_just1, ' ')
562
563
  )
563
564
 
564
- header_str = "SELLING: #{total_to_sell} w tProf: $#{total_selling_profit_out} | "
565
+ header_str = "OPEN S/T: #{total_selling_this_session}/#{total_to_sell} TPMsD: $#{total_selling_profit_out} | "
565
566
  header_str += "SOLD 24h: #{order_hist_meta_sold_twenty_four} YTD: #{order_hist_meta_sold} | "
566
567
  header_str += "GAINS 24h: $#{gains_24h_out} YTD: $#{gains_out} | "
567
568
  header_str += "AVG RND TRIP DAYS: #{avg_round_trip_days_out}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.452'
4
+ VERSION = '0.0.453'
5
5
  end
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.452
4
+ version: 0.0.453
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-26 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable