ccxt - make backtesting work

This commit is contained in:
Matthias Voppichler
2018-03-24 19:45:23 +01:00
parent eb4ac73b78
commit 85af68d807
2 changed files with 6 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ def load_tickerdata_file(
"""
path = make_testdata_path(datadir)
file = os.path.join(path, '{pair}-{ticker_interval}.json'.format(
pair=pair,
pair=pair.replace('/', '_'),
ticker_interval=ticker_interval,
))
gzipfile = file + '.gz'
@@ -126,7 +126,7 @@ def download_backtesting_testdata(datadir: str, pair: str, interval: int = 5) ->
interval
)
filepair = pair.replace("-", "_")
filepair = pair.replace("/", "_")
filename = os.path.join(path, '{pair}-{interval}.json'.format(
pair=filepair,
interval=interval,