cryptum 0.0.365 → 0.0.366
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/bot_conf.rb +3 -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: 9c1c4d84e74613172f9249878ab0c68174f9039f1fd40326153df675215a31c6
|
4
|
+
data.tar.gz: 84e6137384ba4b75bd202dffdf5784ace667d7fbcf8c15aa9e1437fc426ec0dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 489da8f4bdc5c00cc79c71ec60ce018855086ee713e4ed2e4944514b5e6c29fb3532daf75db386fa2ae61bb0419ce3c083ef092ed078b9abd756613c49fcefe9
|
7
|
+
data.tar.gz: 13a254cc99126868c17edd55eecd9f764438446ab3b2d744703d07bf8af327f250c5a0b9aab76e79a6df2fec394808cb9a355781ad1ac386e57b4d911cbdcc62
|
data/lib/cryptum/bot_conf.rb
CHANGED
@@ -64,6 +64,7 @@ module Cryptum
|
|
64
64
|
# THE TARGET PRICE AND SUBSEQUENT TIME IT TAKES FOR AN OPEN
|
65
65
|
# SELL ORDER TO BE TRIGGERED!!! SHOULD NEVER BE > 1
|
66
66
|
default_net_tpm = 1.0
|
67
|
+
conservative_tpm_hedge = 0.75
|
67
68
|
maker_rate = 0.4
|
68
69
|
taker_rate = 0.6
|
69
70
|
|
@@ -121,12 +122,12 @@ module Cryptum
|
|
121
122
|
ai_net_tpm = (((1 - (low_24h / high_24h)) * 100) / 24) * 0.017
|
122
123
|
end
|
123
124
|
|
125
|
+
ai_net_tpm *= conservative_tpm_hedge
|
124
126
|
default_net_tpm = ai_net_tpm if ai_net_tpm > default_net_tpm
|
125
|
-
conservative_tpm_hedge = 0.75
|
126
127
|
|
127
128
|
min_gross_tpm = format(
|
128
129
|
'%0.2f',
|
129
|
-
(maker_rate.to_f + taker_rate.to_f) +
|
130
|
+
(maker_rate.to_f + taker_rate.to_f) + default_net_tpm
|
130
131
|
)
|
131
132
|
|
132
133
|
if min_gross_tpm != gross_tpm.to_s
|
data/lib/cryptum/version.rb
CHANGED