exchange: extract ccxt init to its own function (so that we can init ccxt from the scripts)

This commit is contained in:
Samuel Husso
2018-04-22 10:57:48 +03:00
parent fded8e5117
commit de8db9293c
3 changed files with 47 additions and 17 deletions

View File

@@ -71,6 +71,8 @@ def file_dump_json(filename, data, is_zip=False) -> None:
:param data: JSON Data to save
:return:
"""
print(f'dumping json to "{filename}"')
if is_zip:
if not filename.endswith('.gz'):
filename = filename + '.gz'