add type annotation to trade_count_lock

This commit is contained in:
Janne Sinivirta 2017-12-25 09:46:40 +02:00
parent 4ddee50cf2
commit c774bce4a7

View File

@ -75,7 +75,7 @@ def backtest(stake_amount: float, processed: Dict[str, DataFrame],
:return: DataFrame :return: DataFrame
""" """
trades = [] trades = []
trade_count_lock = {} trade_count_lock: dict = {}
exchange._API = Bittrex({'key': '', 'secret': ''}) exchange._API = Bittrex({'key': '', 'secret': ''})
for pair, pair_data in processed.items(): for pair, pair_data in processed.items():
pair_data['buy'], pair_data['sell'] = 0, 0 pair_data['buy'], pair_data['sell'] = 0, 0