diff --git a/altrank.py b/altrank.py index 53e3f52..57009c5 100755 --- a/altrank.py +++ b/altrank.py @@ -134,35 +134,35 @@ def load_config(): if program == "watchlist": cfg["settings"] = { - "timeinterval": 3600, "debug": False, - "botids": [12345, 67890], - "numberofpairs": 10, + "usdt_botid": 12345, + "btc_botid": 67890, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "lc-apikey": "Your LunarCrush API Key", + "tgram-phone-number": "Your Telegram Phone number", + "tgram-channel": "Telegram Channel to watch", + "tgram-api-id": "Your Telegram API ID", + "tgram-api-hash": "Your Telegram API Hash", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } else: cfg["settings"] = { + "timeinterval": 3600, "debug": False, - "usdt_botid": 12345, - "btc_botid": 67890, + "botids": [12345, 67890], + "numberofpairs": 10, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "tgram-phone-number": "Your Telegram Phone number", - "tgram-channel": "Telegram Channel to watch", - "tgram-api-id": "Your Telegram API ID", - "tgram-api-hash": "Your Telegram API Hash", + "lc-apikey": "Your LunarCrush API Key", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } - with open("{program}.ini", "w") as cfgfile: - cfgfile.write(f"{program}.ini") + with open(f"{program}.ini", "w") as cfgfile: + cfg.write(cfgfile) return None diff --git a/galaxyscore.py b/galaxyscore.py index 53e3f52..57009c5 100755 --- a/galaxyscore.py +++ b/galaxyscore.py @@ -134,35 +134,35 @@ def load_config(): if program == "watchlist": cfg["settings"] = { - "timeinterval": 3600, "debug": False, - "botids": [12345, 67890], - "numberofpairs": 10, + "usdt_botid": 12345, + "btc_botid": 67890, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "lc-apikey": "Your LunarCrush API Key", + "tgram-phone-number": "Your Telegram Phone number", + "tgram-channel": "Telegram Channel to watch", + "tgram-api-id": "Your Telegram API ID", + "tgram-api-hash": "Your Telegram API Hash", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } else: cfg["settings"] = { + "timeinterval": 3600, "debug": False, - "usdt_botid": 12345, - "btc_botid": 67890, + "botids": [12345, 67890], + "numberofpairs": 10, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "tgram-phone-number": "Your Telegram Phone number", - "tgram-channel": "Telegram Channel to watch", - "tgram-api-id": "Your Telegram API ID", - "tgram-api-hash": "Your Telegram API Hash", + "lc-apikey": "Your LunarCrush API Key", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } - with open("{program}.ini", "w") as cfgfile: - cfgfile.write(f"{program}.ini") + with open(f"{program}.ini", "w") as cfgfile: + cfg.write(cfgfile) return None diff --git a/watchlist.py b/watchlist.py index 53e3f52..57009c5 100755 --- a/watchlist.py +++ b/watchlist.py @@ -134,35 +134,35 @@ def load_config(): if program == "watchlist": cfg["settings"] = { - "timeinterval": 3600, "debug": False, - "botids": [12345, 67890], - "numberofpairs": 10, + "usdt_botid": 12345, + "btc_botid": 67890, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "lc-apikey": "Your LunarCrush API Key", + "tgram-phone-number": "Your Telegram Phone number", + "tgram-channel": "Telegram Channel to watch", + "tgram-api-id": "Your Telegram API ID", + "tgram-api-hash": "Your Telegram API Hash", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } else: cfg["settings"] = { + "timeinterval": 3600, "debug": False, - "usdt_botid": 12345, - "btc_botid": 67890, + "botids": [12345, 67890], + "numberofpairs": 10, "accountmode": "paper", "3c-apikey": "Your 3Commas API Key", "3c-apisecret": "Your 3Commas API Secret", - "tgram-phone-number": "Your Telegram Phone number", - "tgram-channel": "Telegram Channel to watch", - "tgram-api-id": "Your Telegram API ID", - "tgram-api-hash": "Your Telegram API Hash", + "lc-apikey": "Your LunarCrush API Key", "notifications": False, "notify-urls": ["notify-url1", "notify-url2"], } - with open("{program}.ini", "w") as cfgfile: - cfgfile.write(f"{program}.ini") + with open(f"{program}.ini", "w") as cfgfile: + cfg.write(cfgfile) return None