-
Notifications
You must be signed in to change notification settings - Fork 67
Compound
Type = compounder
It will compound profits made by a bot to the BO and SO of the same bot. The compound profits can also be used to increase the number of deals.
Every interval the bots specfied in the config are read, their deals are checked for profits. If profit has been made, the value will be added to the BO and SO values of the bot. Deals are marked as processed and original BO/SO ratio of the bot is stored to be used for next iterations.
When compoundmode 'deals' is chosen, the profit will be added to the BO and SO values as above. Until the profit exceeds the total used per deal (total of the origional BO and SO's), the max active deals is increased and the BO and SO values are reset to their origional values.
Then the bot helper will sleep for the set interval time, after which it will repeat these steps.
This is the layout of the config file used by the compound.py
bot helper:
-
timezone - timezone. (default is 'Europe/Amsterdam')
-
timeinterval - update timeinterval in Seconds. (default is 3600)
-
debug - set to true to enable debug logging to file. (default is False)
-
logrotate - number of days to keep logs. (default = 7)
-
default-profittocompound - ratio of profit to compound (1.0 = 100%, 0.85 = 85% etc).
-
3c-apikey - your 3Commas API key value.
-
3c-apisecret - your 3Commas API key secret value.
-
3c-apikey-path - path to your own generated RSA private key, or empty.
-
notifications - set to true to enable notifications. (default = False)
-
notify-urls - one or a list of apprise notify urls, each in " " seperated with commas. See Apprise website for more information.
-
[bot_id]
-
compoundmode - how would you like compound? 'boso' to increase BO and SO values of the bot, 'deals' to increase max active deals (default is 'boso'), 'safetyorders' to increase the max safety orders.
-
profittocompound - ratio of profit to compound (1.0 = 100%, 0.85 = 85% etc).
-
usermaxactivedeals - the maximum number of active deals the compoundscript can increment to. (default is 5)
-
usermaxsafetyorders - the maximum number of safety orders the compoundscript can increment to. (default is 5)
-
comment - name of the bot, used for loggin.
Example: (keys are bogus)
[settings]
timezone = Europe/Amsterdam
timeinterval = 3600
debug = False
logrotate = 14
botids = [ 123456 ]
profittocompound = 1.0
3c-apikey = 4mzhnpio6la4h1158ylt2
3c-apisecret = 4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt4mzhnpio6la4h1158ylt
3c-apikey-path =
notifications = True
notify-urls = [ "tgram://9995888120:BoJPor6opeHyxx5VVZPX-BoJPor6opeHyxx5VVZPX/" ]
[bot_12345]
compoundmode = boso
profittocompound = 0.9
usermaxactivedeals = 10
usermaxsafetyorders = 5
comment = Example Bot