cryptum 0.0.281 → 0.0.283

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: 99b8305a25439dced16901f0569fa4dd9a2cac394be0757f01796cb461ff3c63
4
- data.tar.gz: 489296de373d30ff837f4a67ef1059a13f1b2646482f55db44a365dfb7c82145
3
+ metadata.gz: a376adf20da93806a4aefc87afe208f801a0abfe3800bd9ea9b02d826170fa98
4
+ data.tar.gz: 89b1dfda4359a19b7060aadc4680fa2922c3001c580e978f9c6baeaedeaa67c0
5
5
  SHA512:
6
- metadata.gz: f37bb82b77e23f4341898a5dc4c629ad1517b281bcdb56ccd8eb4c34230de0fc5ec786054142ed8280c7782239c780ed0693fae3a88196b78c4605c9937c347d
7
- data.tar.gz: 24a53cf5141f675308efca558149fbdbaea99587de3ae701ab063cfff5c21f16e4ccd9d10928e592c8e337fc033de2d08f78d12d14d507c0809f7a37d8b537dd
6
+ metadata.gz: 261d53347b7566948fa99e2cf1a03ccb79f8955677ae5ecee7716b2a454bcc0452931293e92199ddf0e07aab76ad4f591787284c002bdcd929b46a7ccf845aee
7
+ data.tar.gz: d35179f6e0f6ebfdcdb9a88270d92f2fbf420764481aee9ac5b43212881234f826e18d4f132eb166de4123a2d0c40d0849554638535ee8fe20c9e1dbd570bb08
@@ -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.to_i
39
+ )
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
47
- ).to_i
44
+ order_difference = sell_total - buy_total
45
+ order_difference_out = Cryptum.beautify_large_number(
46
+ value: order_difference.to_i
47
+ )
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.281'
4
+ VERSION = '0.0.283'
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.281
4
+ version: 0.0.283
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.