cryptum 0.0.374 → 0.0.376
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/cryptum/option.rb +3 -3
- 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: 043c3d94b013ab1e01ccf5364df8c0869b0bf8c90cafc7ca1d5f07c25319b769
|
4
|
+
data.tar.gz: 25f1be8fd5c75b945029a73d4da3fcba37fe42bb986d3771690afd80f527ae68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43424ab77e95a32e2e2498ff6820d10aa33f75ba53ea0249336331c4b81bb05d8a6dbb8d3ab528f1bc5f112453af37169d0b14cff397966cf1bb57ddec0f0d57
|
7
|
+
data.tar.gz: e103ba0857b45d83e6b59f6aa40f5085996eba804f6fa9ed962958745612bf384a3b3f5b183ba3f7dd512a953d27d798bc423048abcd848cec9674f66237e028
|
data/README.md
CHANGED
@@ -69,13 +69,16 @@ USAGE: cryptum [opts]
|
|
69
69
|
--[no-]reset-session-countdown
|
70
70
|
-r, --session-root=PATH <Optional - Directory with etc && order_books (Defaults to ~/cryptum)>
|
71
71
|
-S, --[no-]sandbox <Optional - Use Coinbase Sandbox Environment for Testing Ideas>
|
72
|
-
-tSECONDS, <Optional - Seconds Between Market Trend Reset (Default
|
72
|
+
-tSECONDS, <Optional - Seconds Between Market Trend Reset (Default 86_400 i.e. 1 day)>
|
73
73
|
--time-between-market-trend-reset
|
74
|
+
```
|
74
75
|
|
76
|
+
Example usage to trade on weekly instead of default daily:
|
77
|
+
```
|
75
78
|
$ cryptum --symbol btc-usd \
|
76
79
|
--autotrade \
|
77
80
|
--session-root ~/cryptum \
|
78
|
-
--time-between-market-trend-reset
|
81
|
+
--time-between-market-trend-reset 604_800
|
79
82
|
```
|
80
83
|
|
81
84
|
By default, cryptum resets the market trend (i.e. number of buys vs number of sells) every day (i.e. 86400 seconds). As Maker & Taker fees drop in value, it may be useful to change the market trend reset value to something lower:
|
data/lib/cryptum/option.rb
CHANGED
@@ -43,8 +43,8 @@ module Cryptum
|
|
43
43
|
|
44
44
|
options.on(
|
45
45
|
'-R',
|
46
|
-
'--[no-]reset-
|
47
|
-
'<Optional - Reset
|
46
|
+
'--[no-]reset-trend-countdown',
|
47
|
+
'<Optional - Reset Market Trend Countdown at Session Init (Defaults to false)>'
|
48
48
|
) { |t| option_choice.reset_session_countdown = t }
|
49
49
|
|
50
50
|
options.on(
|
@@ -62,7 +62,7 @@ module Cryptum
|
|
62
62
|
options.on(
|
63
63
|
'-tSECONDS',
|
64
64
|
'--time-between-market-trend-reset=SECONDS',
|
65
|
-
'<Optional - Seconds Between Market Trend Reset (Default
|
65
|
+
'<Optional - Seconds Between Market Trend Reset (Default 86_400 i.e. 1 day)>'
|
66
66
|
) { |t| option_choice.market_trend_reset = t.to_i }
|
67
67
|
end.parse!
|
68
68
|
|
data/lib/cryptum/version.rb
CHANGED