cryptum 0.0.361 → 0.0.363

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: 700f5049379602380f8aa288cf38c6bfde8bcadab9b77e7022171ca2db34922a
4
- data.tar.gz: d7814e9633e81b724262fb461e5174a5c7974066604ec6df5bfc7dc15002e867
3
+ metadata.gz: 68828b6b87e0870751c42dcec69b36a60ca72782cca5837800e14719da4d064b
4
+ data.tar.gz: 3ff3f279eb11a2cc8146e57d1e54689acd100e072ccb91e272ca49853f8438dd
5
5
  SHA512:
6
- metadata.gz: a936730f94b46dff797bf25152041bfdffb2dda3fbba45d671d7b06655f800dd24307c5cce63bf2db53606c1434f61a993538c998160439045e7c2871a2c3f78
7
- data.tar.gz: 66e492d56c02b219f3d9f9400fd182f62c121ba3bd92212363cd0aa9a5cd6d46e4b17a27f0b2a8e54c9569121b25c37f4b3b3f45b2926b6ab1210fdf0364b987
6
+ metadata.gz: a111cd5506be46ee46ca56bce53077e7e3d88b133a470dab14fe45c83c40df8d0364e56008330a78888edcb2201c719406891d496c142a1037d365401d014f16
7
+ data.tar.gz: 7fe8dee8b6d7b18f015711261387e62f368da4cddef7d0bc1fc25546c5ca4936d696b928f4ba18997e92fdb7b0941e0c7f56de49bbcaece9e2ca3df4e5117152
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.1'
15
- gem 'bundler', '>=2.4.4'
15
+ gem 'bundler', '>=2.4.5'
16
16
  gem 'bundler-audit', '0.9.1'
17
17
  gem 'curses', '1.4.4'
18
18
  gem 'eventmachine', '1.2.7'
@@ -26,7 +26,7 @@ gem 'rdoc', '6.5.0'
26
26
  gem 'require_all', '3.0.0'
27
27
  gem 'rest-client', '2.1.0'
28
28
  gem 'rspec', '3.12.0'
29
- gem 'rubocop', '1.43.0'
29
+ gem 'rubocop', '1.44.1'
30
30
  gem 'rubocop-rake', '0.6.0'
31
31
  gem 'rubocop-rspec', '2.18.1'
32
32
  gem 'ruby-prof', '1.4.5'
@@ -83,18 +83,15 @@ module Cryptum
83
83
  # FAST BUY && SLOW BUY values taking
84
84
  # market_trend_reset values into account
85
85
 
86
- # FAST BUY = 10 minutes
87
- # self.time_between_orders = 600
88
- self.time_between_orders = 3_600
86
+ # FAST BUY = 4 hours
87
+ self.time_between_orders = 14_400
89
88
  self.time_between_orders_reset = time_between_orders
90
89
 
91
- # SLOW BUY = 1 hour
92
- self.time_between_orders_max = 14_400
93
- # self.time_between_orders_max = 3_600
90
+ # SLOW BUY = 1 day
91
+ self.time_between_orders_max = 86_400
94
92
 
95
- # 5 seconds
96
- # self.time_between_orders_min = 5
97
- self.time_between_orders_min = 600
93
+ # 1 hour
94
+ self.time_between_orders_min = 3_600
98
95
  # -------------------------------------------------- #
99
96
  end
100
97
  rescue Interrupt
@@ -89,9 +89,9 @@ module Cryptum
89
89
  order if order[:color] == 'yellow'
90
90
  end.last
91
91
  last_purchase_price = 0.0
92
- last_purchase_price = last_order[:price].to_f if last_order.any?
92
+ last_purchase_price = last_order[:price].to_f if last_order
93
93
 
94
- limit_price = last_purchase_price - fiat_smallest_decimal if last_purchase_price.positive? && last_purchase_price < limit_price
94
+ limit_price = last_purchase_price - quote_increment.to_f if last_purchase_price.positive? && last_purchase_price < limit_price
95
95
 
96
96
  price = format(
97
97
  "%0.#{fiat_smallest_decimal}f",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.361'
4
+ VERSION = '0.0.363'
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.361
4
+ version: 0.0.363
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-01-19 00:00:00.000000000 Z
11
+ date: 2023-01-31 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.4
33
+ version: 2.4.5
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.4
40
+ version: 2.4.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler-audit
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 1.43.0
229
+ version: 1.44.1
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 1.43.0
236
+ version: 1.44.1
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rubocop-rake
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -490,7 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
490
490
  - !ruby/object:Gem::Version
491
491
  version: '0'
492
492
  requirements: []
493
- rubygems_version: 3.4.4
493
+ rubygems_version: 3.4.5
494
494
  signing_key:
495
495
  specification_version: 4
496
496
  summary: Coinbase Pro High-Frequency Trading Bot