cryptum 0.0.375 → 0.0.377
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -7
- 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: 1cecde8ef0c9a40d61c9d94636f63d3df09939d1b5baf9e8bbd59835813335d3
|
4
|
+
data.tar.gz: e7c3d2069f51de36184d6d0ecdbe5d02d3aa27d3e0f5c2b798b91423780c261f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c843bd5b558ce628c6bedf77b7f3126eddd44f92aae80318c4844847737c93797b4cdb0d0315cfe6608dc119648057bb32743fef9a1389368cbbe601a6a23c
|
7
|
+
data.tar.gz: 1d06c529c4dd3e2ad3583e3c247270392f2d8d9ecb704bb0dc7006ae7ef9b32d6d29c18bbcf99e56cd5b922d9c8a77a145600ca200cd0d114ea8cfdcc6a4d73f
|
data/README.md
CHANGED
@@ -60,17 +60,16 @@ $ vi ~/cryptum/etc/open_ai.yaml
|
|
60
60
|
```
|
61
61
|
$ rvm use ruby-<VERSION>@cryptum
|
62
62
|
$ cryptum --help
|
63
|
+
|
63
64
|
USAGE: cryptum [opts]
|
64
65
|
-s, --symbol=SYMBOL <Required - Crypto Symbol.(e.g. btc-usd, eth-usd, etc.)
|
65
66
|
-A, --[no-]autotrade <Optional - Automatically Buy and Sell Crypto>
|
66
67
|
-l, --[no-]list-products <Optional - List Supported Crypto Currency Products and Exit>
|
67
68
|
-p, --proxy=PROXY <Optional - HTTP Proxy e.g. "http://127.0.0.1:8080">
|
68
|
-
-R
|
69
|
-
--[no-]reset-session-countdown
|
69
|
+
-R, --[no-]reset-trend-countdown <Optional - Reset Market Trend Countdown at Session Init (Defaults to false)>
|
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
|
-
-
|
73
|
-
--time-between-market-trend-reset
|
72
|
+
-t, --trend-reset-time=SECONDS <Optional - Seconds Between Market Trend Reset (Default 86_400 i.e. 1 day)>
|
74
73
|
```
|
75
74
|
|
76
75
|
Example usage to trade on weekly instead of default daily:
|
@@ -78,15 +77,15 @@ Example usage to trade on weekly instead of default daily:
|
|
78
77
|
$ cryptum --symbol btc-usd \
|
79
78
|
--autotrade \
|
80
79
|
--session-root ~/cryptum \
|
81
|
-
--
|
80
|
+
--trend-reset-time 604_800
|
82
81
|
```
|
83
82
|
|
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:
|
83
|
+
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 (e.g. 4 hours):
|
85
84
|
```
|
86
85
|
$ cryptum --symbol btc-usd \
|
87
86
|
--autotrade \
|
88
87
|
--session-root ~/cryptum \
|
89
|
-
--
|
88
|
+
--trend-reset-time 14_400
|
90
89
|
```
|
91
90
|
|
92
91
|
Possible values for market trend reset are:
|
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(
|
@@ -61,7 +61,7 @@ module Cryptum
|
|
61
61
|
|
62
62
|
options.on(
|
63
63
|
'-tSECONDS',
|
64
|
-
'--
|
64
|
+
'--trend-reset-time=SECONDS',
|
65
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!
|
data/lib/cryptum/version.rb
CHANGED