Pre release #1
@ -1,4 +1,3 @@
|
||||
import time
|
||||
import traceback
|
||||
import asyncio
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
import logging
|
||||
import sys
|
||||
|
||||
import options
|
||||
|
||||
|
||||
generalLogPath = "./generalLog.log"
|
||||
tradingLogPath = "./tradingLog.log"
|
||||
@ -29,6 +31,7 @@ generalLogger = setupLogger('general', logging.INFO, generalLogPath, generalForm
|
||||
tradingFormatter = logging.Formatter('%(asctime)s - %(message)s')
|
||||
tradingLogger = setupLogger('trade', logging.NOTSET, tradingLogPath, tradingFormatter)
|
||||
|
||||
# Общий лог ну совсем
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
superGeneralLogger = logging.getLogger('superGeneral')
|
||||
# Максимально подробный общий лог
|
||||
if options.showExtraDebugLogs:
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
superGeneralLogger = logging.getLogger('superGeneral')
|
||||
|
||||
@ -5,8 +5,10 @@ demoTrading = config('DEMOTRADING', default='False').lower() != 'false' # Use d
|
||||
# Please do not combine testnet and demo trading
|
||||
|
||||
leverage = int(config('LEVERAGE', default='1')) # Leverage
|
||||
|
||||
# notification = 1 # Telegram notifications (not currently supported)
|
||||
|
||||
showExtraDebugLogs = config('SHOWEXTRADEBUGLOGS', default='False').lower() != 'false'
|
||||
loopSleepTime = int(config('LOOPSLEEPTIME', default='1')) # Time passing between checks for stopping strategy
|
||||
|
||||
paramsLines = ['highEnd',
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
from decouple import config
|
||||
import re
|
||||
|
||||
|
||||
def checkWhiteList(id):
|
||||
# Checks if id exists in the whitelist. Returnes 1 if exists and 0 if not
|
||||
return id in chatIDs
|
||||
|
||||
|
||||
chatIDsstring = config('WHITELIST', default='')
|
||||
chatIDs = [int(x) for x in re.split(r',\s*', chatIDsstring)]
|
||||
|
||||
Reference in New Issue
Block a user