add type annotation to trade_count_lock
This commit is contained in:
parent
4ddee50cf2
commit
c774bce4a7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user