cryptum 0.0.306 → 0.0.308
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/option.rb +20 -2
- 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: f8aa7618c541ca39cbc15ca5ba1cec34b5c8b93428cf107b3799fd4bf3fa8013
|
4
|
+
data.tar.gz: 5aa0428513584f228f59346a706b7b38f56a3d46c0b02aa01f616de72b471a09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d529c47732e456446ce6c072c42614f4db05115c3192f51d89f24f01f9fbe4e0967a41447d9cc54d7452bc84745dce58208dc2af2a90807acc18c35e8f2c0ccc
|
7
|
+
data.tar.gz: 2042b992d7ac3a8dbd53ae464b0f0d61eaff7f4ddb845f5e6d8afae94d6e7a976f0875868523cf765f52c536ec2e45bdc7a88ce488f79cd1b5db0c223b8db25e
|
data/lib/cryptum/option.rb
CHANGED
@@ -91,16 +91,34 @@ module Cryptum
|
|
91
91
|
|
92
92
|
option_choice.market_trend_reset = 60 if option_choice.market_trend_reset.to_i.zero?
|
93
93
|
unless option_choice.market_trend_reset.to_i >= 60 &&
|
94
|
-
option_choice.market_trend_reset <=
|
94
|
+
option_choice.market_trend_reset <= 604_800
|
95
95
|
usage = true
|
96
96
|
reason = :market_trend_reset
|
97
97
|
end
|
98
98
|
|
99
99
|
case option_choice.market_trend_reset
|
100
|
+
when 604_800
|
101
|
+
option_choice.market_trend_reset_label = '1W'
|
100
102
|
when 86_400
|
101
|
-
option_choice.market_trend_reset_label = '
|
103
|
+
option_choice.market_trend_reset_label = '1D'
|
104
|
+
when 14_400
|
105
|
+
option_choice.market_trend_reset_label = '4h'
|
106
|
+
when 10_800
|
107
|
+
option_choice.market_trend_reset_label = '3h'
|
108
|
+
when 7_200
|
109
|
+
option_choice.market_trend_reset_label = '2h'
|
102
110
|
when 3_600
|
103
111
|
option_choice.market_trend_reset_label = '1h'
|
112
|
+
when 2_700
|
113
|
+
option_choice.market_trend_reset_label = '45m'
|
114
|
+
when 1_800
|
115
|
+
option_choice.market_trend_reset_label = '30m'
|
116
|
+
when 900
|
117
|
+
option_choice.market_trend_reset_label = '15m'
|
118
|
+
when 300
|
119
|
+
option_choice.market_trend_reset_label = '5m'
|
120
|
+
when 180
|
121
|
+
option_choice.market_trend_reset_label = '3m'
|
104
122
|
when 60
|
105
123
|
option_choice.market_trend_reset_label = '1m'
|
106
124
|
else
|
data/lib/cryptum/version.rb
CHANGED