From b8aa727edf27f7b2d00d0fe2b7e4eeeb44b87943 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Thu, 21 Nov 2019 04:59:38 +0300 Subject: [PATCH] Fix second part of freqtrade-strategies #51 --- freqtrade/strategy/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index d42f8e989..e208138e7 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -109,8 +109,8 @@ class IStrategy(ABC): # Class level variables (intentional) containing # the dataprovider (dp) (access to other candles, historic data, ...) # and wallets - access to the current balance. - dp: DataProvider - wallets: Wallets + dp: Optional[DataProvider] = None + wallets: Optional[Wallets] = None def __init__(self, config: dict) -> None: self.config = config