file_dump_json

This commit is contained in:
kryofly
2018-01-11 15:49:04 +01:00
parent 69f68c428e
commit feb5da0c35
4 changed files with 19 additions and 6 deletions

View File

@@ -14,6 +14,11 @@ from freqtrade import __version__
logger = logging.getLogger(__name__)
def file_dump_json(filename, data):
with open(filename, 'w') as fp:
json.dump(data, fp)
class State(enum.Enum):
RUNNING = 0
STOPPED = 1