cryptum 0.0.290 → 0.0.293
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +14 -16
- data/lib/cryptum/event.rb +1 -1
- data/lib/cryptum/order_book/market_trend.rb +10 -10
- data/lib/cryptum/ui/order_execution.rb +2 -0
- data/lib/cryptum/version.rb +1 -1
- 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: 529fcd623116fbe8003e36deba8754a0e5e50843795680fb6a0b179e61662324
|
4
|
+
data.tar.gz: 55b4072da8ccc199568b33d10f283dfa04dc7eb7ec30aff09a9998a94b989d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235d5c7052cb8b9c5deabed73fc497e198e7e8261adff584b8bc7cf6c055fcd5dd8711a32c82ea0826be2ea26e26f117d3bfc7815dd78b273209b478b70fc94c
|
7
|
+
data.tar.gz: 3d0f6e2db4966dc6508f14e6e988520c859565d2b056e0c50a5fa4fc0f61da76feb469ecc98d86c5e6d0d72b971335a4865f219e3b6bd5f60dfb1b3d35e7bbac
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2022-12-
|
3
|
+
# on 2022-12-08 03:39:16 UTC using RuboCop version 1.39.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -28,11 +28,10 @@ Layout/CommentIndentation:
|
|
28
28
|
- 'lib/cryptum/api.rb'
|
29
29
|
- 'lib/cryptum/ui/order_execution.rb'
|
30
30
|
|
31
|
-
# Offense count:
|
31
|
+
# Offense count: 3
|
32
32
|
# This cop supports safe autocorrection (--autocorrect).
|
33
33
|
Layout/EmptyLineAfterGuardClause:
|
34
34
|
Exclude:
|
35
|
-
- 'lib/cryptum/order_book/market_trend.rb'
|
36
35
|
- 'lib/cryptum/ui/order_execution.rb'
|
37
36
|
|
38
37
|
# Offense count: 1
|
@@ -65,13 +64,12 @@ Layout/IndentationStyle:
|
|
65
64
|
Exclude:
|
66
65
|
- 'lib/cryptum/ui/order_execution.rb'
|
67
66
|
|
68
|
-
# Offense count:
|
67
|
+
# Offense count: 2
|
69
68
|
# This cop supports safe autocorrection (--autocorrect).
|
70
69
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
71
70
|
# SupportedStyles: aligned, indented
|
72
71
|
Layout/MultilineOperationIndentation:
|
73
72
|
Exclude:
|
74
|
-
- 'lib/cryptum/order_book/market_trend.rb'
|
75
73
|
- 'lib/cryptum/ui/order_execution.rb'
|
76
74
|
- 'lib/cryptum/ui/ticker.rb'
|
77
75
|
|
@@ -87,47 +85,47 @@ Layout/TrailingWhitespace:
|
|
87
85
|
- 'lib/cryptum/ui/order_plan.rb'
|
88
86
|
- 'lib/cryptum/ui/order_timer.rb'
|
89
87
|
|
90
|
-
# Offense count:
|
88
|
+
# Offense count: 85
|
91
89
|
Lint/UselessAssignment:
|
92
90
|
Enabled: false
|
93
91
|
|
94
92
|
# Offense count: 47
|
95
93
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
96
94
|
Metrics/AbcSize:
|
97
|
-
Max:
|
95
|
+
Max: 407
|
98
96
|
|
99
97
|
# Offense count: 7
|
100
98
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
101
99
|
# AllowedMethods: refine
|
102
100
|
Metrics/BlockLength:
|
103
|
-
Max:
|
101
|
+
Max: 144
|
104
102
|
|
105
103
|
# Offense count: 4
|
106
104
|
# Configuration parameters: CountBlocks.
|
107
105
|
Metrics/BlockNesting:
|
108
106
|
Max: 4
|
109
107
|
|
110
|
-
# Offense count:
|
108
|
+
# Offense count: 19
|
111
109
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
112
110
|
Metrics/CyclomaticComplexity:
|
113
|
-
Max:
|
111
|
+
Max: 76
|
114
112
|
|
115
113
|
# Offense count: 68
|
116
114
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
117
115
|
Metrics/MethodLength:
|
118
|
-
Max:
|
116
|
+
Max: 390
|
119
117
|
|
120
|
-
# Offense count:
|
118
|
+
# Offense count: 17
|
121
119
|
# Configuration parameters: CountComments, CountAsOne.
|
122
120
|
Metrics/ModuleLength:
|
123
121
|
Max: 538
|
124
122
|
|
125
|
-
# Offense count:
|
123
|
+
# Offense count: 19
|
126
124
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
127
125
|
Metrics/PerceivedComplexity:
|
128
|
-
Max:
|
126
|
+
Max: 79
|
129
127
|
|
130
|
-
# Offense count:
|
128
|
+
# Offense count: 5
|
131
129
|
# This cop supports safe autocorrection (--autocorrect).
|
132
130
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
133
131
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
@@ -162,7 +160,7 @@ Style/Next:
|
|
162
160
|
Exclude:
|
163
161
|
- 'lib/cryptum/api.rb'
|
164
162
|
|
165
|
-
# Offense count:
|
163
|
+
# Offense count: 3
|
166
164
|
# This cop supports safe autocorrection (--autocorrect).
|
167
165
|
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
168
166
|
Style/NumericLiterals:
|
data/lib/cryptum/event.rb
CHANGED
@@ -139,7 +139,7 @@ module Cryptum
|
|
139
139
|
end
|
140
140
|
|
141
141
|
unless event_history.order_execute_details_win_active
|
142
|
-
Cryptum::UI::OrderExecution.refresh(
|
142
|
+
event_history = Cryptum::UI::OrderExecution.refresh(
|
143
143
|
option_choice: option_choice,
|
144
144
|
order_execute_win: terminal_win.order_execute_section,
|
145
145
|
env: env,
|
@@ -98,16 +98,16 @@ module Cryptum
|
|
98
98
|
# Only keep order history meta for those
|
99
99
|
# hashes that exist in the last order history
|
100
100
|
# response
|
101
|
-
order_history_meta.keep_if do |ohm|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
end
|
110
|
-
event_history.order_book[:order_history_meta] = order_history_meta
|
101
|
+
# order_history_meta.keep_if do |ohm|
|
102
|
+
# order_history.find do |oh|
|
103
|
+
# (oh[:id] == ohm[:buy_order_id] || oh[:id] == ohm[:sell_order_id]) && (
|
104
|
+
# ohm[:color].to_sym == :white ||
|
105
|
+
# ohm[:color].to_sym == :green ||
|
106
|
+
# ohm[:color].to_sym == :yellow
|
107
|
+
# )
|
108
|
+
# end
|
109
|
+
# end
|
110
|
+
# event_history.order_book[:order_history_meta] = order_history_meta
|
111
111
|
|
112
112
|
# Refactor TPM to be 0.01 > than fee tier,
|
113
113
|
# particularly as fee tier goes up or down
|
data/lib/cryptum/version.rb
CHANGED