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

@@ -1,11 +1,11 @@
#!/usr/bin/env python3
"""This script generate json data from bittrex"""
import json
from os import path
from freqtrade import exchange
from freqtrade.exchange import Bittrex
from freqtrade import misc
PAIRS = [
'BTC_BCC', 'BTC_ETH', 'BTC_MER', 'BTC_POWR', 'BTC_ETC',
@@ -25,5 +25,4 @@ for pair in PAIRS:
pair,
TICKER_INTERVAL,
))
with open(filename, 'w') as fp:
json.dump(data, fp)
misc.file_dump_json(filename, data)