just pass stake_amount instead of the whole config
This commit is contained in:
@@ -12,7 +12,7 @@ def test_backtest(default_conf, mocker):
|
||||
exchange._API = Bittrex({'key': '', 'secret': ''})
|
||||
|
||||
data = optimize.load_data(ticker_interval=5, pairs=['BTC_ETH'])
|
||||
results = backtest(default_conf, optimize.preprocess(data), 10, True)
|
||||
results = backtest(default_conf['stake_amount'], optimize.preprocess(data), 10, True)
|
||||
num_results = len(results)
|
||||
assert num_results > 0
|
||||
|
||||
@@ -23,7 +23,7 @@ def test_1min_ticker_interval(default_conf, mocker):
|
||||
|
||||
# Run a backtesting for an exiting 5min ticker_interval
|
||||
data = optimize.load_data(ticker_interval=1, pairs=['BTC_UNITEST'])
|
||||
results = backtest(default_conf, optimize.preprocess(data), 1, True)
|
||||
results = backtest(default_conf['stake_amount'], optimize.preprocess(data), 1, True)
|
||||
assert len(results) > 0
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user