cryptum 0.0.438 → 0.0.440

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: 928444a27ba206bc2cb2a41b7137aecf5289fe2a93e5ae4445ea20221f386f38
4
+ data.tar.gz: 455bc7d8172ac4d74ed0debe0717b5f0901014eb5eb82403d5bf85c7c5c902be
5
5
  SHA512:
6
- metadata.gz: cb5b72297016e405192ad97f67ee3036b543090846f7969ebb9229f51831b27521ab5a9b690b024bf7769343b6ff00bd50f2863dee9b382353b368def54b8eb5
7
- data.tar.gz: fe649873b9674270f8115fedf3a68dd144e6aedbefc1faf0a18d198d0dd7b66a9f0c46d1b66291f95b64d8c0044e7f103462d1a303e1e6654b406264f7cb7c2e
6
+ metadata.gz: b4f3cd7db066f3423d1a20df48e9bad072f3e6a577fcadf5a3c903e45e56cc784ec4e50c723970f795d2dda39e9956832c73b6e67933b114990afaef51e1c052
7
+ data.tar.gz: 073c507e7b5af88551a5e9bc467ee771643e59a103c8eb52f33f82182088c64c917dcba8640250b3d7f27d79327fc12e3841a20b3d13a501f512cb32dad4e6aa
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gemspec
12
12
  # to build appropriately. Defer to ./reinstall_coinbot_gemset.sh
13
13
  # to review these custom flags
14
14
  gem 'addressable', '2.8.4'
15
- gem 'bundler', '>=2.4.14'
15
+ gem 'bundler', '>=2.4.17'
16
16
  gem 'bundler-audit', '0.9.1'
17
17
  gem 'curses', '1.4.4'
18
18
  gem 'eventmachine', '1.2.7'
@@ -27,7 +27,7 @@ gem 'rdoc', '6.5.0'
27
27
  gem 'require_all', '3.0.0'
28
28
  gem 'rest-client', '2.1.0'
29
29
  gem 'rspec', '3.12.0'
30
- gem 'rubocop', '1.53.1'
30
+ gem 'rubocop', '1.54.2'
31
31
  gem 'rubocop-rake', '0.6.0'
32
32
  gem 'rubocop-rspec', '2.22.0'
33
33
  gem 'ruby-prof', '1.6.3'
@@ -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
@@ -465,13 +463,13 @@ module Cryptum
465
463
  unless buy_created_at_hash_arr.empty?
466
464
  order_exec_last_ln = Time.parse(
467
465
  buy_created_at_hash_arr.first[:created_at]
468
- ).strftime('%Y-%m-%d %H:%M:%S%z')
466
+ ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
469
467
  end
470
468
  when :green, :white
471
469
  if meta[:done_at]
472
470
  order_exec_last_ln = Time.parse(
473
471
  meta[:done_at]
474
- ).strftime('%Y-%m-%d %H:%M:%S%z')
472
+ ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
475
473
  end
476
474
  when :magenta, :yellow
477
475
  sell_created_at_hash_arr = order_history.select do |oh|
@@ -481,7 +479,7 @@ module Cryptum
481
479
  unless sell_created_at_hash_arr.empty?
482
480
  order_exec_last_ln = Time.parse(
483
481
  sell_created_at_hash_arr.first[:created_at]
484
- ).strftime('%Y-%m-%d %H:%M:%S%z')
482
+ ).strftime('%Y-%m-%d %H:%M:%S.%N%z')
485
483
  end
486
484
  end
487
485
 
@@ -31,7 +31,7 @@ module Cryptum
31
31
  event_history.order_book[:market_trend][:buy] = 0
32
32
  event_history.order_book[:market_trend][:sell] = 0
33
33
  event_history.order_book[:last_trend_reset] = Time.now.strftime(
34
- '%Y-%m-%d %H:%M:%S.%N%z'
34
+ '%Y-%m-%d %H:%M:%S%z'
35
35
  )
36
36
 
37
37
  last_trend_reset_time = event_history.order_book[:last_trend_reset]
@@ -74,7 +74,7 @@ module Cryptum
74
74
  end
75
75
 
76
76
  # Have a Clock
77
- clock = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
77
+ clock = Time.now.strftime('%Y-%m-%d %H:%M:%S.%N%z')
78
78
 
79
79
  # UI
80
80
  col_just4 = (Curses.cols - Cryptum::UI.col_fourth) - 1
@@ -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.440'
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.440
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-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.14
33
+ version: 2.4.17
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.14
40
+ version: 2.4.17
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler-audit
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -240,14 +240,14 @@ dependencies:
240
240
  requirements:
241
241
  - - '='
242
242
  - !ruby/object:Gem::Version
243
- version: 1.53.1
243
+ version: 1.54.2
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - '='
249
249
  - !ruby/object:Gem::Version
250
- version: 1.53.1
250
+ version: 1.54.2
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rubocop-rake
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -551,7 +551,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
551
551
  - !ruby/object:Gem::Version
552
552
  version: '0'
553
553
  requirements: []
554
- rubygems_version: 3.4.14
554
+ rubygems_version: 3.4.17
555
555
  signing_key:
556
556
  specification_version: 4
557
557
  summary: Coinbase Pro High-Frequency Trading Bot