cryptum 0.0.367 → 0.0.369

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6798524e1b458d4d99353b126d43a5d64b9aa94e42829c8322f6c740bc5984c
4
- data.tar.gz: 2609c6ec391ec5eb1e77b6c934c4e0a8b598cac9f0d0da3f1a37755085d9d121
3
+ metadata.gz: 9ed959d6a719c0dc5e539ad655322b11f8715446ad1d31de3db1fb3d41d3d29d
4
+ data.tar.gz: 063ca1ad64feb695e18bad93156135822fec52357512e5f0897811ef6a12dc4e
5
5
  SHA512:
6
- metadata.gz: 709f134f6813a74357d37779a51224ed5fc7b2ad2af4626fec4bdadbd186c899aea6a73a4517e077865bae85070e620eb306e12d6967615773d59d58573dc39c
7
- data.tar.gz: 93941d719671c62245157c6487a3031ebfd92da00ccc9047b79955d21b63f048365da674c0ba160876776e6d6f0941008b9741a6ceaf7ef10aa14f432c9f6744
6
+ metadata.gz: d56c5ce5fe4c505c3c83953ae5d527ff1f71f2d2e8e401e25adadfe2fa52cb78e70e61a42d18928bc2d7a122327f1d3a346318e47b8436d2e36bd0a82662ea3f
7
+ data.tar.gz: d1fb38a20d263601dd487f32b0e374f1d679122d39290f2cc1800b662e907824df5218667f14fb7636654587fbeed5d691dcd773a9ec8b5298cbb99218590c44
data/README.md CHANGED
@@ -57,14 +57,54 @@ $ vi ~/cryptum/etc/open_ai.yaml
57
57
 
58
58
 
59
59
  ### **Usage** ###
60
-
61
60
  ```
62
61
  $ rvm use ruby-<VERSION>@cryptum
63
62
  $ cryptum --help
63
+ USAGE: cryptum [opts]
64
+ -s, --symbol=SYMBOL <Required - Crypto Symbol.(e.g. btc-usd, eth-usd, etc.)
65
+ -A, --[no-]autotrade <Optional - Automatically Buy and Sell Crypto>
66
+ -l, --[no-]list-products <Optional - List Supported Crypto Currency Products and Exit>
67
+ -p, --proxy=PROXY <Optional - HTTP Proxy e.g. "http://127.0.0.1:8080">
68
+ -R <Optional - Reset Timers / Market Trend Stats at Session Init (Defaults to false)>
69
+ --[no-]reset-session-countdown
70
+ -r, --session-root=PATH <Optional - Directory with etc && order_books (Defaults to ~/cryptum)>
71
+ -S, --[no-]sandbox <Optional - Use Coinbase Sandbox Environment for Testing Ideas>
72
+ -tSECONDS, <Optional - Seconds Between Market Trend Reset (Default 60 i.e. 1 hour)>
73
+ --time-between-market-trend-reset
74
+
75
+ $ cryptum --symbol btc-usd \
76
+ --autotrade \
77
+ --session-root ~/cryptum \
78
+ --time-between-market-trend-reset 86_400
79
+ ```
80
+
81
+ 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:
82
+ ```
64
83
  $ cryptum --symbol btc-usd \
65
84
  --autotrade \
66
- --session-root ~/cryptum
85
+ --session-root ~/cryptum \
86
+ --time-between-market-trend-reset 14_400
87
+ ```
88
+
89
+ Possible values for market trend reset are:
67
90
  ```
91
+ 604_800 => 1 week
92
+ 86_400 => 1 day
93
+ 14_400 => 4 hours
94
+ 10_800 => 3 hours
95
+ 7_200 => 2 hours
96
+ 3_600 => 1 hour
97
+ 2_700 => 45 minutes
98
+ 1_800 => 30 minutes
99
+ 900 => 15 minutes
100
+ 300 => 5 minutes
101
+ 180 => 3 minutes
102
+ 60 => 1 minute
103
+ ```
104
+
105
+ If you choose a lower value than the default, the target profit margin's (i.e. TPM) will also be reduced (assuming the TPM is still higher than Maker + Taker fees). This may be desireable - although TPM is reduced, trading volume should increase resulting in better Maker & Taker fee tiers (i.e. lower cost / trade).
106
+
107
+ Another option (particularly useful with smaller balances) is bumping the market trend reset to 604800 (i.e. 1 week) which will immediately increase the TPM %'s. The downside to this approach is trading volume is reduced, resulting in higher maker & taker fee tiers (i.e. higher cost / trade).
68
108
 
69
109
  From an error monitoring perspective, they can be monitored via:
70
110
  ```
@@ -63,23 +63,17 @@ module Cryptum
63
63
  # BE EXTREMELY CAREFUL CHANGING THIS VALUE AS IT DICTATES
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
- # default_net_tpm = 1.0
67
- maker_rate = 0.004
68
- taker_rate = 0.006
69
-
70
66
  gross_tpm = bot_conf[:target_profit_margin_percent].to_f
71
67
 
72
- # Refactor TPM to be 1.0 > than fee tier,
73
- # particularly as fee tier goes up or down
74
68
  fees = event_history.order_book[:fees]
69
+ maker_rate = 0.004
75
70
  maker_rate = fees[:maker_fee_rate].to_f unless fees.empty?
76
- # maker_fee = format('%0.2f', maker_rate * 100)
77
71
 
72
+ taker_rate = 0.006
78
73
  taker_rate = fees[:taker_fee_rate].to_f unless fees.empty?
79
- # taker_fee = format('%0.2f', taker_rate * 100)
80
74
 
81
75
  # Absolute Bare Minimum TPM (Promotes Volume & Reduces Fees)
82
- default_net_tpm = maker_rate + taker_rate + 0.001
76
+ default_net_tpm = 1.0 + (maker_rate + taker_rate)
83
77
 
84
78
  # Set default_net_tpm if AI is true in bot_conf.
85
79
  low_24h = event_history.order_book[:low_24h].to_f
@@ -130,7 +124,7 @@ module Cryptum
130
124
 
131
125
  min_gross_tpm = format(
132
126
  '%0.2f',
133
- (maker_rate.to_f + taker_rate.to_f) + default_net_tpm
127
+ default_net_tpm
134
128
  )
135
129
 
136
130
  if min_gross_tpm != gross_tpm.to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.367'
4
+ VERSION = '0.0.369'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.367
4
+ version: 0.0.369
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.