Merge pull request #7 from tef-github/bug1

Bug fix
This commit is contained in:
tef-github 2022-01-23 11:21:01 -05:00 committed by GitHub
commit 7a3977943c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

1
SOL_USDT-5m.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -11,9 +11,9 @@ def clean_json():
list = [] list = []
data = json.load(file) data = json.load(file)
for datas in data: for datas in data:
datas[0] = datas[0]/1000 unix = datas[0]/1000
datas[0] = int(datas[0]) unix = int(unix)
date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(datas[0]))) date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(int(unix)))
date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S") date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S")
year = date.year year = date.year
month = date.month month = date.month

View File

@ -164,6 +164,7 @@ class Strategy002(IStrategy):
:return bool: When True is returned, then the buy-order is placed on the exchange. :return bool: When True is returned, then the buy-order is placed on the exchange.
False aborts the process False aborts the process
""" """
print("............................................................................"+str(current_time))
mode = "test" mode = "test"
coin = pair.split("/")[0] coin = pair.split("/")[0]
brain = "Freq_" + self.__class__.__name__ brain = "Freq_" + self.__class__.__name__