cryptum 0.0.438 → 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: 40477e6f15555cc12c8e7f85ba9fafdb2e4181508a88b691343838937c462734
4
- data.tar.gz: d721dddc63a452f697bd708a288d043f566f594e777ba2b201a8d4cd0abbf90f
3
+ metadata.gz: a7d57a00e16f113ad33f21171cf5b634e17903f16ce968365a55561a77c2979d
4
+ data.tar.gz: 0e8ca57d898892f9cab957256bc7b04f9f54dfa8471ae252103bb5470b1b53a0
5
5
  SHA512:
6
- metadata.gz: cb5b72297016e405192ad97f67ee3036b543090846f7969ebb9229f51831b27521ab5a9b690b024bf7769343b6ff00bd50f2863dee9b382353b368def54b8eb5
7
- data.tar.gz: fe649873b9674270f8115fedf3a68dd144e6aedbefc1faf0a18d198d0dd7b66a9f0c46d1b66291f95b64d8c0044e7f103462d1a303e1e6654b406264f7cb7c2e
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.438'
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.438
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-27 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