cryptum 0.0.258 → 0.0.259
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/.rubocop_todo.yml +9 -1
- data/lib/cryptum/event/history.rb +1 -0
- data/lib/cryptum/option.rb +10 -4
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab14ca560e814d115f113801ad78732ba8d10acce087f6eaadc143233424ffa4
|
|
4
|
+
data.tar.gz: 47bc5482fba211e04bf7ef299fafd323cf5388908d5786779cda36885748d198
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb7dd04b5337366f545a283d6b1dc184c1680279aa88f2d423ad4544374f018c2ec5cef61a15f1770bb39f69d0092898d8af198329b80c6b005321ae3c249df0
|
|
7
|
+
data.tar.gz: 949378bda3b6959556f3f888795780e46fe5e1e857814254273f4658ad5a4b81a81c0b86aa55b8e325e026a5ed51e67082cdc5740d2df12e23c25afeb63d0ff6
|
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-01 23:
|
|
3
|
+
# on 2022-12-01 23:59:06 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
|
|
@@ -157,6 +157,14 @@ Metrics/ModuleLength:
|
|
|
157
157
|
Metrics/PerceivedComplexity:
|
|
158
158
|
Max: 75
|
|
159
159
|
|
|
160
|
+
# Offense count: 1
|
|
161
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
162
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
163
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
164
|
+
Style/ConditionalAssignment:
|
|
165
|
+
Exclude:
|
|
166
|
+
- 'lib/cryptum/option.rb'
|
|
167
|
+
|
|
160
168
|
# Offense count: 1
|
|
161
169
|
# Configuration parameters: AllowedConstants.
|
|
162
170
|
Style/Documentation:
|
|
@@ -57,6 +57,7 @@ module Cryptum
|
|
|
57
57
|
self.order_execute_max_rows_to_display = 6
|
|
58
58
|
self.order_execute_row_to_select = order_execute_index_offset
|
|
59
59
|
|
|
60
|
+
# TODO: Implement market_trend_reset / 144
|
|
60
61
|
# Default = 10 minutes
|
|
61
62
|
self.time_between_orders = 600
|
|
62
63
|
self.time_between_orders_reset = time_between_orders
|
data/lib/cryptum/option.rb
CHANGED
|
@@ -95,10 +95,16 @@ module Cryptum
|
|
|
95
95
|
reason = :market_trend_reset
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
case option_choice.market_trend_reset
|
|
99
|
+
when 86_400
|
|
100
|
+
option_choice.market_trend_reset_label = 'D'
|
|
101
|
+
when 3_600
|
|
102
|
+
option_choice.market_trend_reset_label = '1h'
|
|
103
|
+
when 60
|
|
104
|
+
option_choice.market_trend_reset_label = '1m'
|
|
105
|
+
else
|
|
106
|
+
option_choice.market_trend_reset_label = option_choice.market_trend_reset
|
|
107
|
+
end
|
|
102
108
|
|
|
103
109
|
if usage
|
|
104
110
|
case reason
|
data/lib/cryptum/version.rb
CHANGED
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.259
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-12-
|
|
11
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|