cryptum 0.0.328 → 0.0.330
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/.ruby-version +1 -1
- data/lib/cryptum/event.rb +25 -12
- data/lib/cryptum/option.rb +2 -1
- data/lib/cryptum/order_book.rb +9 -4
- data/lib/cryptum/portfolio.rb +2 -1
- data/lib/cryptum/ui.rb +25 -12
- data/lib/cryptum/version.rb +1 -1
- data/lib/cryptum/web_sock.rb +5 -2
- data/lib/cryptum.rb +24 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3a2741d859d2027bad2166baa33bf51cf3110e1926378dcd1a3280a95fd4a97
|
4
|
+
data.tar.gz: e611c452d7016a663b098f24ebfc66d163649cf6c8968362aa71b39a0700486d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 116600bd6e3e8ed4f4f6da284cc1e29d8b55a891d64aaa47a7e9fed1e32343ae6aa2b99f2badee7e32b06e6117ee5b8201312ddaaeaf300f97f88042cfdfeef0
|
7
|
+
data.tar.gz: 93ae969032e900b3acfad8964f11c5dde7694e83ae692fc699822e844b3101eada07386f0dd8453ee7580ccd84de3d9fdb34d2a7749d41e802a65406578373f6
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.3
|
data/lib/cryptum/event.rb
CHANGED
@@ -5,18 +5,31 @@ require 'logger'
|
|
5
5
|
module Cryptum
|
6
6
|
# This plugin is used to parse Coinbase Pro Web Socket Events in the HTTP Response
|
7
7
|
module Event
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
8
|
+
require 'cryptum/event/bot_conf'
|
9
|
+
require 'cryptum/event/buy'
|
10
|
+
require 'cryptum/event/cancel'
|
11
|
+
require 'cryptum/event/exit'
|
12
|
+
require 'cryptum/event/gtfo'
|
13
|
+
require 'cryptum/event/history'
|
14
|
+
require 'cryptum/event/key_press'
|
15
|
+
require 'cryptum/event/order_book'
|
16
|
+
require 'cryptum/event/pane'
|
17
|
+
require 'cryptum/event/parse'
|
18
|
+
require 'cryptum/event/scroll'
|
19
|
+
require 'cryptum/event/sell'
|
20
|
+
|
21
|
+
# autoload :BotConf, 'cryptum/event/bot_conf'
|
22
|
+
# autoload :Buy, 'cryptum/event/buy'
|
23
|
+
# autoload :Cancel, 'cryptum/event/cancel'
|
24
|
+
# autoload :Exit, 'cryptum/event/exit'
|
25
|
+
# autoload :GTFO, 'cryptum/event/gtfo'
|
26
|
+
# autoload :History, 'cryptum/event/history'
|
27
|
+
# autoload :KeyPress, 'cryptum/event/key_press'
|
28
|
+
# autoload :OrderBook, 'cryptum/event/order_book'
|
29
|
+
# autoload :Pane, 'cryptum/event/pane'
|
30
|
+
# autoload :Parse, 'cryptum/event/parse'
|
31
|
+
# autoload :Scroll, 'cryptum/event/scroll'
|
32
|
+
# autoload :Sell, 'cryptum/event/sell'
|
20
33
|
|
21
34
|
# Display Usage for this Module
|
22
35
|
|
data/lib/cryptum/option.rb
CHANGED
@@ -7,7 +7,8 @@ module Cryptum
|
|
7
7
|
# Cryptum::UI Module used for Presenting the
|
8
8
|
# Cryptum Curses Interface
|
9
9
|
module Option
|
10
|
-
|
10
|
+
require 'cryptum/option/choice'
|
11
|
+
# autoload :Choice, 'cryptum/option/choice'
|
11
12
|
|
12
13
|
# Options for cryptum Driver
|
13
14
|
public_class_method def self.parser(opts = {})
|
data/lib/cryptum/order_book.rb
CHANGED
@@ -6,10 +6,15 @@ require 'logger'
|
|
6
6
|
module Cryptum
|
7
7
|
# This module is used to define the Order Book Data Structure
|
8
8
|
module OrderBook
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
require 'cryptum/order_book/generate'
|
10
|
+
require 'cryptum/order_book/indicator'
|
11
|
+
require 'cryptum/order_book/market_trend'
|
12
|
+
require 'cryptum/order_book/profit_margin'
|
13
|
+
|
14
|
+
# autoload :Generate, 'cryptum/order_book/generate'
|
15
|
+
# autoload :Indicator, 'cryptum/order_book/indicator'
|
16
|
+
# autoload :MarketTrend, 'cryptum/order_book/market_trend'
|
17
|
+
# autoload :ProfitMargin, 'cryptum/order_book/profit_margin'
|
13
18
|
|
14
19
|
# Display Usage for this Module
|
15
20
|
public_class_method def self.help
|
data/lib/cryptum/portfolio.rb
CHANGED
@@ -5,7 +5,8 @@ require 'logger'
|
|
5
5
|
module Cryptum
|
6
6
|
# This plugin is used to instantiate a Cryptum logger with a custom message format
|
7
7
|
module Portfolio
|
8
|
-
|
8
|
+
require 'cryptum/portfolio/balance'
|
9
|
+
# autoload :Balance, 'cryptum/portfolio/balance'
|
9
10
|
|
10
11
|
# Display Usage for this Module
|
11
12
|
public_class_method def self.help
|
data/lib/cryptum/ui.rb
CHANGED
@@ -7,18 +7,31 @@ module Cryptum
|
|
7
7
|
# Cryptum::UI Module used for Presenting the
|
8
8
|
# Cryptum Curses Interface
|
9
9
|
module UI
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
require 'cryptum/ui/key_press_event'
|
11
|
+
require 'cryptum/ui/terminal_window'
|
12
|
+
require 'cryptum/ui/ticker'
|
13
|
+
require 'cryptum/ui/portfolio'
|
14
|
+
require 'cryptum/ui/order_plan'
|
15
|
+
require 'cryptum/ui/order_plan_details'
|
16
|
+
require 'cryptum/ui/order_timer'
|
17
|
+
require 'cryptum/ui/market_trend'
|
18
|
+
require 'cryptum/ui/signal_engine'
|
19
|
+
require 'cryptum/ui/order_execution'
|
20
|
+
require 'cryptum/ui/order_execute_details'
|
21
|
+
require 'cryptum/ui/command'
|
22
|
+
|
23
|
+
# autoload :KeyPressEvent, 'cryptum/ui/key_press_event'
|
24
|
+
# autoload :TerminalWindow, 'cryptum/ui/terminal_window'
|
25
|
+
# autoload :Ticker, 'cryptum/ui/ticker'
|
26
|
+
# autoload :Portfolio, 'cryptum/ui/portfolio'
|
27
|
+
# autoload :OrderPlan, 'cryptum/ui/order_plan'
|
28
|
+
# autoload :OrderPlanDetails, 'cryptum/ui/order_plan_details'
|
29
|
+
# autoload :OrderTimer, 'cryptum/ui/order_timer'
|
30
|
+
# autoload :MarketTrend, 'cryptum/ui/market_trend'
|
31
|
+
# autoload :SignalEngine, 'cryptum/ui/signal_engine'
|
32
|
+
# autoload :OrderExecution, 'cryptum/ui/order_execution'
|
33
|
+
# autoload :OrderExecuteDetails, 'cryptum/ui/order_execute_details'
|
34
|
+
# autoload :Command, 'cryptum/ui/command'
|
22
35
|
|
23
36
|
# Initialize the UI
|
24
37
|
public_class_method def self.init
|
data/lib/cryptum/version.rb
CHANGED
data/lib/cryptum/web_sock.rb
CHANGED
@@ -4,8 +4,11 @@ module Cryptum
|
|
4
4
|
# This plugin is used to Establish a Web
|
5
5
|
# Socket Connection with Coinbase
|
6
6
|
module WebSock
|
7
|
-
|
8
|
-
|
7
|
+
require 'cryptum/web_sock/coinbase'
|
8
|
+
require 'cryptum/web_sock/event_machine'
|
9
|
+
|
10
|
+
# autoload :Coinbase, 'cryptum/web_sock/coinbase'
|
11
|
+
# autoload :EventMachine, 'cryptum/web_sock/event_machine'
|
9
12
|
|
10
13
|
# Display Usage for this Module
|
11
14
|
|
data/lib/cryptum.rb
CHANGED
@@ -1,29 +1,39 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'cryptum/version'
|
4
3
|
require 'rbtrace'
|
5
4
|
require 'yaml'
|
6
5
|
require 'json'
|
7
6
|
require 'fileutils'
|
8
7
|
require 'tty-spinner'
|
9
|
-
|
10
8
|
# Root-Level Namespace for cryptum
|
11
9
|
module Cryptum
|
12
10
|
$stdout.sync = true
|
13
11
|
$stdout.flush
|
14
12
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
13
|
+
require 'cryptum/api'
|
14
|
+
require 'cryptum/bot_conf'
|
15
|
+
require 'cryptum/event'
|
16
|
+
require 'cryptum/log'
|
17
|
+
require 'cryptum/matrix'
|
18
|
+
require 'cryptum/option'
|
19
|
+
require 'cryptum/order_book'
|
20
|
+
require 'cryptum/portfolio'
|
21
|
+
require 'cryptum/ui'
|
22
|
+
require 'cryptum/version'
|
23
|
+
require 'cryptum/web_sock'
|
24
|
+
|
25
|
+
# autoload :API, 'cryptum/api'
|
26
|
+
# autoload :BotConf, 'cryptum/bot_conf'
|
27
|
+
# autoload :Event, 'cryptum/event'
|
28
|
+
# autoload :Indicator, 'cryptum/indicator'
|
29
|
+
# autoload :Log, 'cryptum/log'
|
30
|
+
# autoload :Matrix, 'cryptum/matrix'
|
31
|
+
# autoload :Option, 'cryptum/option'
|
32
|
+
# autoload :OrderBook, 'cryptum/order_book'
|
33
|
+
# autoload :Portfolio, 'cryptum/portfolio'
|
34
|
+
# autoload :ProbabilityEngine, 'cryptum/probability_engine'
|
35
|
+
# autoload :UI, 'cryptum/ui'
|
36
|
+
# autoload :WebSock, 'cryptum/web_sock'
|
27
37
|
|
28
38
|
public_class_method def self.bin
|
29
39
|
File.join root, 'bin'
|