cryptum 0.0.282 → 0.0.284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b68678cd4d82c2157cc18c4cfb329c25d9d35f059071ca6c413c0acdec2f11a7
4
- data.tar.gz: 8eb8c32ae2681472f55dcd2bfe9e12882f6a664db9cd086cfc0e1a607eae4924
3
+ metadata.gz: 89024d4cc5845fbe7796b479945592dbbe377aaad3b424367a1c34f431c2e2ac
4
+ data.tar.gz: cc67a839bfb60717a9cb374b61db9925f819fac1ef197db353c7b6c9f3854344
5
5
  SHA512:
6
- metadata.gz: ce8af07a2325e557d1db1935dca48ef099572473856476a039d9c227ebb864465866438f10eb0c5ffc4767bee3158f8ebc7f4ff31f58134203209d7418f4e69a
7
- data.tar.gz: da58caa07fa6949c9c0ff46c76fec5b982c214e10dad4159bf29ea60dfc32af06a85718261ec96655d57465ac9b0770b2ef8ecc0a16b582828018ef4aeb156c8
6
+ metadata.gz: 5637a7925b03289401e84051b6e96321efbfd8102ddbfb8f41484d31edea6bbc25549ed01b9da6e3e63198b90ba21cfb9af493a060f99136242b1134210773a8
7
+ data.tar.gz: a5a9622fe9102851bdc3c62aebdd9cad64a97f0a0b3f502cbeb7897f05199e6877ac11aade58249bd538b96785c4701418d4cbff4407a0729420a6c47da373c9
@@ -33,20 +33,20 @@ module Cryptum
33
33
 
34
34
  # order_difference = 0
35
35
  if buy_total > sell_total
36
- # Too expensive
37
- # order_difference = Cryptum.beautify_large_number(
38
- # value: buy_total - sell_total
39
- # ).to_i
40
36
  order_difference = buy_total - sell_total
37
+ order_difference_out = Cryptum.beautify_large_number(
38
+ value: order_difference
39
+ ).to_i
41
40
  indicator_hash[:color] = :green
42
- indicator_hash[:ui] = "BUYS UP BY #{order_difference.to_i}"
41
+ indicator_hash[:ui] = "BUYS UP BY #{order_difference_out}"
43
42
  indicator_hash[:status] = "B#{Cryptum.up_arrow}"
44
43
  elsif buy_total < sell_total
45
- order_difference = Cryptum.beautify_large_number(
46
- value: sell_total - buy_total
44
+ order_difference = sell_total - buy_total
45
+ order_difference_out = Cryptum.beautify_large_number(
46
+ value: order_difference
47
47
  ).to_i
48
48
  indicator_hash[:color] = :red
49
- indicator_hash[:ui] = "SELLS UP BY #{order_difference}"
49
+ indicator_hash[:ui] = "SELLS UP BY #{order_difference_out}"
50
50
  indicator_hash[:status] = "S#{Cryptum.up_arrow}"
51
51
  else
52
52
  # This Condition is Met When candle_buy_tot == candle_sell_tot
@@ -73,7 +73,6 @@ module Cryptum
73
73
  order_history = event_history.order_book[:order_history]
74
74
  order_history_meta = event_history.order_book[:order_history_meta]
75
75
 
76
- # VERY EXPENSIVE
77
76
  # Only retain past 24 hours of
78
77
  # order history meta for bought, sold, and expired
79
78
  # keep open limit sell orders indefintely
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.282'
4
+ VERSION = '0.0.284'
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.282
4
+ version: 0.0.284
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.