cryptum 0.0.369 → 0.0.370
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -3
- data/cryptum.gemspec +19 -0
- data/lib/cryptum/version.rb +1 -1
- data/spec/lib/cryptum/bot_conf_spec.rb +10 -0
- data/spec/lib/cryptum/event/bot_conf_spec.rb +10 -0
- data/spec/lib/cryptum/event/buy_spec.rb +10 -0
- data/spec/lib/cryptum/event/cancel_spec.rb +10 -0
- data/spec/lib/cryptum/event/exit_spec.rb +10 -0
- data/spec/lib/cryptum/event/gtfo_spec.rb +10 -0
- data/spec/lib/cryptum/event/history_spec.rb +10 -0
- data/spec/lib/cryptum/event/key_press_spec.rb +10 -0
- data/spec/lib/cryptum/event/order_book_spec.rb +10 -0
- data/spec/lib/cryptum/event/pane_spec.rb +10 -0
- data/spec/lib/cryptum/event/parse_spec.rb +10 -0
- data/spec/lib/cryptum/event/scroll_spec.rb +10 -0
- data/spec/lib/cryptum/event/sell_spec.rb +10 -0
- data/spec/lib/cryptum/matrix_spec.rb +10 -0
- data/spec/lib/cryptum/open_ai_spec.rb +10 -0
- data/spec/lib/cryptum/option/choice_spec.rb +10 -0
- data/spec/lib/cryptum/order_book/indicator_spec.rb +10 -0
- data/spec/lib/cryptum/order_book/profit_margin_spec.rb +10 -0
- data/spec/lib/cryptum/portfolio/balance_spec.rb +10 -0
- data/spec/lib/cryptum/portfolio_spec.rb +10 -0
- data/spec/lib/cryptum/ui/key_press_event_spec.rb +10 -0
- data/spec/lib/cryptum/ui/market_trend_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_execute_details_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_execution_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_plan_details_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_plan_spec.rb +10 -0
- data/spec/lib/cryptum/ui/order_timer_spec.rb +10 -0
- data/spec/lib/cryptum/ui/portfolio_spec.rb +10 -0
- data/spec/lib/cryptum/ui/signal_engine_spec.rb +10 -0
- data/spec/lib/cryptum/ui/terminal_window_spec.rb +10 -0
- data/spec/lib/cryptum/version_spec.rb +17 -0
- data/spec/lib/cryptum/web_sock/coinbase_spec.rb +10 -0
- data/spec/lib/cryptum/web_sock/event_machine_spec.rb +10 -0
- metadata +42 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53bdb2d2da6bf7e78c5623af1b88d27bb8c7942e19911b00306f0b6bfef912eb
|
4
|
+
data.tar.gz: 9882b53b7be9185eb84ba21a8a52ac8a8773b098830786556a94ecfe92abbf4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b81e6d2e78d0cc9d9151d7b0186ff13fe6e55ba4b5c29d176fee5818fb13d5a06baa281ef255306669d18c3e320c389667615f66a41965a939a8e57cf96c22
|
7
|
+
data.tar.gz: 1d764d72578d39ab049c462499f1885a26b3aa1f07aa5d02ba06688306b3a3faa65378e6dc26523588820823b17377f8b6bb319ec7b68ee9ed86c2dee94ff71e
|
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.
|
15
|
+
gem 'bundler', '>=2.4.9'
|
16
16
|
gem 'bundler-audit', '0.9.1'
|
17
17
|
gem 'curses', '1.4.4'
|
18
18
|
gem 'eventmachine', '1.2.7'
|
@@ -26,9 +26,9 @@ 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.
|
29
|
+
gem 'rubocop', '1.48.1'
|
30
30
|
gem 'rubocop-rake', '0.6.0'
|
31
|
-
gem 'rubocop-rspec', '2.
|
31
|
+
gem 'rubocop-rspec', '2.19.0'
|
32
32
|
gem 'ruby-prof', '1.6.1'
|
33
33
|
gem 'rvm', '1.11.3.9'
|
34
34
|
gem 'sinatra', '3.0.5'
|
data/cryptum.gemspec
CHANGED
@@ -21,6 +21,25 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.files = `git ls-files -z`.split("\x0")
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
24
|
+
spec_tests = spec.files.grep(%r{^spec/})
|
25
|
+
cryptum_modules = spec.files.grep(%r{^lib/})
|
26
|
+
|
27
|
+
missing_rspec = false
|
28
|
+
cryptum_modules.each do |cryptum_path|
|
29
|
+
spec_test_for_mod = "#{File.dirname(cryptum_path)}/#{File.basename(cryptum_path).split('.').first}_spec.rb"
|
30
|
+
|
31
|
+
next unless spec_tests.grep(/#{spec_test_for_mod}/).empty?
|
32
|
+
|
33
|
+
missing_rspec = true
|
34
|
+
cryptum_mod_dir = File.dirname(cryptum_path)
|
35
|
+
spec_test = "spec/#{cryptum_mod_dir}/#{spec_test_for_mod}"
|
36
|
+
error_msg = "ERROR: RSpec: #{spec_test} missing for Cryptum Module: #{cryptum_path}"
|
37
|
+
# Display error message in red (octal encoded ansi sequence)
|
38
|
+
puts "\001\e[1m\002\001\e[31m\002#{error_msg}\001\e[0m\002"
|
39
|
+
end
|
40
|
+
|
41
|
+
raise if missing_rspec
|
42
|
+
|
24
43
|
spec.require_paths = ['lib']
|
25
44
|
|
26
45
|
dev_dependency_arr = %i[
|
data/lib/cryptum/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::OrderBook::Indicator do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::OrderBook::Indicator
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::OrderBook::ProfitMargin do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::OrderBook::ProfitMargin
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::Portfolio::Balance do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::Portfolio::Balance
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::KeyPressEvent do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::KeyPressEvent
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderExecuteDetails do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderExecuteDetails
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderExecution do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderExecution
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::OrderPlanDetails do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::OrderPlanDetails
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::UI::TerminalWindow do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::UI::TerminalWindow
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::VERSION do
|
6
|
+
it 'is defined' do
|
7
|
+
expect(Cryptum::VERSION).not_to be_nil
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'is a string' do
|
11
|
+
expect(Cryptum::VERSION).to be_a(String)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'matches the expected pattern' do
|
15
|
+
expect(Cryptum::VERSION).to match(/\d+\.\d+\.\d+/)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::WebSock::Coinbase do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::WebSock::Coinbase
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cryptum::WebSock::EventMachine do
|
6
|
+
it 'should display information for existing help method' do
|
7
|
+
help_response = Cryptum::WebSock::EventMachine
|
8
|
+
expect(help_response).to respond_to :help
|
9
|
+
end
|
10
|
+
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.
|
4
|
+
version: 0.0.370
|
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-
|
11
|
+
date: 2023-03-23 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.
|
33
|
+
version: 2.4.9
|
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.
|
40
|
+
version: 2.4.9
|
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.
|
229
|
+
version: 1.48.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.
|
236
|
+
version: 1.48.1
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: rubocop-rake
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - '='
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 2.
|
257
|
+
version: 2.19.0
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - '='
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 2.
|
264
|
+
version: 2.19.0
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: ruby-prof
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,15 +454,48 @@ files:
|
|
454
454
|
- order_books/.gitkeep
|
455
455
|
- reinstall_cryptum_gemset.sh
|
456
456
|
- spec/lib/cryptum/api_spec.rb
|
457
|
+
- spec/lib/cryptum/bot_conf_spec.rb
|
458
|
+
- spec/lib/cryptum/event/bot_conf_spec.rb
|
459
|
+
- spec/lib/cryptum/event/buy_spec.rb
|
460
|
+
- spec/lib/cryptum/event/cancel_spec.rb
|
461
|
+
- spec/lib/cryptum/event/exit_spec.rb
|
462
|
+
- spec/lib/cryptum/event/gtfo_spec.rb
|
463
|
+
- spec/lib/cryptum/event/history_spec.rb
|
464
|
+
- spec/lib/cryptum/event/key_press_spec.rb
|
465
|
+
- spec/lib/cryptum/event/order_book_spec.rb
|
466
|
+
- spec/lib/cryptum/event/pane_spec.rb
|
467
|
+
- spec/lib/cryptum/event/parse_spec.rb
|
468
|
+
- spec/lib/cryptum/event/scroll_spec.rb
|
469
|
+
- spec/lib/cryptum/event/sell_spec.rb
|
457
470
|
- spec/lib/cryptum/event_spec.rb
|
458
471
|
- spec/lib/cryptum/log_spec.rb
|
472
|
+
- spec/lib/cryptum/matrix_spec.rb
|
473
|
+
- spec/lib/cryptum/open_ai_spec.rb
|
474
|
+
- spec/lib/cryptum/option/choice_spec.rb
|
459
475
|
- spec/lib/cryptum/option_spec.rb
|
460
476
|
- spec/lib/cryptum/order_book/generate_spec.rb
|
477
|
+
- spec/lib/cryptum/order_book/indicator_spec.rb
|
461
478
|
- spec/lib/cryptum/order_book/market_trend_spec.rb
|
479
|
+
- spec/lib/cryptum/order_book/profit_margin_spec.rb
|
462
480
|
- spec/lib/cryptum/order_book_spec.rb
|
481
|
+
- spec/lib/cryptum/portfolio/balance_spec.rb
|
482
|
+
- spec/lib/cryptum/portfolio_spec.rb
|
463
483
|
- spec/lib/cryptum/ui/command_spec.rb
|
484
|
+
- spec/lib/cryptum/ui/key_press_event_spec.rb
|
485
|
+
- spec/lib/cryptum/ui/market_trend_spec.rb
|
486
|
+
- spec/lib/cryptum/ui/order_execute_details_spec.rb
|
487
|
+
- spec/lib/cryptum/ui/order_execution_spec.rb
|
488
|
+
- spec/lib/cryptum/ui/order_plan_details_spec.rb
|
489
|
+
- spec/lib/cryptum/ui/order_plan_spec.rb
|
490
|
+
- spec/lib/cryptum/ui/order_timer_spec.rb
|
491
|
+
- spec/lib/cryptum/ui/portfolio_spec.rb
|
492
|
+
- spec/lib/cryptum/ui/signal_engine_spec.rb
|
493
|
+
- spec/lib/cryptum/ui/terminal_window_spec.rb
|
464
494
|
- spec/lib/cryptum/ui/ticker_spec.rb
|
465
495
|
- spec/lib/cryptum/ui_spec.rb
|
496
|
+
- spec/lib/cryptum/version_spec.rb
|
497
|
+
- spec/lib/cryptum/web_sock/coinbase_spec.rb
|
498
|
+
- spec/lib/cryptum/web_sock/event_machine_spec.rb
|
466
499
|
- spec/lib/cryptum/web_sock_spec.rb
|
467
500
|
- spec/lib/cryptum_spec.rb
|
468
501
|
- spec/spec_helper.rb
|
@@ -490,7 +523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
490
523
|
- !ruby/object:Gem::Version
|
491
524
|
version: '0'
|
492
525
|
requirements: []
|
493
|
-
rubygems_version: 3.4.
|
526
|
+
rubygems_version: 3.4.9
|
494
527
|
signing_key:
|
495
528
|
specification_version: 4
|
496
529
|
summary: Coinbase Pro High-Frequency Trading Bot
|