Fix another PEP8 thing
This commit is contained in:
parent
5d2dbeb54c
commit
5bc80d1e78
@ -118,11 +118,7 @@ def backtest(args) -> DataFrame:
|
|||||||
trades = []
|
trades = []
|
||||||
trade_count_lock: dict = {}
|
trade_count_lock: dict = {}
|
||||||
|
|
||||||
try:
|
exchange_class = exchange.Exchanges[exchange_name.upper()].value
|
||||||
exchange_class = exchange.Exchanges[exchange_name.upper()].value
|
|
||||||
except KeyError:
|
|
||||||
raise OperationalException('Exchange {} is not supported'.format(
|
|
||||||
exchange_name))
|
|
||||||
|
|
||||||
exchange._API = exchange_class({'key': '', 'secret': ''})
|
exchange._API = exchange_class({'key': '', 'secret': ''})
|
||||||
for pair, pair_data in processed.items():
|
for pair, pair_data in processed.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user