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 +4 -4
- data/.rubocop.yml +1 -1
- data/lib/cryptum/ui/order/execute.rb +4 -3
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65f2531ba188e7c6d94740f545c4e5b923718a0068ecbd06dc34e3f56cc0a58
|
4
|
+
data.tar.gz: 7361620b8b2cca02ac949994b55a84f4542b7e712c46ea680a984b658a38fcf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a977dd6d89c4183d5fc76f395b019775a5c43f232b2226ed999f645d359c030f48f6d3d2e0e9a481ae4b149091faf7dbc8fbf908ea9ae62e0ef0b85471c93d4
|
7
|
+
data.tar.gz: 007abe184aab7b1c9ea20139e156d086daf22488d00ce41bb2dc00dd45d82254c8f7f89849dd57584e199db653ad232d22ea0dc142f395b38805d6e6342b8158
|
data/.rubocop.yml
CHANGED
@@ -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
|
-
|
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 = "
|
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}"
|
data/lib/cryptum/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|