cryptum 0.0.437 → 0.0.439

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: c52559a0fe9d90cb03287578b9f91831b1dab36fdf53fc27da19872bdfdcfad1
4
- data.tar.gz: adc165e7481a2feb7388c2ad62fc83fcd2f63909e2f14cf3d7eee2fcf3aed5e6
3
+ metadata.gz: a7d57a00e16f113ad33f21171cf5b634e17903f16ce968365a55561a77c2979d
4
+ data.tar.gz: 0e8ca57d898892f9cab957256bc7b04f9f54dfa8471ae252103bb5470b1b53a0
5
5
  SHA512:
6
- metadata.gz: 79c8982aa42b247eb98d74379f29f9f772281724a67f82db957451f9c3dd3c11ded0c196c52ff18ae7c9d9bd8eafdc14d5e306adb573d7dafd536288d701f9cc
7
- data.tar.gz: e505dfa66f8aa2690c4bdb509ecd4d09b1783d2da6f9c11114ec2587e31fdfe94ac808314ea1de473e33cd6520a5e710cf578426576f1110fa31d3a185901bbc
6
+ metadata.gz: d869f0cf136ed959d8f11ab21a7e5f6d0efabbcc9aee128861621318ea257ca1ea96bc9f69ede6c65c701b4c9dc282f17b2750e172773544cad93dd386cb2d96
7
+ data.tar.gz: e7542b23ab3a0080ffdf3353ca7f83096494b8827f189f49ef5130b7455a0874116144386ce2fc4bb27c0898336851f4822e931d426057124b055debaceb16d2
@@ -72,11 +72,9 @@ module Cryptum
72
72
  # BUY
73
73
  # Reset times to max or default depending on
74
74
  # BULL or BEAR market trend
75
- event_history.time_between_orders = event_history.time_between_orders_max if buy_total >= sell_total &&
76
- !event_history.bullish_trend
75
+ event_history.time_between_orders = event_history.time_between_orders_max if buy_total >= sell_total && !event_history.bullish_trend
77
76
 
78
- event_history.time_between_orders = event_history.time_between_orders_reset if sell_total > buy_total &&
79
- !event_history.bullish_trend
77
+ event_history.time_between_orders = event_history.time_between_orders_reset if sell_total > buy_total && !event_history.bullish_trend
80
78
 
81
79
  if event_history.order_ready &&
82
80
  indicator_status.action_signal == :buy &&
@@ -86,7 +84,7 @@ module Cryptum
86
84
 
87
85
  # If price is greater than the lowest selling
88
86
  # limit order, force it to be slightly less
89
- last_order = order_history_meta.reverse.find { |o| o[:color] == 'yellow' }
87
+ last_order = order_history_meta.reverse.find { |o| o[:color].to_sym == :yellow }
90
88
  # lowest_selling_price = event_history.lowest_selling_price
91
89
  event_history.last_purchase_price = last_order[:price].to_f if last_order
92
90
  last_purchase_price = event_history.last_purchase_price
@@ -151,7 +151,7 @@ module Cryptum
151
151
  )
152
152
  )
153
153
 
154
- event_history.order_book = order_book
154
+ # event_history.order_book = order_book
155
155
  # TODO: Everything Above this Line Needs to be Indicators ^
156
156
 
157
157
  # UI
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.437'
4
+ VERSION = '0.0.439'
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.437
4
+ version: 0.0.439
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-06-26 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable